drill-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From meh...@apache.org
Subject [1/5] drill git commit: DRILL-3318: Bump calcite version to 1.1.0-drill-r9 Added unit test
Date Thu, 25 Jun 2015 05:30:35 GMT
Repository: drill
Updated Branches:
  refs/heads/master c04789dc2 -> 3f0d9221d


DRILL-3318: Bump calcite version to 1.1.0-drill-r9
Added unit test


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

Branch: refs/heads/master
Commit: 25b7b5ef56970f74e0e9f3d0e9f8070e78e1bfa9
Parents: c04789d
Author: Mehant Baid <mehantr@gmail.com>
Authored: Tue Jun 23 17:57:31 2015 -0700
Committer: Mehant Baid <mehantr@gmail.com>
Committed: Wed Jun 24 16:13:27 2015 -0700

----------------------------------------------------------------------
 .../org/apache/drill/exec/TestWindowFunctions.java    | 14 ++++++++++++++
 .../src/test/resources/jsoninput/large_int.json       |  2 ++
 pom.xml                                               |  2 +-
 3 files changed, 17 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill/blob/25b7b5ef/exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java b/exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java
index e8daff2..2409005 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/exec/TestWindowFunctions.java
@@ -288,4 +288,18 @@ public class TestWindowFunctions extends BaseTestQuery {
         .baselineValues(0.0d)
         .go();
   }
+
+  @Test
+  public void testWindowFunctionWithKnownType() throws Exception {
+    final String query = "select sum(cast(col_int as int)) over (partition by col_varchar)
as col1 " +
+        "from cp.`jsoninput/large_int.json` limit 1";
+
+    testBuilder()
+        .sqlQuery(query)
+        .unOrdered()
+        .baselineColumns("col1")
+        .baselineValues(2147483649l)
+        .go();
+
+  }
 }

http://git-wip-us.apache.org/repos/asf/drill/blob/25b7b5ef/exec/java-exec/src/test/resources/jsoninput/large_int.json
----------------------------------------------------------------------
diff --git a/exec/java-exec/src/test/resources/jsoninput/large_int.json b/exec/java-exec/src/test/resources/jsoninput/large_int.json
new file mode 100644
index 0000000..486c02f
--- /dev/null
+++ b/exec/java-exec/src/test/resources/jsoninput/large_int.json
@@ -0,0 +1,2 @@
+{"col_int": 2147483647, "col_varchar": "foo"}
+{"col_int": 2, "col_varchar": "foo"}

http://git-wip-us.apache.org/repos/asf/drill/blob/25b7b5ef/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index df75c80..9f61247 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1226,7 +1226,7 @@
           <dependency>
             <groupId>org.apache.calcite</groupId>
             <artifactId>calcite-core</artifactId>
-            <version>1.1.0-drill-r8</version>
+            <version>1.1.0-drill-r9</version>
             <exclusions>
               <exclusion>
                 <groupId>org.jgrapht</groupId>


Mime
View raw message