hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject [06/10] hive git commit: HIVE-15544 : Support scalar subqueries (Vineet Garg via Ashutosh Chauhan)
Date Sat, 21 Jan 2017 03:51:48 GMT
http://git-wip-us.apache.org/repos/asf/hive/blob/d9343f6d/ql/src/test/results/clientpositive/perf/query1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query1.q.out b/ql/src/test/results/clientpositive/perf/query1.q.out
new file mode 100644
index 0000000..f1c06f7
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query1.q.out
@@ -0,0 +1,249 @@
+Warning: Shuffle Join MERGEJOIN[119][tables = [$hdt$_4, $hdt$_5, $hdt$_6]] in Stage 'Reducer 18' is a cross product
+PREHOOK: query: explain with customer_total_return as
+(select sr_customer_sk as ctr_customer_sk
+,sr_store_sk as ctr_store_sk
+,sum(SR_FEE) as ctr_total_return
+from store_returns
+,date_dim
+where sr_returned_date_sk = d_date_sk
+and d_year =2000
+group by sr_customer_sk
+,sr_store_sk)
+ select  c_customer_id
+from customer_total_return ctr1
+,store
+,customer
+where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2
+from customer_total_return ctr2
+where ctr1.ctr_store_sk = ctr2.ctr_store_sk)
+and s_store_sk = ctr1.ctr_store_sk
+and s_state = 'NM'
+and ctr1.ctr_customer_sk = c_customer_sk
+order by c_customer_id
+limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain with customer_total_return as
+(select sr_customer_sk as ctr_customer_sk
+,sr_store_sk as ctr_store_sk
+,sum(SR_FEE) as ctr_total_return
+from store_returns
+,date_dim
+where sr_returned_date_sk = d_date_sk
+and d_year =2000
+group by sr_customer_sk
+,sr_store_sk)
+ select  c_customer_id
+from customer_total_return ctr1
+,store
+,customer
+where ctr1.ctr_total_return > (select avg(ctr_total_return)*1.2
+from customer_total_return ctr2
+where ctr1.ctr_store_sk = ctr2.ctr_store_sk)
+and s_store_sk = ctr1.ctr_store_sk
+and s_state = 'NM'
+and ctr1.ctr_customer_sk = c_customer_sk
+order by c_customer_id
+limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 16 (SIMPLE_EDGE)
+Reducer 13 <- Reducer 12 (SIMPLE_EDGE)
+Reducer 14 <- Reducer 13 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
+Reducer 15 <- Reducer 14 (SIMPLE_EDGE)
+Reducer 18 <- Map 17 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE), Reducer 23 (SIMPLE_EDGE)
+Reducer 19 <- Reducer 18 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 22 <- Map 21 (SIMPLE_EDGE), Map 24 (SIMPLE_EDGE)
+Reducer 23 <- Reducer 22 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 9 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 10 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 15 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+
+Stage-0
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 7
+      File Output Operator [FS_84]
+        Limit [LIM_83] (rows=100 width=2)
+          Number of rows:100
+          Select Operator [SEL_82] (rows=435393727038609152 width=2)
+            Output:["_col0"]
+          <-Reducer 6 [SIMPLE_EDGE]
+            SHUFFLE [RS_81]
+              Select Operator [SEL_80] (rows=435393727038609152 width=2)
+                Output:["_col0"]
+                Filter Operator [FIL_79] (rows=435393727038609152 width=2)
+                  predicate:(_col2 > CASE WHEN (_col8 is null) THEN (null) ELSE (_col7) END)
+                  Merge Join Operator [MERGEJOIN_125] (rows=1306181181115827456 width=2)
+                    Conds:RS_75._col1=RS_76._col2(Left Outer),Output:["_col2","_col6","_col7","_col8"]
+                  <-Reducer 15 [SIMPLE_EDGE]
+                    SHUFFLE [RS_76]
+                      PartitionCols:_col2
+                      Select Operator [SEL_68] (rows=1187437411641012224 width=2)
+                        Output:["_col0","_col1","_col2"]
+                        Group By Operator [GBY_67] (rows=1187437411641012224 width=2)
+                          Output:["_col0","_col1"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0
+                        <-Reducer 14 [SIMPLE_EDGE]
+                          SHUFFLE [RS_66]
+                            PartitionCols:_col0
+                            Group By Operator [GBY_65] (rows=2374874823282024448 width=2)
+                              Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col3
+                              Select Operator [SEL_64] (rows=2374874823282024448 width=2)
+                                Output:["_col3","_col2"]
+                                Merge Join Operator [MERGEJOIN_124] (rows=2374874823282024448 width=2)
+                                  Conds:RS_61._col1=RS_62._col0(Inner),Output:["_col2","_col3"]
+                                <-Reducer 13 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_61]
+                                    PartitionCols:_col1
+                                    Select Operator [SEL_33] (rows=31675133 width=77)
+                                      Output:["_col1","_col2"]
+                                      Group By Operator [GBY_32] (rows=31675133 width=77)
+                                        Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
+                                      <-Reducer 12 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_31]
+                                          PartitionCols:_col0, _col1
+                                          Group By Operator [GBY_30] (rows=63350266 width=77)
+                                            Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col2, _col1
+                                            Select Operator [SEL_29] (rows=63350266 width=77)
+                                              Output:["_col2","_col1","_col3"]
+                                              Merge Join Operator [MERGEJOIN_123] (rows=63350266 width=77)
+                                                Conds:RS_26._col0=RS_27._col0(Inner),Output:["_col1","_col2","_col3"]
+                                              <-Map 11 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_26]
+                                                  PartitionCols:_col0
+                                                  Select Operator [SEL_22] (rows=57591150 width=77)
+                                                    Output:["_col0","_col1","_col2","_col3"]
+                                                    Filter Operator [FIL_114] (rows=57591150 width=77)
+                                                      predicate:sr_returned_date_sk is not null
+                                                      TableScan [TS_20] (rows=57591150 width=77)
+                                                        default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_customer_sk","sr_store_sk","sr_fee"]
+                                              <-Map 16 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_27]
+                                                  PartitionCols:_col0
+                                                  Select Operator [SEL_25] (rows=36524 width=1119)
+                                                    Output:["_col0"]
+                                                    Filter Operator [FIL_115] (rows=36524 width=1119)
+                                                      predicate:((d_year = 2000) and d_date_sk is not null)
+                                                      TableScan [TS_23] (rows=73049 width=1119)
+                                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                <-Reducer 19 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_62]
+                                    PartitionCols:_col0
+                                    Group By Operator [GBY_59] (rows=2158977065280000000 width=2)
+                                      Output:["_col0"],keys:KEY._col0
+                                    <-Reducer 18 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_58]
+                                        PartitionCols:_col0
+                                        Group By Operator [GBY_57] (rows=4317954130560000000 width=2)
+                                          Output:["_col0"],keys:_col3
+                                          Merge Join Operator [MERGEJOIN_119] (rows=4317954130560000000 width=2)
+                                            Conds:(Inner),(Inner),Output:["_col3"]
+                                          <-Map 17 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_52]
+                                              Select Operator [SEL_35] (rows=80000000 width=4)
+                                                TableScan [TS_34] (rows=80000000 width=860)
+                                                  default@customer,customer,Tbl:COMPLETE,Col:COMPLETE
+                                          <-Map 20 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_53]
+                                              Select Operator [SEL_37] (rows=1704 width=4)
+                                                TableScan [TS_36] (rows=1704 width=1910)
+                                                  default@store,store,Tbl:COMPLETE,Col:COMPLETE
+                                          <-Reducer 23 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_54]
+                                              Select Operator [SEL_51] (rows=31675133 width=77)
+                                                Output:["_col1"]
+                                                Group By Operator [GBY_50] (rows=31675133 width=77)
+                                                  Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
+                                                <-Reducer 22 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_49]
+                                                    PartitionCols:_col0, _col1
+                                                    Group By Operator [GBY_48] (rows=63350266 width=77)
+                                                      Output:["_col0","_col1"],keys:_col1, _col2
+                                                      Merge Join Operator [MERGEJOIN_118] (rows=63350266 width=77)
+                                                        Conds:RS_44._col0=RS_45._col0(Inner),Output:["_col1","_col2"]
+                                                      <-Map 21 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_44]
+                                                          PartitionCols:_col0
+                                                          Select Operator [SEL_40] (rows=57591150 width=77)
+                                                            Output:["_col0","_col1","_col2"]
+                                                            Filter Operator [FIL_116] (rows=57591150 width=77)
+                                                              predicate:sr_returned_date_sk is not null
+                                                              TableScan [TS_38] (rows=57591150 width=77)
+                                                                default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_customer_sk","sr_store_sk"]
+                                                      <-Map 24 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_45]
+                                                          PartitionCols:_col0
+                                                          Select Operator [SEL_43] (rows=36524 width=1119)
+                                                            Output:["_col0"]
+                                                            Filter Operator [FIL_117] (rows=36524 width=1119)
+                                                              predicate:((d_year = 2000) and d_date_sk is not null)
+                                                              TableScan [TS_41] (rows=73049 width=1119)
+                                                                default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                  <-Reducer 5 [SIMPLE_EDGE]
+                    SHUFFLE [RS_75]
+                      PartitionCols:_col1
+                      Merge Join Operator [MERGEJOIN_122] (rows=88000001 width=860)
+                        Conds:RS_72._col0=RS_73._col0(Inner),Output:["_col1","_col2","_col6"]
+                      <-Map 10 [SIMPLE_EDGE]
+                        SHUFFLE [RS_73]
+                          PartitionCols:_col0
+                          Select Operator [SEL_19] (rows=80000000 width=860)
+                            Output:["_col0","_col1"]
+                            Filter Operator [FIL_113] (rows=80000000 width=860)
+                              predicate:c_customer_sk is not null
+                              TableScan [TS_17] (rows=80000000 width=860)
+                                default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_customer_id"]
+                      <-Reducer 4 [SIMPLE_EDGE]
+                        SHUFFLE [RS_72]
+                          PartitionCols:_col0
+                          Merge Join Operator [MERGEJOIN_121] (rows=34842647 width=77)
+                            Conds:RS_69._col1=RS_70._col0(Inner),Output:["_col0","_col1","_col2"]
+                          <-Map 9 [SIMPLE_EDGE]
+                            SHUFFLE [RS_70]
+                              PartitionCols:_col0
+                              Select Operator [SEL_16] (rows=852 width=1910)
+                                Output:["_col0"]
+                                Filter Operator [FIL_112] (rows=852 width=1910)
+                                  predicate:((s_state = 'NM') and s_store_sk is not null)
+                                  TableScan [TS_14] (rows=1704 width=1910)
+                                    default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_state"]
+                          <-Reducer 3 [SIMPLE_EDGE]
+                            SHUFFLE [RS_69]
+                              PartitionCols:_col1
+                              Select Operator [SEL_13] (rows=31675133 width=77)
+                                Output:["_col0","_col1","_col2"]
+                                Group By Operator [GBY_12] (rows=31675133 width=77)
+                                  Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
+                                <-Reducer 2 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_11]
+                                    PartitionCols:_col0, _col1
+                                    Group By Operator [GBY_10] (rows=63350266 width=77)
+                                      Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col2, _col1
+                                      Select Operator [SEL_9] (rows=63350266 width=77)
+                                        Output:["_col2","_col1","_col3"]
+                                        Merge Join Operator [MERGEJOIN_120] (rows=63350266 width=77)
+                                          Conds:RS_6._col0=RS_7._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        <-Map 1 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_6]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_2] (rows=57591150 width=77)
+                                              Output:["_col0","_col1","_col2","_col3"]
+                                              Filter Operator [FIL_110] (rows=57591150 width=77)
+                                                predicate:(sr_returned_date_sk is not null and sr_store_sk is not null and sr_customer_sk is not null)
+                                                TableScan [TS_0] (rows=57591150 width=77)
+                                                  default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_customer_sk","sr_store_sk","sr_fee"]
+                                        <-Map 8 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_7]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_5] (rows=36524 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_111] (rows=36524 width=1119)
+                                                predicate:((d_year = 2000) and d_date_sk is not null)
+                                                TableScan [TS_3] (rows=73049 width=1119)
+                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+

