aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala
diff options
context:
space:
mode:
Diffstat (limited to 'sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala')
-rw-r--r--sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala11
1 files changed, 2 insertions, 9 deletions
diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala
index 68d3ea6ed9..b87f035cd1 100644
--- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala
+++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveDDLCommandSuite.scala
@@ -236,15 +236,6 @@ class HiveDDLCommandSuite extends PlanTest {
|FROM testData
""".stripMargin)
}
- intercept[ParseException] {
- parser.parsePlan(
- """
- |CREATE OR REPLACE VIEW IF NOT EXISTS view1 (col1, col3)
- |COMMENT 'blabla'
- |TBLPROPERTIES('prop1Key'="prop1Val")
- |AS SELECT * FROM tab1
- """.stripMargin)
- }
}
test("Invalid interval term should throw AnalysisException") {
@@ -532,6 +523,7 @@ class HiveDDLCommandSuite extends PlanTest {
"""
|CREATE OR REPLACE VIEW IF NOT EXISTS view1
|(col1, col3)
+ |COMMENT 'BLABLA'
|TBLPROPERTIES('prop1Key'="prop1Val")
|AS SELECT * FROM tab1
""".stripMargin
@@ -551,6 +543,7 @@ class HiveDDLCommandSuite extends PlanTest {
assert(desc.storage.outputFormat.isEmpty)
assert(desc.storage.serde.isEmpty)
assert(desc.properties == Map("prop1Key" -> "prop1Val"))
+ assert(desc.comment == Option("BLABLA"))
}
test("create view -- partitioned view") {