Skip to content

Commit 950b21e

Browse files
committed
Update HiveQuerySuite.scala
1 parent 74175b4 commit 950b21e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -413,13 +413,15 @@ 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)
416+
test("! boolean logic operator") {
417+
sql(
418+
"""
419+
|SELECT a FROM (
420+
| SELECT 1 AS a FROM src LIMIT 1 UNION ALL
421+
| SELECT 2 AS a FROM src LIMIT 1) table
422+
|WHERE !(a>1)
423+
""".stripMargin).collect()
424+
}
423425

424426
test("implement identity function using case statement") {
425427
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")

0 commit comments

Comments
 (0)