http://git-wip-us.apache.org/repos/asf/hive/blob/d9343f6d/ql/src/test/results/clientpositive/perf/query16.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query16.q.out b/ql/src/test/results/clientpositive/perf/query16.q.out
index 1f33e43..d07e6c4 100644
--- a/ql/src/test/results/clientpositive/perf/query16.q.out
+++ b/ql/src/test/results/clientpositive/perf/query16.q.out
@@ -1,3 +1,5 @@
+Warning: Shuffle Join MERGEJOIN[141][tables = [$hdt$_2, $hdt$_3, $hdt$_1, $hdt$_4]] in Stage 'Reducer 13' is a cross product
+Warning: Shuffle Join MERGEJOIN[143][tables = [$hdt$_2, $hdt$_3, $hdt$_1, $hdt$_4]] in Stage 'Reducer 25' is a cross product
 PREHOOK: query: explain select  
    count(distinct cs_order_number) as `order count`
   ,sum(cs_ext_ship_cost) as `total shipping cost`
@@ -59,23 +61,19 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 13 <- Map 12 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
+Reducer 13 <- Map 12 (SIMPLE_EDGE), Map 17 (SIMPLE_EDGE), Map 18 (SIMPLE_EDGE), Map 19 (SIMPLE_EDGE)
 Reducer 14 <- Reducer 13 (SIMPLE_EDGE)
