Skip to content

Commit 74175b4

Browse files
committed
Update HiveQuerySuite.scala
1 parent 92242c7 commit 74175b4

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
@@ -413,6 +413,14 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
413413
createQueryTest("select null from table",
414414
"SELECT null FROM src LIMIT 1")
415415

416+
createQueryTest("! boolean logic operator",
417+
"""
418+
|SELECT a FROM (
419+
| SELECT 1 AS a FROM src LIMIT 1 UNION ALL
420+
| SELECT 2 AS a FROM src LIMIT 1) table
421+
|WHERE !(a>1)
422+
""".stripMargin)
423+
416424
test("implement identity function using case statement") {
417425
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
418426
.map { case Row(i: Int) => i }

0 commit comments

Comments
 (0)