From cd9eaa88fee4b01706a9237fb160aad5cb59f9c8 Mon Sep 17 00:00:00 2001 From: Jinfeng Ni Date: Sat, 21 Jun 2014 16:04:12 -0700 Subject: DRILL-1335: Fix merge join operator when compare null against null value. --- .../test/resources/join/merge_join_nullkey.json | 171 +++++++++++++++++++++ 1 file changed, 171 insertions(+) create mode 100644 exec/java-exec/src/test/resources/join/merge_join_nullkey.json (limited to 'exec/java-exec/src/test/resources/join/merge_join_nullkey.json') diff --git a/exec/java-exec/src/test/resources/join/merge_join_nullkey.json b/exec/java-exec/src/test/resources/join/merge_join_nullkey.json new file mode 100644 index 000000000..b283dda2e --- /dev/null +++ b/exec/java-exec/src/test/resources/join/merge_join_nullkey.json @@ -0,0 +1,171 @@ +{ + "head" : { + "version" : 1, + "generator" : { + "type" : "DefaultSqlHandler", + "info" : "" + }, + "type" : "APACHE_DRILL_PHYSICAL", + "options" : [ ], + "queue" : 0, + "resultMode" : "EXEC" + }, + "graph" : [ { + "pop" : "fs-scan", + "@id" : 11, + "files" : [ "/region.json" ], + "storage" : { + "type" : "file", + "enabled" : true, + "connection" : "classpath:///", + "workspaces" : null, + "formats" : { + "json" : { + "type" : "json" + }, + "parquet" : { + "type" : "parquet" + } + } + }, + "format" : { + "type" : "json" + }, + "selectionRoot" : "/region.json", + "cost" : 18.0 + }, { + "pop" : "project", + "@id" : 9, + "exprs" : [ { + "ref" : "`T2¦¦*`", + "expr" : "`*`" + } ], + "child" : 11, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "external-sort", + "@id" : 7, + "child" : 9, + "orderings" : [ { + "order" : "ASC", + "expr" : "`T2¦¦non_exist`", + "nullDirection" : "UNSPECIFIED" + } ], + "reverse" : false, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "selection-vector-remover", + "@id" : 5, + "child" : 7, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "fs-scan", + "@id" : 10, + "files" : [ "/region.json" ], + "storage" : { + "type" : "file", + "enabled" : true, + "connection" : "classpath:///", + "workspaces" : null, + "formats" : { + "json" : { + "type" : "json" + }, + "parquet" : { + "type" : "parquet" + } + } + }, + "format" : { + "type" : "json" + }, + "selectionRoot" : "/region.json", + "cost" : 18.0 + }, { + "pop" : "project", + "@id" : 8, + "exprs" : [ { + "ref" : "`T3¦¦*`", + "expr" : "`*`" + } ], + "child" : 10, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "external-sort", + "@id" : 6, + "child" : 8, + "orderings" : [ { + "order" : "ASC", + "expr" : "`T3¦¦non_exist2`", + "nullDirection" : "UNSPECIFIED" + } ], + "reverse" : false, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "selection-vector-remover", + "@id" : 4, + "child" : 6, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "merge-join", + "@id" : 3, + "left" : 5, + "right" : 4, + "conditions" : [ { + "relationship" : "==", + "left" : "`T2¦¦non_exist`", + "right" : "`T3¦¦non_exist2`" + } ], + "joinType" : "${JOIN_TYPE}", + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "project", + "@id" : 2, + "exprs" : [ { + "ref" : "`T2¦¦*`", + "expr" : "`T2¦¦*`" + }, { + "ref" : "`T3¦¦*`", + "expr" : "`T3¦¦*`" + } ], + "child" : 3, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "project", + "@id" : 1, + "exprs" : [ { + "ref" : "`*`", + "expr" : "`T2¦¦*`" + }, { + "ref" : "`*0`", + "expr" : "`T3¦¦*`" + } ], + "child" : 2, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + }, { + "pop" : "screen", + "@id" : 0, + "child" : 1, + "initialAllocation" : 1000000, + "maxAllocation" : 10000000000, + "cost" : 18.0 + } ] +} -- cgit v1.2.3