-Reducer 16 <- Map 15 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE)
-Reducer 17 <- Map 21 (SIMPLE_EDGE), Reducer 16 (SIMPLE_EDGE)
-Reducer 18 <- Map 22 (SIMPLE_EDGE), Reducer 17 (SIMPLE_EDGE)
-Reducer 19 <- Reducer 18 (SIMPLE_EDGE)
+Reducer 15 <- Map 20 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
+Reducer 16 <- Reducer 15 (SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
-Reducer 24 <- Map 23 (SIMPLE_EDGE), Reducer 30 (SIMPLE_EDGE)
-Reducer 25 <- Reducer 24 (SIMPLE_EDGE)
-Reducer 27 <- Map 26 (SIMPLE_EDGE), Map 31 (SIMPLE_EDGE)
-Reducer 28 <- Map 32 (SIMPLE_EDGE), Reducer 27 (SIMPLE_EDGE)
-Reducer 29 <- Map 33 (SIMPLE_EDGE), Reducer 28 (SIMPLE_EDGE)
+Reducer 22 <- Map 21 (SIMPLE_EDGE), Reducer 26 (SIMPLE_EDGE)
+Reducer 23 <- Reducer 22 (SIMPLE_EDGE)
+Reducer 25 <- Map 24 (SIMPLE_EDGE), Map 27 (SIMPLE_EDGE), Map 28 (SIMPLE_EDGE), Map 29 (SIMPLE_EDGE)
+Reducer 26 <- Reducer 25 (SIMPLE_EDGE)
 Reducer 3 <- Map 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 30 <- Reducer 29 (SIMPLE_EDGE)
 Reducer 4 <- Map 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 14 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 25 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 16 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 23 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
 
@@ -84,246 +82,194 @@ Stage-0
     limit:100
     Stage-1
       Reducer 8
-      File Output Operator [FS_110]
-        Limit [LIM_109] (rows=1 width=344)
+      File Output Operator [FS_94]
+        Limit [LIM_93] (rows=1 width=344)
           Number of rows:100
-          Select Operator [SEL_108] (rows=1 width=344)
+          Select Operator [SEL_92] (rows=1 width=344)
             Output:["_col0","_col1","_col2"]
           <-Reducer 7 [SIMPLE_EDGE]
-            SHUFFLE [RS_107]
-              Group By Operator [GBY_105] (rows=1 width=344)
+            SHUFFLE [RS_91]
+              Group By Operator [GBY_89] (rows=1 width=344)
                 Output:["_col0","_col1","_col2"],aggregations:["count(DISTINCT KEY._col0:0._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
               <-Reducer 6 [SIMPLE_EDGE]
-                SHUFFLE [RS_104]
-                  Group By Operator [GBY_103] (rows=231905279 width=135)
+                SHUFFLE [RS_88]
+                  Group By Operator [GBY_87] (rows=1534538622412395776 width=1)
                     Output:["_col0","_col1","_col2","_col3"],aggregations:["count(DISTINCT _col4)","sum(_col5)","sum(_col6)"],keys:_col4
-                    Select Operator [SEL_102] (rows=231905279 width=135)
+                    Select Operator [SEL_86] (rows=1534538622412395776 width=1)
                       Output:["_col4","_col5","_col6"]
-                      Filter Operator [FIL_101] (rows=231905279 width=135)
+                      Filter Operator [FIL_85] (rows=1534538622412395776 width=1)
                         predicate:_col16 is null
-                        Select Operator [SEL_100] (rows=463810558 width=135)
+                        Select Operator [SEL_84] (rows=3069077244824791552 width=1)
                           Output:["_col4","_col5","_col6","_col16"]
-                          Merge Join Operator [MERGEJOIN_193] (rows=463810558 width=135)
-                            Conds:RS_97._col4, _col3=RS_98._col1, _col0(Inner),Output:["_col4","_col5","_col6","_col14"]
-                          <-Reducer 25 [SIMPLE_EDGE]
-                            SHUFFLE [RS_98]
-                              PartitionCols:_col1, _col0
-                              Select Operator [SEL_84] (rows=158394413 width=135)
-                                Output:["_col0","_col1"]
-                                Group By Operator [GBY_83] (rows=158394413 width=135)
-                                  Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
-                                <-Reducer 24 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_82]
-                                    PartitionCols:_col0, _col1
-                                    Group By Operator [GBY_81] (rows=316788826 width=135)
-                                      Output:["_col0","_col1"],keys:_col3, _col2
-                                      Select Operator [SEL_80] (rows=316788826 width=135)
-                                        Output:["_col3","_col2"]
-                                        Filter Operator [FIL_79] (rows=316788826 width=135)
-                                          predicate:(_col2 <> _col0)
-                                          Merge Join Operator [MERGEJOIN_188] (rows=316788826 width=135)
-                                            Conds:RS_76._col1=RS_77._col1(Inner),Output:["_col0","_col2","_col3"]
-                                          <-Map 23 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_76]
-                                              PartitionCols:_col1
-                                              Select Operator [SEL_49] (rows=287989836 width=135)
-                                                Output:["_col0","_col1"]
-                                                TableScan [TS_48] (rows=287989836 width=135)
-                                                  default@catalog_sales,cs2,Tbl:COMPLETE,Col:NONE,Output:["cs_warehouse_sk","cs_order_number"]
-                                          <-Reducer 30 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_77]
-                                              PartitionCols:_col1
-                                              Select Operator [SEL_75] (rows=191657247 width=135)
-                                                Output:["_col0","_col1"]
-                                                Group By Operator [GBY_74] (rows=191657247 width=135)
-                                                  Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
-                                                <-Reducer 29 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_73]
-                                                    PartitionCols:_col0, _col1
-                                                    Group By Operator [GBY_72] (rows=383314495 width=135)
-                                                      Output:["_col0","_col1"],keys:_col4, _col3
-                                                      Select Operator [SEL_71] (rows=383314495 width=135)
-                                                        Output:["_col4","_col3"]
-                                                        Merge Join Operator [MERGEJOIN_187] (rows=383314495 width=135)
-                                                          Conds:RS_68._col2=RS_69._col0(Inner),Output:["_col3","_col4"]
-                                                        <-Map 33 [SIMPLE_EDGE]
-                                                          SHUFFLE [RS_69]
-                                                            PartitionCols:_col0
-                                                            Select Operator [SEL_61] (rows=30 width=2045)
-                                                              Output:["_col0"]
-                                                              Filter Operator [FIL_180] (rows=30 width=2045)
-                                                                predicate:((cc_county) IN ('Ziebach County', 'Levy County', 'Huron County', 'Franklin Parish', 'Daviess County') and cc_call_center_sk is not null)
-                                                                TableScan [TS_59] (rows=60 width=2045)
-                                                                  default@call_center,call_center,Tbl:COMPLETE,Col:NONE,Output:["cc_call_center_sk","cc_county"]
-                                                        <-Reducer 28 [SIMPLE_EDGE]
-                                                          SHUFFLE [RS_68]
-                                                            PartitionCols:_col2
-                                                            Merge Join Operator [MERGEJOIN_186] (rows=348467716 width=135)
-                                                              Conds:RS_65._col1=RS_66._col0(Inner),Output:["_col2","_col3","_col4"]
-                                                            <-Map 32 [SIMPLE_EDGE]
-                                                              SHUFFLE [RS_66]
-                                                                PartitionCols:_col0
-                                                                Select Operator [SEL_58] (rows=20000000 width=1014)
-                                                                  Output:["_col0"]
-                                                                  Filter Operator [FIL_179] (rows=20000000 width=1014)
-                                                                    predicate:((ca_state = 'NY') and ca_address_sk is not null)
-                                                                    TableScan [TS_56] (rows=40000000 width=1014)
-                                                                      default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                                            <-Reducer 27 [SIMPLE_EDGE]
-                                                              SHUFFLE [RS_65]
-                                                                PartitionCols:_col1
-                                                                Merge Join Operator [MERGEJOIN_185] (rows=316788826 width=135)
-                                                                  Conds:RS_62._col0=RS_63._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                                                <-Map 26 [SIMPLE_EDGE]
-                                                                  SHUFFLE [RS_62]
-                                                                    PartitionCols:_col0
-                                                                    Select Operator [SEL_52] (rows=287989836 width=135)
-                                                                      Output:["_col0","_col1","_col2","_col3","_col4"]
-                                                                      Filter Operator [FIL_177] (rows=287989836 width=135)
-                                                                        predicate:(cs_ship_date_sk is not null and cs_ship_addr_sk is not null and cs_call_center_sk is not null)
-                                                                        TableScan [TS_50] (rows=287989836 width=135)
-                                                                          default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_ship_date_sk","cs_ship_addr_sk","cs_call_center_sk","cs_warehouse_sk","cs_order_number"]
-                                                                <-Map 31 [SIMPLE_EDGE]
-                                                                  SHUFFLE [RS_63]
-                                                                    PartitionCols:_col0
-                                                                    Select Operator [SEL_55] (rows=8116 width=1119)
-                                                                      Output:["_col0"]
-                                                                      Filter Operator [FIL_178] (rows=8116 width=1119)
-                                                                        predicate:(d_date BETWEEN '2001-4-01' AND 2001-05-31 01:00:00.0 and d_date_sk is not null)
-                                                                        TableScan [TS_53] (rows=73049 width=1119)
-                                                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                          Merge Join Operator [MERGEJOIN_149] (rows=3069077244824791552 width=1)
+                            Conds:RS_81._col3, _col4=RS_82._col0, _col1(Inner),Output:["_col4","_col5","_col6","_col14"]
+                          <-Reducer 23 [SIMPLE_EDGE]
+                            SHUFFLE [RS_82]
+                              PartitionCols:_col0, _col1
+                              Group By Operator [GBY_67] (rows=2536427365110644736 width=1)
+                                Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
+                              <-Reducer 22 [SIMPLE_EDGE]
+                                SHUFFLE [RS_66]
+                                  PartitionCols:_col0, _col1
+                                  Group By Operator [GBY_65] (rows=5072854730221289472 width=1)
+                                    Output:["_col0","_col1"],keys:_col2, _col3
+                                    Select Operator [SEL_64] (rows=5072854730221289472 width=1)
+                                      Output:["_col2","_col3"]
+                                      Filter Operator [FIL_63] (rows=5072854730221289472 width=1)
+                                        predicate:(_col2 <> _col0)
+                                        Merge Join Operator [MERGEJOIN_144] (rows=5072854730221289472 width=1)
+                                          Conds:RS_60._col1=RS_61._col1(Inner),Output:["_col0","_col2","_col3"]
+                                        <-Map 21 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_60]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_41] (rows=287989836 width=135)
+                                              Output:["_col0","_col1"]
+                                              TableScan [TS_40] (rows=287989836 width=135)
+                                                default@catalog_sales,cs2,Tbl:COMPLETE,Col:NONE,Output:["cs_warehouse_sk","cs_order_number"]
+                                        <-Reducer 26 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_61]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_59] (rows=4611686018427387903 width=1)
+                                              Output:["_col0","_col1"]
+                                              Group By Operator [GBY_58] (rows=4611686018427387903 width=1)
+                                                Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
+                                              <-Reducer 25 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_57]
+                                                  PartitionCols:_col0, _col1
+                                                  Group By Operator [GBY_56] (rows=9223372036854775807 width=1)
+                                                    Output:["_col0","_col1"],keys:_col4, _col3
+                                                    Select Operator [SEL_55] (rows=9223372036854775807 width=1)
+                                                      Output:["_col4","_col3"]
+                                                      Merge Join Operator [MERGEJOIN_143] (rows=9223372036854775807 width=1)
+                                                        Conds:(Inner),(Inner),(Inner),Output:["_col3","_col4"]
+                                                      <-Map 24 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_50]
+                                                          Select Operator [SEL_43] (rows=73049 width=4)
+                                                            TableScan [TS_42] (rows=73049 width=1119)
+                                                              default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE
+                                                      <-Map 27 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_51]
+                                                          Select Operator [SEL_45] (rows=60 width=4)
+                                                            TableScan [TS_44] (rows=60 width=2045)
+                                                              default@call_center,call_center,Tbl:COMPLETE,Col:COMPLETE
+                                                      <-Map 28 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_52]
+                                                          Select Operator [SEL_47] (rows=40000000 width=4)
+                                                            TableScan [TS_46] (rows=40000000 width=1014)
+                                                              default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE
+                                                      <-Map 29 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_53]
+                                                          Select Operator [SEL_49] (rows=287989836 width=135)
+                                                            Output:["_col0","_col1"]
+                                                            TableScan [TS_48] (rows=287989836 width=135)
+                                                              default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_warehouse_sk","cs_order_number"]
                           <-Reducer 5 [SIMPLE_EDGE]
