aboutsummaryrefslogtreecommitdiff
path: root/sql/hive
diff options
context:
space:
mode:
authorDaoyuan Wang <daoyuan.wang@intel.com>2014-12-11 22:50:18 -0800
committerMichael Armbrust <michael@databricks.com>2014-12-11 22:50:18 -0800
commitcbb634ae69163ca7a8b5cb94c5fb17cb5c910cb1 (patch)
treede51b8339d96891bb4e8f6563a449183a4cec9b5 /sql/hive
parentacb3be6bc5e0e793f769ec371dffeb474dc0cf21 (diff)
downloadspark-cbb634ae69163ca7a8b5cb94c5fb17cb5c910cb1.tar.gz
spark-cbb634ae69163ca7a8b5cb94c5fb17cb5c910cb1.tar.bz2
spark-cbb634ae69163ca7a8b5cb94c5fb17cb5c910cb1.zip
[SQL] enable empty aggr test case
This is fixed by SPARK-4318 #3184 Author: Daoyuan Wang <daoyuan.wang@intel.com> Closes #3445 from adrian-wang/emptyaggr and squashes the following commits: 982575e [Daoyuan Wang] enable empty aggr test case
Diffstat (limited to 'sql/hive')
-rw-r--r--sql/hive/src/test/resources/golden/empty aggregate input-0-bbd21aa0c1faf4c1fe6d8a822b4163491
-rw-r--r--sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala6
2 files changed, 3 insertions, 4 deletions
diff --git a/sql/hive/src/test/resources/golden/empty aggregate input-0-bbd21aa0c1faf4c1fe6d8a822b416349 b/sql/hive/src/test/resources/golden/empty aggregate input-0-bbd21aa0c1faf4c1fe6d8a822b416349
new file mode 100644
index 0000000000..7951defec1
--- /dev/null
+++ b/sql/hive/src/test/resources/golden/empty aggregate input-0-bbd21aa0c1faf4c1fe6d8a822b416349
@@ -0,0 +1 @@
+NULL
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 af45dfd6e2..63eb07c257 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
@@ -319,10 +319,8 @@ class HiveQuerySuite extends HiveComparisonTest with BeforeAndAfter {
createQueryTest("DISTINCT",
"SELECT DISTINCT key, value FROM src")
- ignore("empty aggregate input") {
- createQueryTest("empty aggregate input",
- "SELECT SUM(key) FROM (SELECT * FROM src LIMIT 0) a")
- }
+ createQueryTest("empty aggregate input",
+ "SELECT SUM(key) FROM (SELECT * FROM src LIMIT 0) a")
createQueryTest("lateral view1",
"SELECT tbl.* FROM src LATERAL VIEW explode(array(1,2)) tbl as a")