diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala index 5a410915d9722..3a35d51d5d029 100644 --- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala +++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala @@ -413,12 +413,14 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter { createQueryTest("select null from table", "SELECT null FROM src LIMIT 1") - createQueryTest("predicates contains an empty AttributeSet() references", - """ - |SELECT a FROM ( - | SELECT 1 AS a FROM src LIMIT 1 ) table - |WHERE abs(20141202) is not null - """.stripMargin) + test("predicates contains an empty AttributeSet() references") { + sql( + """ + |SELECT a FROM ( + | SELECT 1 AS a FROM src LIMIT 1 ) table + |WHERE abs(20141202) is not null + """.stripMargin).collect() + } test("implement identity function using case statement") { val actual = sql("SELECT (CASE key WHEN key THEN key END) FROM src")