-                            SHUFFLE [RS_97]
-                              PartitionCols:_col4, _col3
-                              Merge Join Operator [MERGEJOIN_192] (rows=421645953 width=135)
-                                Conds:RS_94._col4=RS_95._col0(Left Outer),Output:["_col3","_col4","_col5","_col6","_col14"]
-                              <-Reducer 14 [SIMPLE_EDGE]
-                                SHUFFLE [RS_95]
+                            SHUFFLE [RS_81]
+                              PartitionCols:_col3, _col4
+                              Merge Join Operator [MERGEJOIN_148] (rows=2790070162094850048 width=1)
+                                Conds:RS_78._col4=RS_79._col0(Left Outer),Output:["_col3","_col4","_col5","_col6","_col14"]
+                              <-Reducer 16 [SIMPLE_EDGE]
+                                SHUFFLE [RS_79]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_47] (rows=105411488 width=135)
+                                  Select Operator [SEL_39] (rows=2536427365110644736 width=1)
                                     Output:["_col0","_col1"]
-                                    Group By Operator [GBY_46] (rows=105411488 width=135)
+                                    Group By Operator [GBY_38] (rows=2536427365110644736 width=1)
                                       Output:["_col0"],keys:KEY._col0
-                                    <-Reducer 13 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_45]
+                                    <-Reducer 15 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_37]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_44] (rows=210822976 width=135)
-                                          Output:["_col0"],keys:_col1
-                                          Merge Join Operator [MERGEJOIN_184] (rows=210822976 width=135)
-                                            Conds:RS_40._col0=RS_41._col0(Inner),Output:["_col1"]
-                                          <-Map 12 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_40]
+                                        Group By Operator [GBY_36] (rows=5072854730221289472 width=1)
+                                          Output:["_col0"],keys:_col0
+                                          Merge Join Operator [MERGEJOIN_142] (rows=5072854730221289472 width=1)
+                                            Conds:RS_32._col0=RS_33._col0(Inner),Output:["_col0"]
+                                          <-Map 20 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_33]
                                               PartitionCols:_col0
