We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92242c7 commit 74175b4Copy full SHA for 74175b4
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
@@ -413,6 +413,14 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
413
createQueryTest("select null from table",
414
"SELECT null FROM src LIMIT 1")
415
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
+
424
test("implement identity function using case statement") {
425
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
426
.map { case Row(i: Int) => i }
0 commit comments