Skip to content

Commit 1a9f605

Browse files
committed
Update HiveQuerySuite.scala
1 parent 7c03c68 commit 1a9f605

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
6262
sql("SHOW TABLES")
6363
}
6464
}
65+
66+
createQueryTest("! operator",
67+
"""
68+
|SELECT a FROM (
69+
| SELECT 1 AS a FROM src LIMIT 1 UNION ALL
70+
| SELECT 2 AS a FROM src LIMIT 1) table
71+
|WHERE !(a>1)
72+
""".stripMargin)
6573

6674
createQueryTest("constant object inspector for generic udf",
6775
"""SELECT named_struct(

0 commit comments

Comments
 (0)