-                                              Select Operator [SEL_13] (rows=28798881 width=106)
+                                              Select Operator [SEL_31] (rows=28798881 width=106)
                                                 Output:["_col0"]
-                                                TableScan [TS_12] (rows=28798881 width=106)
+                                                TableScan [TS_30] (rows=28798881 width=106)
                                                   default@catalog_returns,cr1,Tbl:COMPLETE,Col:NONE,Output:["cr_order_number"]
-                                          <-Reducer 19 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_41]
+                                          <-Reducer 14 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_32]
                                               PartitionCols:_col0
-                                              Group By Operator [GBY_38] (rows=191657247 width=135)
+                                              Group By Operator [GBY_28] (rows=4611686018427387903 width=1)
                                                 Output:["_col0"],keys:KEY._col0
-                                              <-Reducer 18 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_37]
+                                              <-Reducer 13 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_27]
                                                   PartitionCols:_col0
-                                                  Group By Operator [GBY_36] (rows=383314495 width=135)
+                                                  Group By Operator [GBY_26] (rows=9223372036854775807 width=1)
                                                     Output:["_col0"],keys:_col3
-                                                    Merge Join Operator [MERGEJOIN_183] (rows=383314495 width=135)
-                                                      Conds:RS_32._col2=RS_33._col0(Inner),Output:["_col3"]
-                                                    <-Map 22 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_33]
-                                                        PartitionCols:_col0
-                                                        Select Operator [SEL_25] (rows=30 width=2045)
+                                                    Merge Join Operator [MERGEJOIN_141] (rows=9223372036854775807 width=1)
+                                                      Conds:(Inner),(Inner),(Inner),Output:["_col3"]
+                                                    <-Map 12 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_20]
+                                                        Select Operator [SEL_13] (rows=73049 width=4)
+                                                          TableScan [TS_12] (rows=73049 width=1119)
+                                                            default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE
+                                                    <-Map 17 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_21]
+                                                        Select Operator [SEL_15] (rows=60 width=4)
+                                                          TableScan [TS_14] (rows=60 width=2045)
+                                                            default@call_center,call_center,Tbl:COMPLETE,Col:COMPLETE
+                                                    <-Map 18 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_22]
+                                                        Select Operator [SEL_17] (rows=40000000 width=4)
+                                                          TableScan [TS_16] (rows=40000000 width=1014)
+                                                            default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE
+                                                    <-Map 19 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_23]
+                                                        Select Operator [SEL_19] (rows=287989836 width=135)
                                                           Output:["_col0"]
