tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jihoon...@apache.org
Subject [01/57] [abbrv] tajo git commit: TAJO-1577: Add test cases to verify join plans. (jihoon)
Date Mon, 25 May 2015 14:35:54 GMT
Repository: tajo
Updated Branches:
  refs/heads/index_support 1ad6b6cc9 -> 4d01fca99


http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort.plan
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort.plan
b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort.plan
new file mode 100644
index 0000000..c4c25da
--- /dev/null
+++ b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort.plan
@@ -0,0 +1,116 @@
+explain
+-------------------------------
+JOIN(10)(LEFT_OUTER)
+  => Join Cond: default.a.id (INT4) = default.b.id (INT4)
+  => target list: default.a.id (INT4), default.b.id (INT4)
+  => out schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+  => in schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+   SCAN(5) on default.jointable11 as b
+     => target list: default.b.id (INT4)
+     => out schema: {(1) default.b.id (INT4)}
+     => in schema: {(2) default.b.id (INT4), default.b.name (TEXT)}
+   TABLE_SUBQUERY(4) as default.a
+     => Targets: default.a.id (INT4)
+     => out schema: {(1) default.a.id (INT4)}
+     => in  schema: {(3) default.a.id (INT4), default.a.l_shipdate (TEXT), default.a.name
(TEXT)}
+      JOIN(9)(INNER)
+        => Join Cond: default.jointable12.id (INT4) = default.lineitem.l_orderkey (INT4)
+        => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)
+        => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+        => in schema: {(4) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate (TEXT)}
+         SCAN(0) on default.jointable12
+           => filter: default.jointable12.id (INT4) > 10
+           => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT)
+           => out schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+           => in schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+         SCAN(1) on default.lineitem
+           => target list: default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)
+           => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+           => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+explain
+-------------------------------
+-------------------------------------------------------------------------------
+Execution Block Graph (TERMINAL - eb_0000000000000_0000_000006)
+-------------------------------------------------------------------------------
+|-eb_0000000000000_0000_000006
+   |-eb_0000000000000_0000_000005
+      |-eb_0000000000000_0000_000004
+      |-eb_0000000000000_0000_000003
+-------------------------------------------------------------------------------
+Order of Execution
+-------------------------------------------------------------------------------
+1: eb_0000000000000_0000_000003
+2: eb_0000000000000_0000_000004
+3: eb_0000000000000_0000_000005
+4: eb_0000000000000_0000_000006
+-------------------------------------------------------------------------------
+
+=======================================================
+Block Id: eb_0000000000000_0000_000003 [LEAF]
+=======================================================
+
+[Outgoing]
+[q_0000000000000_0000] 3 => 5 (type=HASH_SHUFFLE, key=default.a.id (INT4), num=32)
+
+[Enforcers]
+ 0: type=Broadcast, tables=default.lineitem
+ 1: type=Broadcast, tables=default.jointable12
+
+TABLE_SUBQUERY(4) as default.a
+  => Targets: default.a.id (INT4)
+  => out schema: {(1) default.a.id (INT4)}
+  => in  schema: {(3) default.a.id (INT4), default.a.name (TEXT), default.a.l_shipdate
(TEXT)}
+   PROJECTION(3)
+     => Targets: default.jointable12.id (INT4), default.jointable12.name (TEXT), default.lineitem.l_shipdate
(TEXT)
+     => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+     => in  schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+      JOIN(9)(INNER)
+        => Join Cond: default.jointable12.id (INT4) = default.lineitem.l_orderkey (INT4)
+        => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)
+        => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+        => in schema: {(4) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate (TEXT)}
+         SCAN(0) on default.jointable12
+           => filter: default.jointable12.id (INT4) > 10
+           => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT)
+           => out schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+           => in schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+         SCAN(1) on default.lineitem
+           => target list: default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)
+           => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+           => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000004 [LEAF]
+=======================================================
+
+[Outgoing]
+[q_0000000000000_0000] 4 => 5 (type=HASH_SHUFFLE, key=default.b.id (INT4), num=32)
+
+SCAN(5) on default.jointable11 as b
+  => target list: default.b.id (INT4)
+  => out schema: {(1) default.b.id (INT4)}
+  => in schema: {(2) default.b.id (INT4), default.b.name (TEXT)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000005 [ROOT]
+=======================================================
+
+[Incoming]
+[q_0000000000000_0000] 3 => 5 (type=HASH_SHUFFLE, key=default.a.id (INT4), num=32)
+[q_0000000000000_0000] 4 => 5 (type=HASH_SHUFFLE, key=default.b.id (INT4), num=32)
+
+JOIN(10)(LEFT_OUTER)
+  => Join Cond: default.a.id (INT4) = default.b.id (INT4)
+  => target list: default.a.id (INT4), default.b.id (INT4)
+  => out schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+  => in schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+   SCAN(13) on eb_0000000000000_0000_000004
+     => out schema: {(1) default.b.id (INT4)}
+     => in schema: {(1) default.b.id (INT4)}
+   SCAN(12) on eb_0000000000000_0000_000003
+     => out schema: {(1) default.a.id (INT4)}
+     => in schema: {(1) default.a.id (INT4)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000006 [TERMINAL]
+=======================================================

http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort_NoBroadcast.plan
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort_NoBroadcast.plan
b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort_NoBroadcast.plan
new file mode 100644
index 0000000..107e1fa
--- /dev/null
+++ b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.Sort_NoBroadcast.plan
@@ -0,0 +1,142 @@
+explain
+-------------------------------
+JOIN(10)(LEFT_OUTER)
+  => Join Cond: default.a.id (INT4) = default.b.id (INT4)
+  => target list: default.a.id (INT4), default.b.id (INT4)
+  => out schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+  => in schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+   SCAN(5) on default.jointable11 as b
+     => target list: default.b.id (INT4)
+     => out schema: {(1) default.b.id (INT4)}
+     => in schema: {(2) default.b.id (INT4), default.b.name (TEXT)}
+   TABLE_SUBQUERY(4) as default.a
+     => Targets: default.a.id (INT4)
+     => out schema: {(1) default.a.id (INT4)}
+     => in  schema: {(3) default.a.id (INT4), default.a.l_shipdate (TEXT), default.a.name
(TEXT)}
+      JOIN(9)(INNER)
+        => Join Cond: default.jointable12.id (INT4) = default.lineitem.l_orderkey (INT4)
+        => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)
+        => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+        => in schema: {(4) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate (TEXT)}
+         SCAN(0) on default.jointable12
+           => filter: default.jointable12.id (INT4) > 10
+           => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT)
+           => out schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+           => in schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+         SCAN(1) on default.lineitem
+           => target list: default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)
+           => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+           => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+explain
+-------------------------------
+-------------------------------------------------------------------------------
+Execution Block Graph (TERMINAL - eb_0000000000000_0000_000006)
+-------------------------------------------------------------------------------
+|-eb_0000000000000_0000_000006
+   |-eb_0000000000000_0000_000005
+      |-eb_0000000000000_0000_000004
+      |-eb_0000000000000_0000_000003
+         |-eb_0000000000000_0000_000002
+         |-eb_0000000000000_0000_000001
+-------------------------------------------------------------------------------
+Order of Execution
+-------------------------------------------------------------------------------
+1: eb_0000000000000_0000_000001
+2: eb_0000000000000_0000_000002
+3: eb_0000000000000_0000_000003
+4: eb_0000000000000_0000_000004
+5: eb_0000000000000_0000_000005
+6: eb_0000000000000_0000_000006
+-------------------------------------------------------------------------------
+
+=======================================================
+Block Id: eb_0000000000000_0000_000001 [LEAF]
+=======================================================
+
+[Outgoing]
+[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=default.lineitem.l_orderkey (INT4),
num=32)
+
+SCAN(1) on default.lineitem
+  => target list: default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate (TEXT)
+  => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+  => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000002 [LEAF]
+=======================================================
+
+[Outgoing]
+[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=default.jointable12.id (INT4), num=32)
+
+SCAN(0) on default.jointable12
+  => filter: default.jointable12.id (INT4) > 10
+  => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT)
+  => out schema: {(2) default.jointable12.id (INT4), default.jointable12.name (TEXT)}
+  => in schema: {(2) default.jointable12.id (INT4), default.jointable12.name (TEXT)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000003 [INTERMEDIATE]
+=======================================================
+
+[Incoming]
+[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=default.lineitem.l_orderkey (INT4),
num=32)
+[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=default.jointable12.id (INT4), num=32)
+
+[Outgoing]
+[q_0000000000000_0000] 3 => 5 (type=HASH_SHUFFLE, key=default.a.id (INT4), num=32)
+
+TABLE_SUBQUERY(4) as default.a
+  => Targets: default.a.id (INT4)
+  => out schema: {(1) default.a.id (INT4)}
+  => in  schema: {(3) default.a.id (INT4), default.a.name (TEXT), default.a.l_shipdate
(TEXT)}
+   PROJECTION(3)
+     => Targets: default.jointable12.id (INT4), default.jointable12.name (TEXT), default.lineitem.l_shipdate
(TEXT)
+     => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+     => in  schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+      JOIN(9)(INNER)
+        => Join Cond: default.jointable12.id (INT4) = default.lineitem.l_orderkey (INT4)
+        => target list: default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)
+        => out schema: {(3) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_shipdate (TEXT)}
+        => in schema: {(4) default.jointable12.id (INT4), default.jointable12.name (TEXT),
default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate (TEXT)}
+         SCAN(13) on eb_0000000000000_0000_000002
+           => out schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+           => in schema: {(2) default.jointable12.id (INT4), default.jointable12.name
(TEXT)}
+         SCAN(12) on eb_0000000000000_0000_000001
+           => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+           => in schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_shipdate
(TEXT)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000004 [LEAF]
+=======================================================
+
+[Outgoing]
+[q_0000000000000_0000] 4 => 5 (type=HASH_SHUFFLE, key=default.b.id (INT4), num=32)
+
+SCAN(5) on default.jointable11 as b
+  => target list: default.b.id (INT4)
+  => out schema: {(1) default.b.id (INT4)}
+  => in schema: {(2) default.b.id (INT4), default.b.name (TEXT)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000005 [ROOT]
+=======================================================
+
+[Incoming]
+[q_0000000000000_0000] 3 => 5 (type=HASH_SHUFFLE, key=default.a.id (INT4), num=32)
+[q_0000000000000_0000] 4 => 5 (type=HASH_SHUFFLE, key=default.b.id (INT4), num=32)
+
+JOIN(10)(LEFT_OUTER)
+  => Join Cond: default.a.id (INT4) = default.b.id (INT4)
+  => target list: default.a.id (INT4), default.b.id (INT4)
+  => out schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+  => in schema: {(2) default.a.id (INT4), default.b.id (INT4)}
+   SCAN(15) on eb_0000000000000_0000_000004
+     => out schema: {(1) default.b.id (INT4)}
+     => in schema: {(1) default.b.id (INT4)}
+   SCAN(14) on eb_0000000000000_0000_000003
+     => out schema: {(1) default.a.id (INT4)}
+     => in schema: {(1) default.a.id (INT4)}
+
+=======================================================
+Block Id: eb_0000000000000_0000_000006 [TERMINAL]
+=======================================================

http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.result
b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.result
new file mode 100644
index 0000000..eb65bb1
--- /dev/null
+++ b/tajo-core/src/test/resources/results/TestOuterJoinWithSubQuery/testLeftOuterJoinWithEmptySubquery2.1.result
@@ -0,0 +1,2 @@
+id,id
+-------------------------------

http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.1.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.1.result
b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.1.result
index 0069639..976790e 100644
--- a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.1.result
+++ b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.1.result
@@ -19,8 +19,8 @@ Block Id: eb_0000000000000_0000_000001 [ROOT]
 SCAN(0) on default.lineitem
   => target list: default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey (INT4)
   => out schema: {(2) default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey (INT4)}
-  => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+  => in schema: {(16) default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey (INT4),
default.lineitem.l_suppkey (INT4), default.lineitem.l_linenumber (INT4), default.lineitem.l_quantity
(FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_discount (FLOAT8),
default.lineitem.l_tax (FLOAT8), default.lineitem.l_returnflag (TEXT), default.lineitem.l_linestatus
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_commitdate (TEXT), default.lineitem.l_receiptdate
(TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode (TEXT), default.lineitem.l_comment
(TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000002 [TERMINAL]
-=======================================================
\ No newline at end of file
+=======================================================

http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.2.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.2.result
b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.2.result
index 7946c5b..c0f3067 100644
--- a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.2.result
+++ b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.2.result
@@ -23,32 +23,32 @@ Block Id: eb_0000000000000_0000_000001 [LEAF]
 =======================================================
 
 [Outgoing]
-[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=?upper_1 (TEXT), num=32)
+[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=default.n1.n_name (TEXT), num=32)
 
-SCAN(0) on default.nation as n2
-  => target list: default.n2.n_name (TEXT), upper(default.n2.n_name (TEXT)) as ?upper_1
-  => out schema: {(2) default.n2.n_name (TEXT), ?upper_1 (TEXT)}
-  => in schema: {(4) default.n2.n_comment (TEXT), default.n2.n_name (TEXT), default.n2.n_nationkey
(INT4), default.n2.n_regionkey (INT4)}
+SCAN(0) on default.nation as n1
+  => target list: default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)
+  => out schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
+  => in schema: {(4) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n1.n_regionkey
(INT4), default.n1.n_comment (TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000002 [LEAF]
 =======================================================
 
 [Outgoing]
-[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=default.n1.n_name (TEXT), num=32)
+[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=?upper_1 (TEXT), num=32)
 
-SCAN(1) on default.nation as n1
-  => target list: default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)
-  => out schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
-  => in schema: {(4) default.n1.n_comment (TEXT), default.n1.n_name (TEXT), default.n1.n_nationkey
(INT4), default.n1.n_regionkey (INT4)}
+SCAN(1) on default.nation as n2
+  => target list: default.n2.n_name (TEXT), upper(default.n2.n_name (TEXT)) as ?upper_1
+  => out schema: {(2) default.n2.n_name (TEXT), ?upper_1 (TEXT)}
+  => in schema: {(4) default.n2.n_nationkey (INT4), default.n2.n_name (TEXT), default.n2.n_regionkey
(INT4), default.n2.n_comment (TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000003 [INTERMEDIATE]
 =======================================================
 
 [Incoming]
-[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=?upper_1 (TEXT), num=32)
-[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=default.n1.n_name (TEXT), num=32)
+[q_0000000000000_0000] 1 => 3 (type=HASH_SHUFFLE, key=default.n1.n_name (TEXT), num=32)
+[q_0000000000000_0000] 2 => 3 (type=HASH_SHUFFLE, key=?upper_1 (TEXT), num=32)
 
 [Outgoing]
 [q_0000000000000_0000] 3 => 4 (type=RANGE_SHUFFLE, key=default.n1.n_nationkey (INT4),
num=32)
@@ -57,15 +57,15 @@ SORT(10)
   => Sort Keys: default.n1.n_nationkey (INT4) (asc)
    JOIN(6)(INNER)
      => Join Cond: default.n1.n_name (TEXT) = ?upper_1 (TEXT)
-     => target list: default.n1.n_name (TEXT), default.n1.n_nationkey (INT4), default.n2.n_name
(TEXT)
-     => out schema: {(3) default.n1.n_name (TEXT), default.n1.n_nationkey (INT4), default.n2.n_name
(TEXT)}
-     => in schema: {(4) ?upper_1 (TEXT), default.n1.n_name (TEXT), default.n1.n_nationkey
(INT4), default.n2.n_name (TEXT)}
+     => target list: default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n2.n_name
(TEXT)
+     => out schema: {(3) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n2.n_name
(TEXT)}
+     => in schema: {(4) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n2.n_name
(TEXT), ?upper_1 (TEXT)}
       SCAN(9) on eb_0000000000000_0000_000002
-        => out schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
-        => in schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
-      SCAN(8) on eb_0000000000000_0000_000001
         => out schema: {(2) default.n2.n_name (TEXT), ?upper_1 (TEXT)}
         => in schema: {(2) default.n2.n_name (TEXT), ?upper_1 (TEXT)}
+      SCAN(8) on eb_0000000000000_0000_000001
+        => out schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
+        => in schema: {(2) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000004 [ROOT]
@@ -80,9 +80,9 @@ Block Id: eb_0000000000000_0000_000004 [ROOT]
 SORT(3)
   => Sort Keys: default.n1.n_nationkey (INT4) (asc)
    SCAN(11) on eb_0000000000000_0000_000003
-     => out schema: {(3) default.n1.n_name (TEXT), default.n1.n_nationkey (INT4), default.n2.n_name
(TEXT)}
-     => in schema: {(3) default.n1.n_name (TEXT), default.n1.n_nationkey (INT4), default.n2.n_name
(TEXT)}
+     => out schema: {(3) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n2.n_name
(TEXT)}
+     => in schema: {(3) default.n1.n_nationkey (INT4), default.n1.n_name (TEXT), default.n2.n_name
(TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000005 [TERMINAL]
-=======================================================
\ No newline at end of file
+=======================================================

http://git-wip-us.apache.org/repos/asf/tajo/blob/4b1b7799/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.3.result
----------------------------------------------------------------------
diff --git a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.3.result
b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.3.result
index c4e8c2c..e168613 100644
--- a/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.3.result
+++ b/tajo-core/src/test/resources/results/TestSelectQuery/testExplainSelectPhysical.3.result
@@ -36,7 +36,7 @@ DISTINCT_GROUP_BY(9)(l_linenumber)
    SCAN(0) on default.lineitem
      => target list: default.lineitem.l_linenumber (INT4), default.lineitem.l_orderkey
(INT4)
      => out schema: {(2) default.lineitem.l_linenumber (INT4), default.lineitem.l_orderkey
(INT4)}
-     => in schema: {(16) default.lineitem.l_comment (TEXT), default.lineitem.l_commitdate
(TEXT), default.lineitem.l_discount (FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_linenumber
(INT4), default.lineitem.l_linestatus (TEXT), default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_quantity (FLOAT8), default.lineitem.l_receiptdate (TEXT), default.lineitem.l_returnflag
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode
(TEXT), default.lineitem.l_suppkey (INT4), default.lineitem.l_tax (FLOAT8)}
+     => in schema: {(16) default.lineitem.l_orderkey (INT4), default.lineitem.l_partkey
(INT4), default.lineitem.l_suppkey (INT4), default.lineitem.l_linenumber (INT4), default.lineitem.l_quantity
(FLOAT8), default.lineitem.l_extendedprice (FLOAT8), default.lineitem.l_discount (FLOAT8),
default.lineitem.l_tax (FLOAT8), default.lineitem.l_returnflag (TEXT), default.lineitem.l_linestatus
(TEXT), default.lineitem.l_shipdate (TEXT), default.lineitem.l_commitdate (TEXT), default.lineitem.l_receiptdate
(TEXT), default.lineitem.l_shipinstruct (TEXT), default.lineitem.l_shipmode (TEXT), default.lineitem.l_comment
(TEXT)}
 
 =======================================================
 Block Id: eb_0000000000000_0000_000002 [INTERMEDIATE]
@@ -86,4 +86,4 @@ HAVING(2) (?sum_2 (INT8) = 6)
 
 =======================================================
 Block Id: eb_0000000000000_0000_000004 [TERMINAL]
-=======================================================
\ No newline at end of file
+=======================================================


Mime
View raw message