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

Switch to Threaded View
Drill, mail # dev - [01/18] DRILL-167, DRILL-80, DRILL-59 start make changes to support sqlline module and ensure no test jars on class path


Copy link to this message
-
[01/18] DRILL-167, DRILL-80, DRILL-59 start make changes to support sqlline module and ensure no test jars on class path
jacques@... 2013-09-01, 22:22
Updated Branches:
  refs/heads/master 4515263d3 -> 651b3e9fd
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a2352c0/sandbox/prototype/exec/java-exec/src/test/resources/logical_json_scan.json
----------------------------------------------------------------------
diff --git a/sandbox/prototype/exec/java-exec/src/test/resources/logical_json_scan.json b/sandbox/prototype/exec/java-exec/src/test/resources/logical_json_scan.json
new file mode 100644
index 0000000..f9a8ffa
--- /dev/null
+++ b/sandbox/prototype/exec/java-exec/src/test/resources/logical_json_scan.json
@@ -0,0 +1,36 @@
+{
+  head : {
+    type : "APACHE_DRILL_LOGICAL",
+    version : 1,
+    generator : {
+      type : "optiq",
+      info : "na"
+    }
+  },
+  storage : {
+    jsonl : {
+      type : "json",
+      dfsName : "file:///"
+    }
+  },
+  query : [ {
+    op : "scan",
+    @id : 1,
+    memo : "initial_scan",
+    storageengine : "jsonl",
+    selection : [ {
+      path : "/src/drill/sandbox/prototype/exec/ref/src/test/resources/employees.json"
+    } ],
+    ref : "_MAP"
+  }, {
+    op : "store",
+    @id : 2,
+    memo : "output sink",
+    input : 1,
+    target : {
+      number : 0
+    },
+    partition : null,
+    storageEngine : "queue"
+  } ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a2352c0/sandbox/prototype/exec/java-exec/src/test/resources/logical_order.json
----------------------------------------------------------------------
diff --git a/sandbox/prototype/exec/java-exec/src/test/resources/logical_order.json b/sandbox/prototype/exec/java-exec/src/test/resources/logical_order.json
new file mode 100644
index 0000000..3e7fdfa
--- /dev/null
+++ b/sandbox/prototype/exec/java-exec/src/test/resources/logical_order.json
@@ -0,0 +1,57 @@
+{
+  head : {
+    type : "APACHE_DRILL_LOGICAL",
+    version : 1,
+    generator : {
+      type : "optiq",
+      info : "na"
+    }
+  },
+  storage : {
+    parquet-local : {
+      type : "parquet",
+      dfsName : "file:///"
+    }
+  },
+  query : [ {
+    op : "scan",
+    @id : 1,
+    memo : "initial_scan",
+    storageengine : "parquet-local",
+    selection : [ {
+      path : "/tmp/parquet"
+    } ],
+    ref : "_MAP"
+  }, {
+    op : "project",
+    @id : 2,
+    input : 1,
+    projections : [ {
+      ref : "EXPR$0",
+      expr : "_MAP.d"
+    }, {
+      ref : "C",
+      expr : "_MAP.b"
+    } ]
+  }, {
+    op : "order",
+    @id : 3,
+    input : 2,
+    within : null,
+    orderings : [ {
+      order : "asc",
+      expr : "EXPR$0",
+      nullCollation : "NULLS_LAST"
+    } ]
+  }, {
+    op : "store",
+    @id : 4,
+    memo : "output sink",
+    input : 3,
+    target : {
+      number : 0
+    },
+    partition : null,
+    storageEngine : "queue"
+  } ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a2352c0/sandbox/prototype/exec/java-exec/src/test/resources/logical_string_filter.json
----------------------------------------------------------------------
diff --git a/sandbox/prototype/exec/java-exec/src/test/resources/logical_string_filter.json b/sandbox/prototype/exec/java-exec/src/test/resources/logical_string_filter.json
new file mode 100644
index 0000000..28cc5e7
--- /dev/null
+++ b/sandbox/prototype/exec/java-exec/src/test/resources/logical_string_filter.json
@@ -0,0 +1,52 @@
+{
+  head : {
+    type : "APACHE_DRILL_LOGICAL",
+    version : 1,
+    generator : {
+      type : "optiq",
+      info : "na"
+    }
+  },
+  storage : {
+    parquet-local : {
+      type : "parquet",
+      dfsName : "file:///"
+    }
+  },
+  query : [ {
+    op : "scan",
+    @id : 1,
+    memo : "initial_scan",
+    storageengine : "parquet-local",
+    selection : [ {
+      path : "/tmp/region.parquet"
+    } ],
+    ref : "_MAP"
+  }, {
+    op : "filter",
+    @id : 2,
+    input : 1,
+    expr : " (_MAP.R_NAME)  == (\"AFRICA\") "
+  }, {
+    op : "project",
+    @id : 3,
+    input : 2,
+    projections : [ {
+      ref : "EXPR$0",
+      expr : "_MAP.R_REGIONKEY"
+    }, {
+      ref : "NAME",
+      expr : "_MAP.R_NAME"
+    } ]
+  }, {
+    op : "store",
+    @id : 4,
+    memo : "output sink",
+    input : 3,
+    target : {
+      number : 0
+    },
+    partition : null,
+    storageEngine : "queue"
+  } ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a2352c0/sandbox/prototype/exec/java-exec/src/test/resources/physical_filter.json
diff --git a/sandbox/prototype/exec/java-exec/src/test/resources/physical_filter.json b/sandbox/prototype/exec/java-exec/src/test/resources/physical_filter.json
new file mode 100644
index 0000000..878f79d
+++ b/sandbox/prototype/exec/java-exec/src/test/resources/physical_filter.json
@@ -0,0 +1,44 @@
+{
+  head : {
+    type : "APACHE_DRILL_PHYSICAL",
+    version : 1,
+    generator : {
+      type : "optiq",
+      info : "na"
+    }
+  },
+  graph : [ {
+    pop : "parquet-scan",
+    @id : 1,
+    entries : [ {
+      path : "/tmp/parquet"
+    } ],
+    storageengine: {
+      type: "parquet",
+      dfsName: "file:///"
+    },
+    ref : "_MAP",
+    fragmentPointer : 0
+  }, {
+    pop : "filter",
+    @id : 2,
+    child : 1,
+    expr : " (_MAP.bigInt)  < (0) "
+  }, {
+    pop : "selection-vector-remover",
+    @id : 3,
+    child : 2
+  }, {
+    pop : "project",
+    @id : 4,
+    exprs : [ {
+      ref : "KEY",
+      expr : "_MAP.bigInt"
+    } ],
+    child : 3
+  }, {
+    pop : "screen",
+    @id : 5,
+    child : 4
+  } ]
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/1a2352c0/sandbox/prototype/exec/java-exec/src/test/resources/physical_join.json
diff --git a/sandbox/prototype/exec/java-exec/src/test/resources/physical_join.json b/sandbox/prototype/exec/java-exec/src/test/resources/physical_join.json
new file mode 100644
index 0000000..7914ac3
+++ b/sandbox/prototype/exec/java-exec/src/test/resources/p