-                                                          Filter Operator [FIL_175] (rows=30 width=2045)
-                                                            predicate:((cc_county) IN ('Ziebach County', 'Levy County', 'Huron County', 'Franklin Parish', 'Daviess County') and cc_call_center_sk is not null)
-                                                            TableScan [TS_23] (rows=60 width=2045)
-                                                              default@call_center,call_center,Tbl:COMPLETE,Col:NONE,Output:["cc_call_center_sk","cc_county"]
-                                                    <-Reducer 17 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_32]
-                                                        PartitionCols:_col2
-                                                        Merge Join Operator [MERGEJOIN_182] (rows=348467716 width=135)
-                                                          Conds:RS_29._col1=RS_30._col0(Inner),Output:["_col2","_col3"]
-                                                        <-Map 21 [SIMPLE_EDGE]
-                                                          SHUFFLE [RS_30]
-                                                            PartitionCols:_col0
-                                                            Select Operator [SEL_22] (rows=20000000 width=1014)
-                                                              Output:["_col0"]
-                                                              Filter Operator [FIL_174] (rows=20000000 width=1014)
-                                                                predicate:((ca_state = 'NY') and ca_address_sk is not null)
-                                                                TableScan [TS_20] (rows=40000000 width=1014)
-                                                                  default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                                        <-Reducer 16 [SIMPLE_EDGE]
-                                                          SHUFFLE [RS_29]
-                                                            PartitionCols:_col1
-                                                            Merge Join Operator [MERGEJOIN_181] (rows=316788826 width=135)
-                                                              Conds:RS_26._col0=RS_27._col0(Inner),Output:["_col1","_col2","_col3"]
-                                                            <-Map 15 [SIMPLE_EDGE]
-                                                              SHUFFLE [RS_26]
-                                                                PartitionCols:_col0
-                                                                Select Operator [SEL_16] (rows=287989836 width=135)
-                                                                  Output:["_col0","_col1","_col2","_col3"]
-                                                                  Filter Operator [FIL_172] (rows=287989836 width=135)
-                                                                    predicate:(cs_ship_date_sk is not null and cs_ship_addr_sk is not null and cs_call_center_sk is not null)
-                                                                    TableScan [TS_14] (rows=287989836 width=135)
-                                                                      default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_ship_date_sk","cs_ship_addr_sk","cs_call_center_sk","cs_order_number"]
-                                                            <-Map 20 [SIMPLE_EDGE]
-                                                              SHUFFLE [RS_27]
-                                                                PartitionCols:_col0
-                                                                Select Operator [SEL_19] (rows=8116 width=1119)
-                                                                  Output:["_col0"]
-                                                                  Filter Operator [FIL_173] (rows=8116 width=1119)
-                                                                    predicate:(d_date BETWEEN '2001-4-01' AND 2001-05-31 01:00:00.0 and d_date_sk is not null)
-                                                                    TableScan [TS_17] (rows=73049 width=1119)
-                                                                      default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                                                          TableScan [TS_18] (rows=287989836 width=135)
+                                                            default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_order_number"]
                               <-Reducer 4 [SIMPLE_EDGE]
