From 4ac6e75cd6b2ab90dbf3bd47e8a6b65059e0f2f9 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Thu, 21 Apr 2016 13:18:39 +0200 Subject: [HOTFIX] Remove wrong DDL tests ## What changes were proposed in this pull request? As we moved most parsing rules to `SparkSqlParser`, some tests expected to throw exception are not correct anymore. ## How was this patch tested? `DDLCommandSuite` Author: Liang-Chi Hsieh Closes #12572 from viirya/hotfix-ddl. --- .../spark/sql/execution/command/DDLCommandSuite.scala | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'sql') diff --git a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala index 70765158b5..e99eb02252 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/execution/command/DDLCommandSuite.scala @@ -618,19 +618,6 @@ class DDLCommandSuite extends PlanTest { intercept[ParseException] { parser.parsePlan("DROP TABLE tab FOR REPLICATION('eventid')") } - intercept[ParseException] { - parser.parsePlan("CREATE VIEW testView AS SELECT id FROM tab") - } - intercept[ParseException] { - parser.parsePlan("ALTER VIEW testView AS SELECT id FROM tab") - } - intercept[ParseException] { - parser.parsePlan( - """ - |CREATE EXTERNAL TABLE parquet_tab2(c1 INT, c2 STRING) - |TBLPROPERTIES('prop1Key '= "prop1Val", ' `prop2Key` '= "prop2Val") - """.stripMargin) - } intercept[ParseException] { parser.parsePlan( """ -- cgit v1.2.3