File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -413,13 +413,15 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
413
413
createQueryTest(" select null from table" ,
414
414
" SELECT null FROM src LIMIT 1" )
415
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)
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
+ }
423
425
424
426
test(" implement identity function using case statement" ) {
425
427
val actual = sql(" SELECT (CASE key WHEN key THEN key END) FROM src" )
You can’t perform that action at this time.
0 commit comments