-                                SHUFFLE [RS_94]
+                                SHUFFLE [RS_78]
                                   PartitionCols:_col4
-                                  Merge Join Operator [MERGEJOIN_191] (rows=383314495 width=135)
-                                    Conds:RS_91._col2=RS_92._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
+                                  Merge Join Operator [MERGEJOIN_147] (rows=383314495 width=135)
+                                    Conds:RS_75._col2=RS_76._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
                                   <-Map 11 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_92]
+                                    SHUFFLE [RS_76]
                                       PartitionCols:_col0
                                       Select Operator [SEL_11] (rows=30 width=2045)
                                         Output:["_col0"]
-                                        Filter Operator [FIL_170] (rows=30 width=2045)
+                                        Filter Operator [FIL_136] (rows=30 width=2045)
                                           predicate:((cc_county) IN ('Ziebach County', 'Levy County', 'Huron County', 'Franklin Parish', 'Daviess County') and cc_call_center_sk is not null)
                                           TableScan [TS_9] (rows=60 width=2045)
                                             default@call_center,call_center,Tbl:COMPLETE,Col:NONE,Output:["cc_call_center_sk","cc_county"]
                                   <-Reducer 3 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_91]
+                                    SHUFFLE [RS_75]
                                       PartitionCols:_col2
-                                      Merge Join Operator [MERGEJOIN_190] (rows=348467716 width=135)
-                                        Conds:RS_88._col1=RS_89._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6"]
+                                      Merge Join Operator [MERGEJOIN_146] (rows=348467716 width=135)
+                                        Conds:RS_72._col1=RS_73._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6"]
                                       <-Map 10 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_89]
