Skip to content

Commit 72accf1

Browse files
committed
Update HiveQuerySuite.scala
1 parent e572b9a commit 72accf1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,13 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
413413
createQueryTest("select null from table",
414414
"SELECT null FROM src LIMIT 1")
415415

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+
416423
test("implement identity function using case statement") {
417424
val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")
418425
.map { case Row(i: Int) => i }

0 commit comments

Comments
 (0)