drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amansi...@apache.org
Subject drill git commit: DRILL-1561: Add test case for doing 2 phase aggregation after order-by (already fixed by DRILL-1846).
Date Wed, 17 Dec 2014 22:28:18 GMT
Repository: drill
Updated Branches:
  refs/heads/master d2c582918 -> 6e21eac85


DRILL-1561: Add test case for doing 2 phase aggregation after order-by (already fixed by DRILL-1846).


Project: http://git-wip-us.apache.org/repos/asf/drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill/commit/6e21eac8
Tree: http://git-wip-us.apache.org/repos/asf/drill/tree/6e21eac8
Diff: http://git-wip-us.apache.org/repos/asf/drill/diff/6e21eac8

Branch: refs/heads/master
Commit: 6e21eac85f4288e024af558a2b20018cae4ee91a
Parents: d2c5829
Author: Aman Sinha <asinha@maprtech.com>
Authored: Wed Dec 17 13:39:44 2014 -0800
Committer: Aman Sinha <asinha@maprtech.com>
Committed: Wed Dec 17 14:27:20 2014 -0800

----------------------------------------------------------------------
 .../src/test/java/org/apache/drill/TestExampleQueries.java  | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/6e21eac8/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java b/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java
index 79a482c..430e624 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/TestExampleQueries.java
@@ -20,8 +20,6 @@ package org.apache.drill;
 import static org.junit.Assert.assertEquals;
 
 import org.apache.drill.common.util.FileUtils;
-import org.apache.drill.exec.ExecConstants;
-import org.apache.drill.exec.rpc.RpcException;
 import org.junit.Ignore;
 import org.junit.Test;
 
@@ -426,4 +424,11 @@ public class TestExampleQueries extends BaseTestQuery{
           " join cp.`tpch/nation.parquet` n4 on n3.n_name = n4.n_name");
   }
 
+  @Test // DRILL-1561
+  public void test2PhaseAggAfterOrderBy() throws Exception {
+    String query = "select count(*) from (select o_custkey from cp.`tpch/orders.parquet`
order by o_custkey)";
+    // set slice_target = 1 to force exchanges and 2-phase aggregation
+    test("alter session set `planner.slice_target` = 1; " + query);
+  }
+
 }


Mime
View raw message