You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by am...@apache.org on 2015/05/09 19:00:06 UTC

drill git commit: [DRILL-2914] Update DrillCalcite's version to 1.1.0-drill-r5

Repository: drill
Updated Branches:
  refs/heads/master 9d2096229 -> a8c938767


[DRILL-2914] Update DrillCalcite's version to 1.1.0-drill-r5


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

Branch: refs/heads/master
Commit: a8c938767a6e1e747f1ec3df9944ec1279fff6b5
Parents: 9d20962
Author: Hsuan-Yi Chu <hs...@usc.edu>
Authored: Thu May 7 11:57:47 2015 -0700
Committer: Aman Sinha <as...@maprtech.com>
Committed: Sat May 9 09:32:45 2015 -0700

----------------------------------------------------------------------
 .../org/apache/drill/TestExampleQueries.java    | 16 +++++++++++++
 .../testGroupByStarSchemaless.tsv               | 25 ++++++++++++++++++++
 pom.xml                                         |  2 +-
 3 files changed, 42 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/a8c93876/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 18336cf..f0f9310 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
@@ -844,4 +844,20 @@ public class TestExampleQueries extends BaseTestQuery{
     test("ALTER SESSION SET `store.format`='parquet'");
   }
 
+  @Test // DRILL-2914
+  public void testGroupByStarSchemaless() throws Exception {
+    String query = "SELECT n.n_nationkey AS col \n" +
+        "FROM (SELECT * FROM cp.`tpch/nation.parquet`) AS n \n" +
+        "GROUP BY n.n_nationkey \n" +
+        "ORDER BY n.n_nationkey";
+
+    testBuilder()
+        .sqlQuery(query)
+        .ordered()
+        .csvBaselineFile("testframework/testExampleQueries/testGroupByStarSchemaless.tsv")
+        .baselineTypes(TypeProtos.MinorType.INT)
+        .baselineColumns("col")
+        .build()
+        .run();
+  }
 }

http://git-wip-us.apache.org/repos/asf/drill/blob/a8c93876/exec/java-exec/src/test/resources/testframework/testExampleQueries/testGroupByStarSchemaless.tsv
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/test/resources/testframework/testExampleQueries/testGroupByStarSchemaless.tsv b/exec/java-exec/src/test/resources/testframework/testExampleQueries/testGroupByStarSchemaless.tsv
new file mode 100644
index 0000000..521485b
--- /dev/null
+++ b/exec/java-exec/src/test/resources/testframework/testExampleQueries/testGroupByStarSchemaless.tsv
@@ -0,0 +1,25 @@
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11
+12
+13
+14
+15
+16
+17
+18
+19
+20
+21
+22
+23
+24
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/drill/blob/a8c93876/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 7fdc794..c5004fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1038,7 +1038,7 @@
           <dependency>
             <groupId>org.apache.calcite</groupId>
             <artifactId>calcite-core</artifactId>
-            <version>1.1.0-drill-r3</version>
+            <version>1.1.0-drill-r5</version>
             <exclusions>
               <exclusion>
                 <groupId>org.jgrapht</groupId>