Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Drill >> mail # dev >> [3/8] git commit: - Add TPC-H Data as test dependency (automatically downloads from s3 on first execution) - Update avg function to divide using double instead of integers - Update classpath file system to return correct size information (to allow cp use


Copy link to this message
-
[3/8] git commit: - Add TPC-H Data as test dependency (automatically downloads from s3 on first execution) - Update avg function to divide using double instead of integers - Update classpath file system to return correct size information (to allow cp use
- Add TPC-H Data as test dependency (automatically downloads from s3 on first execution)
- Update avg function to divide using double instead of integers
- Update classpath file system to return correct size information (to allow cp use of Parquet files)
- Enhance BaseTestQuery to support all query types (sql, physical logical) and execution from file
- Add TPC-H queries updated to use TPC-H test data (disabled)
- Update field name matching to be case insensitive.
- Treat CHAR literals like VARCHAR in Optiq
- Add clear as part of VectorUtil
- Add hash aggregation physical plan executions using tpch data.
Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/129cd775
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/129cd775
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/129cd775

Branch: refs/heads/master
Commit: 129cd775ad8e28e2c6629e774ce2f2049f173557
Parents: 721e7c2
Author: Jacques Nadeau <[EMAIL PROTECTED]>
Authored: Tue Mar 18 10:48:45 2014 -0700
Committer: Jacques Nadeau <[EMAIL PROTECTED]>
Committed: Wed Mar 26 22:46:38 2014 -0700

 .../drill/common/expression/PathSegment.java    |   4 +-
 contrib/data/pom.xml                            |  37 +++++
 contrib/data/tpch-sample-data/bin/pom.xml       | 131 ++++++++++++++++
 contrib/data/tpch-sample-data/pom.xml           |  64 ++++++++
 contrib/pom.xml                                 |   1 +
 exec/java-exec/pom.xml                          |   8 +-
 .../codegen/templates/AggrTypeFunctions2.java   |   2 +-
 .../drill/exec/client/QuerySubmitter.java       |   1 +
 .../exec/physical/impl/join/MergeJoinBatch.java |   5 +-
 .../drill/exec/planner/logical/DrillOptiq.java  |   7 +-
 .../drill/exec/record/MaterializedField.java    |   2 +-
 .../drill/exec/store/ClassPathFileSystem.java   |   6 +-
 .../org/apache/drill/exec/util/VectorUtil.java  |  16 +-
 .../java/org/apache/drill/BaseTestQuery.java    |  93 +++++++++++
 .../org/apache/drill/TestExampleQueries.java    |  19 +--
 .../java/org/apache/drill/TestTpchQueries.java  | 156 +++++++++++++++++++
 .../exec/physical/impl/agg/TestHashAggr.java    |  65 ++++----
 .../src/test/resources/agg/hashagg/q6.json      |  63 ++++++++
 .../src/test/resources/agg/hashagg/q7_1.json    |  57 +++++++
 .../src/test/resources/agg/hashagg/q7_2.json    |  57 +++++++
 .../src/test/resources/agg/hashagg/q8.json      |  53 +++++++
 .../src/test/resources/agg/hashagg/q8_1.json    |  73 +++++++++
 .../src/test/resources/queries/tpch.json        |  54 +++++++
 .../src/test/resources/queries/tpch/01.sql      |  24 +++
 .../src/test/resources/queries/tpch/02.sql      |  48 ++++++
 .../src/test/resources/queries/tpch/03.sql      |  27 ++++
 .../src/test/resources/queries/tpch/04.sql      |  24 +++
 .../src/test/resources/queries/tpch/05.sql      |  28 ++++
 .../src/test/resources/queries/tpch/06.sql      |  12 ++
 .../src/test/resources/queries/tpch/07.sql      |  40 +++++
 .../src/test/resources/queries/tpch/08.sql      |  38 +++++
 .../src/test/resources/queries/tpch/09.sql      |  33 ++++
 .../src/test/resources/queries/tpch/10.sql      |  33 ++++
 .../src/test/resources/queries/tpch/11.sql      |  28 ++++
 .../src/test/resources/queries/tpch/12.sql      |  29 ++++
 .../src/test/resources/queries/tpch/13.sql      |  22 +++
 .../src/test/resources/queries/tpch/14.sql      |  14 ++
 .../src/test/resources/queries/tpch/15.sql      |  34 ++++
 .../src/test/resources/queries/tpch/16.sql      |  31 ++++
 .../src/test/resources/queries/tpch/17.sql      |  18 +++
 .../src/test/resources/queries/tpch/18.sql      |  34 ++++
 .../src/test/resources/queries/tpch/19.sql      |  36 +++++
 .../src/test/resources/queries/tpch/20.sql      |  38 +++++
 .../src/test/resources/queries/tpch/21.sql      |  41 +++++
 .../src/test/resources/queries/tpch/22.sql      |  38 +++++
 pom.xml                                         |   1 +
 46 files changed, 1579 insertions(+), 66 deletions(-)
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/129cd775/common/src/main/java/org/apache/drill/common/expression/PathSegment.java
diff --git a/common/src/main/java/org/apache/drill/common/expression/PathSegment.java b/common/src/main/java/org/apache/drill/common/expression/PathSegment.java
index 91acdbe..ac1aeac 100644
+++ b/common/src/main/java/org/apache/drill/common/expression/PathSegment.java
@@ -83,7 +83,7 @@ public abstract class PathSegment{
       this.path = n.toString();
     }
    
-    public CharSequence getPath(){
+    public String getPath(){
       return path;        
     }
    
@@ -126,7 +126,7 @@ public abstract class PathSegment{
       if (path == null) {
         if (other.path != null)
           return false;
-      } else if (!path.equals(other.path))
+      } else if (!path.equalsIgnoreCase(other.path))
         return false;
       return true;
     }

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/129cd775/contrib/data/pom.xml
diff --git a/contrib/data/pom.xml b/contrib/data/pom.xml
new file mode 100644
index 0000000..8fe1dcd
+++ b/contrib/data/pom.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements.  See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<projec