+                                        SHUFFLE [RS_73]
                                           PartitionCols:_col0
                                           Select Operator [SEL_8] (rows=20000000 width=1014)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_169] (rows=20000000 width=1014)
+                                            Filter Operator [FIL_135] (rows=20000000 width=1014)
                                               predicate:((ca_state = 'NY') and ca_address_sk is not null)
                                               TableScan [TS_6] (rows=40000000 width=1014)
                                                 default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
                                       <-Reducer 2 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_88]
+                                        SHUFFLE [RS_72]
                                           PartitionCols:_col1
-                                          Merge Join Operator [MERGEJOIN_189] (rows=316788826 width=135)
-                                            Conds:RS_85._col0=RS_86._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6"]
+                                          Merge Join Operator [MERGEJOIN_145] (rows=316788826 width=135)
+                                            Conds:RS_69._col0=RS_70._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6"]
                                           <-Map 1 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_85]
+                                            SHUFFLE [RS_69]
                                               PartitionCols:_col0
                                               Select Operator [SEL_2] (rows=287989836 width=135)
                                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                Filter Operator [FIL_167] (rows=287989836 width=135)
+                                                Filter Operator [FIL_133] (rows=287989836 width=135)
                                                   predicate:(cs_ship_date_sk is not null and cs_ship_addr_sk is not null and cs_call_center_sk is not null)
                                                   TableScan [TS_0] (rows=287989836 width=135)
                                                     default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_ship_date_sk","cs_ship_addr_sk","cs_call_center_sk","cs_warehouse_sk","cs_order_number","cs_ext_ship_cost","cs_net_profit"]
                                           <-Map 9 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_86]
+                                            SHUFFLE [RS_70]
                                               PartitionCols:_col0
                                               Select Operator [SEL_5] (rows=8116 width=1119)
                                                 Output:["_col0"]
-                                                Filter Operator [FIL_168] (rows=8116 width=1119)
+                                                Filter Operator [FIL_134] (rows=8116 width=1119)
                                                   predicate:(d_date BETWEEN '2001-4-01' AND 2001-05-31 01:00:00.0 and d_date_sk is not null)
                                                   TableScan [TS_3] (rows=73049 width=1119)
                                                     default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]


Mime
View raw message