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 e572b9a commit 72accf1Copy full SHA for 72accf1
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
@@ -413,6 +413,13 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
413
createQueryTest("select null from table",
414
"SELECT null FROM src LIMIT 1")
415
416
+ createQueryTest("predicates contains an empty AttributeSet() references",
417
+ """
418
+ |SELECT a FROM (
419
+ | SELECT 1 AS a FROM src LIMIT 1 ) table
420
+ |WHERE abs(20141202) is not null
421
+ """.stripMargin)
422
+
423
test("implement identity function using case statement") {
424
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
425
.map { case Row(i: Int) => i }
0 commit comments