From efa9b039c0fa4c1674c3ad7081e402ca8bc7ae40 Mon Sep 17 00:00:00 2001 From: YanTangZhai Date: Wed, 3 Dec 2014 14:47:52 +0800 Subject: [PATCH] Update HiveQuerySuite.scala --- .../spark/sql/hive/execution/HiveQuerySuite.scala | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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")