http://git-wip-us.apache.org/repos/asf/hive/blob/bddf5a7a/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 1be5fba..dceb3a5 100644
--- a/ql/src/test/results/clientpositive/perf/query16.q.out
+++ b/ql/src/test/results/clientpositive/perf/query16.q.out
@@ -1,5 +1,4 @@
-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[142][tables = [$hdt$_2, $hdt$_3, $hdt$_1, 
$hdt$_4]] in Stage 'Reducer 25' is a cross product
+Warning: Shuffle Join MERGEJOIN[106][tables = [$hdt$_2, $hdt$_3, $hdt$_1, 
$hdt$_4]] in Stage 'Reducer 18' 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`
@@ -61,19 +60,16 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 13 <- Map 12 (CUSTOM_SIMPLE_EDGE), Map 17 (CUSTOM_SIMPLE_EDGE), Map 18 
(CUSTOM_SIMPLE_EDGE), Map 19 (CUSTOM_SIMPLE_EDGE)
-Reducer 14 <- Reducer 13 (SIMPLE_EDGE)
-Reducer 15 <- Map 20 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
+Reducer 13 <- Map 12 (SIMPLE_EDGE)
+Reducer 15 <- Map 14 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
 Reducer 16 <- Reducer 15 (SIMPLE_EDGE)
+Reducer 18 <- Map 17 (CUSTOM_SIMPLE_EDGE), Map 20 (CUSTOM_SIMPLE_EDGE), Map 21 
(CUSTOM_SIMPLE_EDGE), Map 22 (CUSTOM_SIMPLE_EDGE)
+Reducer 19 <- Reducer 18 (SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
-Reducer 22 <- Map 21 (SIMPLE_EDGE), Reducer 26 (SIMPLE_EDGE)
-Reducer 23 <- Reducer 22 (SIMPLE_EDGE)
-Reducer 25 <- Map 24 (CUSTOM_SIMPLE_EDGE), Map 27 (CUSTOM_SIMPLE_EDGE), Map 28 
(CUSTOM_SIMPLE_EDGE), Map 29 (CUSTOM_SIMPLE_EDGE)
-Reducer 26 <- Reducer 25 (SIMPLE_EDGE)
 Reducer 3 <- Map 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
 Reducer 4 <- Map 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 16 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 23 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 13 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 16 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
 
@@ -82,194 +78,156 @@ Stage-0
     limit:100
     Stage-1
       Reducer 8
-      File Output Operator [FS_94]
-        Limit [LIM_93] (rows=1 width=344)
+      File Output Operator [FS_73]
+        Limit [LIM_72] (rows=1 width=344)
           Number of rows:100
-          Select Operator [SEL_92] (rows=1 width=344)
+          Select Operator [SEL_71] (rows=1 width=344)
             Output:["_col0","_col1","_col2"]
           <-Reducer 7 [SIMPLE_EDGE]
-            SHUFFLE [RS_91]
-              Group By Operator [GBY_89] (rows=1 width=344)
+            SHUFFLE [RS_70]
+              Group By Operator [GBY_68] (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_88]
-                  Group By Operator [GBY_87] (rows=1534538622412395776 width=1)
+                SHUFFLE [RS_67]
+                  Group By Operator [GBY_66] (rows=1395035081047425024 width=1)
                     
Output:["_col0","_col1","_col2","_col3"],aggregations:["count(DISTINCT 
_col4)","sum(_col5)","sum(_col6)"],keys:_col4
-                    Select Operator [SEL_86] (rows=1534538622412395776 width=1)
+                    Select Operator [SEL_65] (rows=1395035081047425024 width=1)
                       Output:["_col4","_col5","_col6"]
-                      Filter Operator [FIL_85] (rows=1534538622412395776 
width=1)
+                      Filter Operator [FIL_64] (rows=1395035081047425024 
width=1)
                         predicate:_col16 is null
-                        Select Operator [SEL_84] (rows=3069077244824791552 
width=1)
+                        Select Operator [SEL_63] (rows=2790070162094850048 
width=1)
                           Output:["_col4","_col5","_col6","_col16"]
-                          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]
+                          Merge Join Operator [MERGEJOIN_112] 
(rows=2790070162094850048 width=1)
+                            Conds:RS_60._col3, _col4=RS_61._col0, 
_col1(Inner),Output:["_col4","_col5","_col6","_col14"]
+                          <-Reducer 16 [SIMPLE_EDGE]
+                            SHUFFLE [RS_61]
                               PartitionCols:_col0, _col1
-                              Group By Operator [GBY_67] 
(rows=2536427365110644736 width=1)
+                              Group By Operator [GBY_46] 
(rows=2536427365110644736 width=1)
                                 Output:["_col0","_col1"],keys:KEY._col0, 
KEY._col1
-                              <-Reducer 22 [SIMPLE_EDGE]
-                                SHUFFLE [RS_66]
+                              <-Reducer 15 [SIMPLE_EDGE]
+                                SHUFFLE [RS_45]
                                   PartitionCols:_col0, _col1
-                                  Group By Operator [GBY_65] 
(rows=5072854730221289472 width=1)
+                                  Group By Operator [GBY_44] 
(rows=5072854730221289472 width=1)
                                     Output:["_col0","_col1"],keys:_col2, _col3
-                                    Select Operator [SEL_64] 
(rows=5072854730221289472 width=1)
+                                    Select Operator [SEL_43] 
(rows=5072854730221289472 width=1)
                                       Output:["_col2","_col3"]
-                                      Filter Operator [FIL_63] 
(rows=5072854730221289472 width=1)
+                                      Filter Operator [FIL_42] 
(rows=5072854730221289472 width=1)
                                         predicate:(_col2 <> _col0)
-                                        Merge Join Operator [MERGEJOIN_147] 
(rows=5072854730221289472 width=1)
-                                          
Conds:RS_60._col1=RS_61._col1(Inner),Output:["_col0","_col2","_col3"]
-                                        <-Map 21 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_60]
+                                        Merge Join Operator [MERGEJOIN_110] 
(rows=5072854730221289472 width=1)
+                                          
Conds:RS_39._col1=RS_40._col1(Inner),Output:["_col0","_col2","_col3"]
+                                        <-Map 14 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_39]
                                             PartitionCols:_col1
-                                            Select Operator [SEL_41] 
(rows=287989836 width=135)
+                                            Select Operator [SEL_20] 
(rows=287989836 width=135)
                                               Output:["_col0","_col1"]
-                                              TableScan [TS_40] 
(rows=287989836 width=135)
+                                              TableScan [TS_19] 
(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]
+                                        <-Reducer 19 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_40]
                                             PartitionCols:_col1
-                                            Select Operator [SEL_59] 
(rows=4611686018427387903 width=1)
+                                            Select Operator [SEL_38] 
(rows=4611686018427387903 width=1)
                                               Output:["_col0","_col1"]
-                                              Group By Operator [GBY_58] 
(rows=4611686018427387903 width=1)
+                                              Group By Operator [GBY_37] 
(rows=4611686018427387903 width=1)
                                                 
Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
-                                              <-Reducer 25 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_57]
+                                              <-Reducer 18 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_36]
                                                   PartitionCols:_col0, _col1
-                                                  Group By Operator [GBY_56] 
(rows=9223372036854775807 width=1)
+                                                  Group By Operator [GBY_35] 
(rows=9223372036854775807 width=1)
                                                     
Output:["_col0","_col1"],keys:_col4, _col3
-                                                    Select Operator [SEL_55] 
(rows=9223372036854775807 width=1)
+                                                    Select Operator [SEL_34] 
(rows=9223372036854775807 width=1)
                                                       Output:["_col4","_col3"]
-                                                      Merge Join Operator 
[MERGEJOIN_142] (rows=9223372036854775807 width=1)
+                                                      Merge Join Operator 
[MERGEJOIN_106] (rows=9223372036854775807 width=1)
                                                         
Conds:(Inner),(Inner),(Inner),Output:["_col3","_col4"]
-                                                      <-Map 24 
[CUSTOM_SIMPLE_EDGE]
-                                                        PARTITION_ONLY_SHUFFLE 
[RS_50]
-                                                          Select Operator 
[SEL_43] (rows=73049 width=4)
-                                                            TableScan [TS_42] 
(rows=73049 width=1119)
+                                                      <-Map 17 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_29]
+                                                          Select Operator 
[SEL_22] (rows=73049 width=4)
+                                                            TableScan [TS_21] 
(rows=73049 width=1119)
                                                               
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE
-                                                      <-Map 27 
[CUSTOM_SIMPLE_EDGE]
-                                                        PARTITION_ONLY_SHUFFLE 
[RS_51]
-                                                          Select Operator 
[SEL_45] (rows=60 width=4)
-                                                            TableScan [TS_44] 
(rows=60 width=2045)
+                                                      <-Map 20 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_30]
+                                                          Select Operator 
[SEL_24] (rows=60 width=4)
+                                                            TableScan [TS_23] 
(rows=60 width=2045)
                                                               
default@call_center,call_center,Tbl:COMPLETE,Col:COMPLETE
-                                                      <-Map 28 
[CUSTOM_SIMPLE_EDGE]
-                                                        PARTITION_ONLY_SHUFFLE 
[RS_52]
-                                                          Select Operator 
[SEL_47] (rows=40000000 width=4)
-                                                            TableScan [TS_46] 
(rows=40000000 width=1014)
+                                                      <-Map 21 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_31]
+                                                          Select Operator 
[SEL_26] (rows=40000000 width=4)
+                                                            TableScan [TS_25] 
(rows=40000000 width=1014)
                                                               
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE
-                                                      <-Map 29 
[CUSTOM_SIMPLE_EDGE]
-                                                        PARTITION_ONLY_SHUFFLE 
[RS_53]
-                                                          Select Operator 
[SEL_49] (rows=287989836 width=135)
+                                                      <-Map 22 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_32]
+                                                          Select Operator 
[SEL_28] (rows=287989836 width=135)
                                                             
Output:["_col0","_col1"]
-                                                            TableScan [TS_48] 
(rows=287989836 width=135)
+                                                            TableScan [TS_27] 
(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_81]
+                            SHUFFLE [RS_60]
                               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]
+                              Merge Join Operator [MERGEJOIN_111] 
(rows=421645953 width=135)
+                                Conds:RS_57._col4=RS_58._col0(Left 
Outer),Output:["_col3","_col4","_col5","_col6","_col14"]
+                              <-Reducer 13 [SIMPLE_EDGE]
+                                SHUFFLE [RS_58]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_39] 
(rows=2536427365110644736 width=1)
+                                  Select Operator [SEL_18] (rows=7199720 
width=106)
                                     Output:["_col0","_col1"]
-                                    Group By Operator [GBY_38] 
(rows=2536427365110644736 width=1)
+                                    Group By Operator [GBY_17] (rows=7199720 
width=106)
                                       Output:["_col0"],keys:KEY._col0
-                                    <-Reducer 15 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_37]
+                                    <-Map 12 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_16]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_36] 
(rows=5072854730221289472 width=1)
-                                          Output:["_col0"],keys:_col0
-                                          Merge Join Operator [MERGEJOIN_146] 
(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_31] 
(rows=28798881 width=106)
-                                                Output:["_col0"]
-                                                TableScan [TS_30] 
(rows=28798881 width=106)
-                                                  
default@catalog_returns,cr1,Tbl:COMPLETE,Col:NONE,Output:["cr_order_number"]
-                                          <-Reducer 14 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_32]
-                                              PartitionCols:_col0
-                                              Group By Operator [GBY_28] 
(rows=4611686018427387903 width=1)
-                                                Output:["_col0"],keys:KEY._col0
-                                              <-Reducer 13 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_27]
-                                                  PartitionCols:_col0
-                                                  Group By Operator [GBY_26] 
(rows=9223372036854775807 width=1)
-                                                    Output:["_col0"],keys:_col3
-                                                    Merge Join Operator 
[MERGEJOIN_141] (rows=9223372036854775807 width=1)
-                                                      
Conds:(Inner),(Inner),(Inner),Output:["_col3"]
-                                                    <-Map 12 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_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 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_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 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_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 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_23]
-                                                        Select Operator 
[SEL_19] (rows=287989836 width=135)
-                                                          Output:["_col0"]
-                                                          TableScan [TS_18] 
(rows=287989836 width=135)
-                                                            
default@catalog_sales,cs1,Tbl:COMPLETE,Col:NONE,Output:["cs_order_number"]
+                                        Group By Operator [GBY_15] 
(rows=14399440 width=106)
+                                          Output:["_col0"],keys:cr_order_number
+                                          Filter Operator [FIL_103] 
(rows=14399440 width=106)
+                                            predicate:(cr_order_number = 
cr_order_number)
+                                            TableScan [TS_12] (rows=28798881 
width=106)
+                                              
default@catalog_returns,cr1,Tbl:COMPLETE,Col:NONE,Output:["cr_order_number"]
                               <-Reducer 4 [SIMPLE_EDGE]
-                                SHUFFLE [RS_78]
+                                SHUFFLE [RS_57]
                                   PartitionCols:_col4
-                                  Merge Join Operator [MERGEJOIN_145] 
(rows=383314495 width=135)
-                                    
Conds:RS_75._col2=RS_76._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
+                                  Merge Join Operator [MERGEJOIN_109] 
(rows=383314495 width=135)
+                                    
Conds:RS_54._col2=RS_55._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
                                   <-Map 11 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_76]
+                                    SHUFFLE [RS_55]
                                       PartitionCols:_col0
                                       Select Operator [SEL_11] (rows=30 
width=2045)
                                         Output:["_col0"]
-                                        Filter Operator [FIL_136] (rows=30 
width=2045)
+                                        Filter Operator [FIL_102] (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_75]
+                                    SHUFFLE [RS_54]
                                       PartitionCols:_col2
-                                      Merge Join Operator [MERGEJOIN_144] 
(rows=348467716 width=135)
-                                        
Conds:RS_72._col1=RS_73._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6"]
+                                      Merge Join Operator [MERGEJOIN_108] 
(rows=348467716 width=135)
+                                        
Conds:RS_51._col1=RS_52._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6"]
                                       <-Map 10 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_73]
+                                        SHUFFLE [RS_52]
                                           PartitionCols:_col0
                                           Select Operator [SEL_8] 
(rows=20000000 width=1014)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_135] 
(rows=20000000 width=1014)
+                                            Filter Operator [FIL_101] 
(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_72]
+                                        SHUFFLE [RS_51]
                                           PartitionCols:_col1
-                                          Merge Join Operator [MERGEJOIN_143] 
(rows=316788826 width=135)
-                                            
Conds:RS_69._col0=RS_70._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6"]
+                                          Merge Join Operator [MERGEJOIN_107] 
(rows=316788826 width=135)
+                                            
Conds:RS_48._col0=RS_49._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6"]
                                           <-Map 1 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_69]
+                                            SHUFFLE [RS_48]
                                               PartitionCols:_col0
                                               Select Operator [SEL_2] 
(rows=287989836 width=135)
                                                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                Filter Operator [FIL_133] 
(rows=287989836 width=135)
+                                                Filter Operator [FIL_99] 
(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_70]
+                                            SHUFFLE [RS_49]
                                               PartitionCols:_col0
                                               Select Operator [SEL_5] 
(rows=8116 width=1119)
                                                 Output:["_col0"]
-                                                Filter Operator [FIL_134] 
(rows=8116 width=1119)
+                                                Filter Operator [FIL_100] 
(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"]

http://git-wip-us.apache.org/repos/asf/hive/blob/bddf5a7a/ql/src/test/results/clientpositive/perf/query30.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query30.q.out 
b/ql/src/test/results/clientpositive/perf/query30.q.out
index 8d38fe2..3bb4f81 100644
--- a/ql/src/test/results/clientpositive/perf/query30.q.out
+++ b/ql/src/test/results/clientpositive/perf/query30.q.out
@@ -1,4 +1,3 @@
-Warning: Shuffle Join MERGEJOIN[154][tables = [$hdt$_4, $hdt$_5, $hdt$_6]] in 
Stage 'Reducer 22' is a cross product
 PREHOOK: query: explain with customer_total_return as
  (select wr_returning_customer_sk as ctr_customer_sk
         ,ca_state as ctr_state, 
@@ -60,249 +59,163 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
-Reducer 14 <- Map 13 (SIMPLE_EDGE), Map 19 (SIMPLE_EDGE)
-Reducer 15 <- Map 20 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
+Reducer 10 <- Reducer 16 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 14 <- Map 13 (SIMPLE_EDGE), Map 17 (SIMPLE_EDGE)
+Reducer 15 <- Map 18 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
 Reducer 16 <- Reducer 15 (SIMPLE_EDGE)
-Reducer 17 <- Reducer 16 (SIMPLE_EDGE), Reducer 23 (SIMPLE_EDGE)
-Reducer 18 <- Reducer 17 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
-Reducer 22 <- Map 21 (CUSTOM_SIMPLE_EDGE), Map 30 (CUSTOM_SIMPLE_EDGE), 
Reducer 27 (CUSTOM_SIMPLE_EDGE)
-Reducer 23 <- Reducer 22 (SIMPLE_EDGE)
-Reducer 25 <- Map 24 (SIMPLE_EDGE), Map 28 (SIMPLE_EDGE)
-Reducer 26 <- Map 29 (SIMPLE_EDGE), Reducer 25 (SIMPLE_EDGE)
-Reducer 27 <- Reducer 26 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 5 (SIMPLE_EDGE)
 Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 18 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 8 <- Map 11 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 9 <- Map 12 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
+Reducer 7 <- Map 11 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 8 <- Map 12 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
+Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 5
-      File Output Operator [FS_102]
-        Limit [LIM_101] (rows=100 width=1)
+      Reducer 4
+      File Output Operator [FS_67]
+        Limit [LIM_66] (rows=100 width=860)
           Number of rows:100
-          Select Operator [SEL_100] (rows=930023387364950016 width=1)
+          Select Operator [SEL_65] (rows=32266667 width=860)
             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12"]
-          <-Reducer 4 [SIMPLE_EDGE]
-            SHUFFLE [RS_99]
-              Select Operator [SEL_98] (rows=930023387364950016 width=1)
+          <-Reducer 3 [SIMPLE_EDGE]
+            SHUFFLE [RS_64]
+              Select Operator [SEL_63] (rows=32266667 width=860)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12"]
-                Filter Operator [FIL_97] (rows=930023387364950016 width=1)
+                Filter Operator [FIL_62] (rows=32266667 width=860)
                   predicate:(_col2 > CASE WHEN (_col20 is null) THEN (null) 
ELSE (_col19) END)
-                  Select Operator [SEL_96] (rows=2790070162094850048 width=1)
+                  Select Operator [SEL_61] (rows=96800003 width=860)
                     
Output:["_col2","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20"]
-                    Merge Join Operator [MERGEJOIN_162] 
(rows=2790070162094850048 width=1)
-                      Conds:RS_93._col17=RS_94._col2(Left 
Outer),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col18","_col19","_col20"]
-                    <-Reducer 18 [SIMPLE_EDGE]
-                      SHUFFLE [RS_94]
-                        PartitionCols:_col2
-                        Select Operator [SEL_86] (rows=2536427365110644736 
width=1)
-                          Output:["_col0","_col1","_col2"]
-                          Group By Operator [GBY_85] (rows=2536427365110644736 
width=1)
-                            
Output:["_col0","_col1"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0
-                          <-Reducer 17 [SIMPLE_EDGE]
-                            SHUFFLE [RS_84]
-                              PartitionCols:_col0
-                              Group By Operator [GBY_83] 
(rows=5072854730221289472 width=1)
-                                
Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col3
-                                Select Operator [SEL_82] 
(rows=5072854730221289472 width=1)
-                                  Output:["_col3","_col2"]
-                                  Merge Join Operator [MERGEJOIN_161] 
(rows=5072854730221289472 width=1)
-                                    
Conds:RS_79._col1=RS_80._col0(Inner),Output:["_col2","_col3"]
-                                  <-Reducer 16 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_79]
-                                      PartitionCols:_col1
-                                      Select Operator [SEL_45] (rows=22000000 
width=1014)
-                                        Output:["_col1","_col2"]
-                                        Group By Operator [GBY_44] 
(rows=22000000 width=1014)
-                                          
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
-                                        <-Reducer 15 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_43]
-                                            PartitionCols:_col0, _col1
-                                            Group By Operator [GBY_42] 
(rows=44000000 width=1014)
-                                              
Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col1
-                                              Select Operator [SEL_41] 
(rows=44000000 width=1014)
-                                                
Output:["_col7","_col1","_col3"]
-                                                Merge Join Operator 
[MERGEJOIN_159] (rows=44000000 width=1014)
-                                                  
Conds:RS_38._col2=RS_39._col0(Inner),Output:["_col1","_col3","_col7"]
-                                                <-Map 20 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_39]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_34] 
(rows=40000000 width=1014)
-                                                      Output:["_col0","_col1"]
-                                                      Filter Operator 
[FIL_148] (rows=40000000 width=1014)
-                                                        
predicate:ca_address_sk is not null
-                                                        TableScan [TS_32] 
(rows=40000000 width=1014)
-                                                          
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                                <-Reducer 14 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_38]
-                                                    PartitionCols:_col2
-                                                    Merge Join Operator 
[MERGEJOIN_158] (rows=15838314 width=92)
-                                                      
Conds:RS_35._col0=RS_36._col0(Inner),Output:["_col1","_col2","_col3"]
-                                                    <-Map 13 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_35]
-                                                        PartitionCols:_col0
-                                                        Select Operator 
[SEL_28] (rows=14398467 width=92)
-                                                          
Output:["_col0","_col1","_col2","_col3"]
-                                                          Filter Operator 
[FIL_146] (rows=14398467 width=92)
-                                                            
predicate:(wr_returned_date_sk is not null and wr_returning_addr_sk is not null)
-                                                            TableScan [TS_26] 
(rows=14398467 width=92)
-                                                              
default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_returned_date_sk","wr_returning_customer_sk","wr_returning_addr_sk","wr_return_amt"]
-                                                    <-Map 19 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_36]
-                                                        PartitionCols:_col0
-                                                        Select Operator 
[SEL_31] (rows=36524 width=1119)
-                                                          Output:["_col0"]
-                                                          Filter Operator 
[FIL_147] (rows=36524 width=1119)
-                                                            predicate:((d_year 
= 2002) and d_date_sk is not null)
-                                                            TableScan [TS_29] 
(rows=73049 width=1119)
-                                                              
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                  <-Reducer 23 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_80]
+                    Merge Join Operator [MERGEJOIN_105] (rows=96800003 
width=860)
+                      
Conds:RS_58._col0=RS_59._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col18","_col19","_col20"]
+                    <-Reducer 10 [SIMPLE_EDGE]
+                      SHUFFLE [RS_59]
+                        PartitionCols:_col0
+                        Merge Join Operator [MERGEJOIN_104] (rows=24200000 
width=1014)
+                          Conds:RS_51._col1=RS_52._col2(Left 
Outer),Output:["_col0","_col2","_col3","_col4"]
+                        <-Reducer 16 [SIMPLE_EDGE]
+                          SHUFFLE [RS_52]
+                            PartitionCols:_col2
+                            Select Operator [SEL_50] (rows=5500000 width=1014)
+                              Output:["_col0","_col1","_col2"]
+                              Group By Operator [GBY_49] (rows=5500000 
width=1014)
+                                
Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col0
+                                Select Operator [SEL_45] (rows=11000000 
width=1014)
+                                  Output:["_col0","_col2"]
+                                  Group By Operator [GBY_44] (rows=11000000 
width=1014)
+                                    
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
+                                  <-Reducer 15 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_43]
                                       PartitionCols:_col0
-                                      Group By Operator [GBY_77] 
(rows=4611686018427387903 width=1)
-                                        Output:["_col0"],keys:KEY._col0
-                                      <-Reducer 22 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_76]
+                                      Group By Operator [GBY_42] 
(rows=22000000 width=1014)
+                                        
Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col1
+                                        Select Operator [SEL_41] 
(rows=22000000 width=1014)
+                                          Output:["_col7","_col1","_col3"]
+                                          Merge Join Operator [MERGEJOIN_103] 
(rows=22000000 width=1014)
+                                            
Conds:RS_38._col2=RS_39._col0(Inner),Output:["_col1","_col3","_col7"]
+                                          <-Map 18 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_39]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_34] 
(rows=20000000 width=1014)
+                                                Output:["_col0","_col1"]
+                                                Filter Operator [FIL_98] 
(rows=20000000 width=1014)
+                                                  predicate:((ca_state = 
ca_state) and ca_address_sk is not null)
+                                                  TableScan [TS_32] 
(rows=40000000 width=1014)
+                                                    
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
+                                          <-Reducer 14 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_38]
+                                              PartitionCols:_col2
+                                              Merge Join Operator 
[MERGEJOIN_102] (rows=15838314 width=92)
+                                                
Conds:RS_35._col0=RS_36._col0(Inner),Output:["_col1","_col2","_col3"]
+                                              <-Map 13 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_35]
+                                                  PartitionCols:_col0
+                                                  Select Operator [SEL_28] 
(rows=14398467 width=92)
+                                                    
Output:["_col0","_col1","_col2","_col3"]
+                                                    Filter Operator [FIL_96] 
(rows=14398467 width=92)
+                                                      
predicate:(wr_returned_date_sk is not null and wr_returning_addr_sk is not null)
+                                                      TableScan [TS_26] 
(rows=14398467 width=92)
+                                                        
default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_returned_date_sk","wr_returning_customer_sk","wr_returning_addr_sk","wr_return_amt"]
+                                              <-Map 17 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_36]
+                                                  PartitionCols:_col0
+                                                  Select Operator [SEL_31] 
(rows=36524 width=1119)
+                                                    Output:["_col0"]
+                                                    Filter Operator [FIL_97] 
(rows=36524 width=1119)
+                                                      predicate:((d_year = 
2002) and d_date_sk is not null)
+                                                      TableScan [TS_29] 
(rows=73049 width=1119)
+                                                        
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                        <-Reducer 9 [SIMPLE_EDGE]
+                          SHUFFLE [RS_51]
+                            PartitionCols:_col1
+                            Select Operator [SEL_25] (rows=22000000 width=1014)
+                              Output:["_col0","_col1","_col2"]
+                              Group By Operator [GBY_24] (rows=22000000 
width=1014)
+                                
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
+                              <-Reducer 8 [SIMPLE_EDGE]
+                                SHUFFLE [RS_23]
+                                  PartitionCols:_col0, _col1
+                                  Group By Operator [GBY_22] (rows=44000000 
width=1014)
+                                    
Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col1
+                                    Select Operator [SEL_21] (rows=44000000 
width=1014)
+                                      Output:["_col7","_col1","_col3"]
+                                      Merge Join Operator [MERGEJOIN_101] 
(rows=44000000 width=1014)
+                                        
Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col1","_col3","_col7"]
+                                      <-Map 12 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_19]
                                           PartitionCols:_col0
-                                          Group By Operator [GBY_75] 
(rows=9223372036854775807 width=1)
-                                            Output:["_col0"],keys:_col2
-                                            Merge Join Operator 
[MERGEJOIN_154] (rows=9223372036854775807 width=1)
-                                              
Conds:(Inner),(Inner),Output:["_col2"]
-                                            <-Map 21 [CUSTOM_SIMPLE_EDGE]
-                                              PARTITION_ONLY_SHUFFLE [RS_70]
-                                                Select Operator [SEL_47] 
(rows=80000000 width=4)
-                                                  TableScan [TS_46] 
(rows=80000000 width=860)
-                                                    
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE
-                                            <-Map 30 [CUSTOM_SIMPLE_EDGE]
-                                              PARTITION_ONLY_SHUFFLE [RS_72]
-                                                Select Operator [SEL_69] 
(rows=40000000 width=4)
-                                                  TableScan [TS_68] 
(rows=40000000 width=1014)
-                                                    
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE
-                                            <-Reducer 27 [CUSTOM_SIMPLE_EDGE]
-                                              PARTITION_ONLY_SHUFFLE [RS_71]
-                                                Select Operator [SEL_67] 
(rows=22000000 width=1014)
-                                                  Output:["_col1"]
-                                                  Group By Operator [GBY_66] 
(rows=22000000 width=1014)
-                                                    
Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
-                                                  <-Reducer 26 [SIMPLE_EDGE]
-                                                    SHUFFLE [RS_65]
-                                                      PartitionCols:_col0, 
_col1
-                                                      Group By Operator 
[GBY_64] (rows=44000000 width=1014)
-                                                        
Output:["_col0","_col1"],keys:_col7, _col1
-                                                        Select Operator 
[SEL_63] (rows=44000000 width=1014)
-                                                          
Output:["_col7","_col1"]
-                                                          Merge Join Operator 
[MERGEJOIN_153] (rows=44000000 width=1014)
-                                                            
Conds:RS_60._col2=RS_61._col0(Inner),Output:["_col1","_col7"]
-                                                          <-Map 29 
[SIMPLE_EDGE]
-                                                            SHUFFLE [RS_61]
-                                                              
PartitionCols:_col0
-                                                              Select Operator 
[SEL_56] (rows=40000000 width=1014)
-                                                                
Output:["_col0","_col1"]
-                                                                Filter 
Operator [FIL_151] (rows=40000000 width=1014)
-                                                                  
predicate:ca_address_sk is not null
-                                                                  TableScan 
[TS_54] (rows=40000000 width=1014)
-                                                                    
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                                          <-Reducer 25 
[SIMPLE_EDGE]
-                                                            SHUFFLE [RS_60]
-                                                              
PartitionCols:_col2
-                                                              Merge Join 
Operator [MERGEJOIN_152] (rows=15838314 width=92)
-                                                                
Conds:RS_57._col0=RS_58._col0(Inner),Output:["_col1","_col2"]
-                                                              <-Map 24 
[SIMPLE_EDGE]
-                                                                SHUFFLE [RS_57]
-                                                                  
PartitionCols:_col0
-                                                                  Select 
Operator [SEL_50] (rows=14398467 width=92)
-                                                                    
Output:["_col0","_col1","_col2"]
-                                                                    Filter 
Operator [FIL_149] (rows=14398467 width=92)
-                                                                      
predicate:(wr_returned_date_sk is not null and wr_returning_addr_sk is not null)
-                                                                      
TableScan [TS_48] (rows=14398467 width=92)
-                                                                        
default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_returned_date_sk","wr_returning_customer_sk","wr_returning_addr_sk"]
-                                                              <-Map 28 
[SIMPLE_EDGE]
-                                                                SHUFFLE [RS_58]
-                                                                  
PartitionCols:_col0
-                                                                  Select 
Operator [SEL_53] (rows=36524 width=1119)
-                                                                    
Output:["_col0"]
-                                                                    Filter 
Operator [FIL_150] (rows=36524 width=1119)
-                                                                      
predicate:((d_year = 2002) and d_date_sk is not null)
-                                                                      
TableScan [TS_51] (rows=73049 width=1119)
-                                                                        
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                    <-Reducer 3 [SIMPLE_EDGE]
-                      SHUFFLE [RS_93]
-                        PartitionCols:_col17
-                        Merge Join Operator [MERGEJOIN_160] (rows=96800003 
width=860)
-                          
Conds:RS_90._col0=RS_91._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col17","_col18"]
-                        <-Reducer 10 [SIMPLE_EDGE]
-                          SHUFFLE [RS_91]
+                                          Select Operator [SEL_14] 
(rows=40000000 width=1014)
+                                            Output:["_col0","_col1"]
+                                            Filter Operator [FIL_95] 
(rows=40000000 width=1014)
+                                              predicate:ca_address_sk is not 
null
+                                              TableScan [TS_12] (rows=40000000 
width=1014)
+                                                
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
+                                      <-Reducer 7 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_18]
+                                          PartitionCols:_col2
+                                          Merge Join Operator [MERGEJOIN_100] 
(rows=15838314 width=92)
+                                            
Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3"]
+                                          <-Map 11 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_16]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_11] 
(rows=36524 width=1119)
+                                                Output:["_col0"]
+                                                Filter Operator [FIL_94] 
(rows=36524 width=1119)
+                                                  predicate:((d_year = 2002) 
and d_date_sk is not null)
+                                                  TableScan [TS_9] (rows=73049 
width=1119)
+                                                    
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                          <-Map 6 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_15]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_8] 
(rows=14398467 width=92)
+                                                
Output:["_col0","_col1","_col2","_col3"]
+                                                Filter Operator [FIL_93] 
(rows=14398467 width=92)
+                                                  
predicate:(wr_returned_date_sk is not null and wr_returning_addr_sk is not null 
and wr_returning_customer_sk is not null)
+                                                  TableScan [TS_6] 
(rows=14398467 width=92)
+                                                    
default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_returned_date_sk","wr_returning_customer_sk","wr_returning_addr_sk","wr_return_amt"]
+                    <-Reducer 2 [SIMPLE_EDGE]
+                      SHUFFLE [RS_58]
+                        PartitionCols:_col0
+                        Merge Join Operator [MERGEJOIN_99] (rows=88000001 
width=860)
+                          
Conds:RS_55._col2=RS_56._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
+                        <-Map 1 [SIMPLE_EDGE]
+                          SHUFFLE [RS_55]
+                            PartitionCols:_col2
+                            Select Operator [SEL_2] (rows=80000000 width=860)
+                              
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
+                              Filter Operator [FIL_91] (rows=80000000 
width=860)
+                                predicate:(c_customer_sk is not null and 
c_current_addr_sk is not null)
+                                TableScan [TS_0] (rows=80000000 width=860)
+                                  
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_customer_id","c_current_addr_sk","c_salutation","c_first_name","c_last_name","c_preferred_cust_flag","c_birth_day","c_birth_month","c_birth_year","c_birth_country","c_login","c_email_address","c_last_review_date"]
+                        <-Map 5 [SIMPLE_EDGE]
+                          SHUFFLE [RS_56]
                             PartitionCols:_col0
-                            Group By Operator [GBY_24] (rows=22000000 
width=1014)
-                              
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
-                            <-Reducer 9 [SIMPLE_EDGE]
-                              SHUFFLE [RS_23]
-                                PartitionCols:_col0, _col1
-                                Group By Operator [GBY_22] (rows=44000000 
width=1014)
-                                  
Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col1, _col7
-                                  Select Operator [SEL_21] (rows=44000000 
width=1014)
-                                    Output:["_col1","_col7","_col3"]
-                                    Merge Join Operator [MERGEJOIN_157] 
(rows=44000000 width=1014)
-                                      
Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col1","_col3","_col7"]
-                                    <-Map 12 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_19]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_14] 
(rows=40000000 width=1014)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_145] 
(rows=40000000 width=1014)
-                                            predicate:ca_address_sk is not null
-                                            TableScan [TS_12] (rows=40000000 
width=1014)
-                                              
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
-                                    <-Reducer 8 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_18]
-                                        PartitionCols:_col2
-                                        Merge Join Operator [MERGEJOIN_156] 
(rows=15838314 width=92)
-                                          
Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3"]
-                                        <-Map 11 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_16]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_11] 
(rows=36524 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_144] 
(rows=36524 width=1119)
-                                                predicate:((d_year = 2002) and 
d_date_sk is not null)
-                                                TableScan [TS_9] (rows=73049 
width=1119)
-                                                  
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                        <-Map 7 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_15]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_8] 
(rows=14398467 width=92)
-                                              
Output:["_col0","_col1","_col2","_col3"]
-                                              Filter Operator [FIL_143] 
(rows=14398467 width=92)
-                                                predicate:(wr_returned_date_sk 
is not null and wr_returning_addr_sk is not null and wr_returning_customer_sk 
is not null)
-                                                TableScan [TS_6] 
(rows=14398467 width=92)
-                                                  
default@web_returns,web_returns,Tbl:COMPLETE,Col:NONE,Output:["wr_returned_date_sk","wr_returning_customer_sk","wr_returning_addr_sk","wr_return_amt"]
-                        <-Reducer 2 [SIMPLE_EDGE]
-                          SHUFFLE [RS_90]
-                            PartitionCols:_col0
-                            Merge Join Operator [MERGEJOIN_155] (rows=88000001 
width=860)
-                              
Conds:RS_87._col2=RS_88._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
-                            <-Map 1 [SIMPLE_EDGE]
-                              SHUFFLE [RS_87]
-                                PartitionCols:_col2
-                                Select Operator [SEL_2] (rows=80000000 
width=860)
-                                  
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
-                                  Filter Operator [FIL_141] (rows=80000000 
width=860)
-                                    predicate:(c_customer_sk is not null and 
c_current_addr_sk is not null)
-                                    TableScan [TS_0] (rows=80000000 width=860)
-                                      
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_customer_id","c_current_addr_sk","c_salutation","c_first_name","c_last_name","c_preferred_cust_flag","c_birth_day","c_birth_month","c_birth_year","c_birth_country","c_login","c_email_address","c_last_review_date"]
-                            <-Map 6 [SIMPLE_EDGE]
-                              SHUFFLE [RS_88]
-                                PartitionCols:_col0
-                                Select Operator [SEL_5] (rows=20000000 
width=1014)
-                                  Output:["_col0"]
-                                  Filter Operator [FIL_142] (rows=20000000 
width=1014)
-                                    predicate:((ca_state = 'IL') and 
ca_address_sk is not null)
-                                    TableScan [TS_3] (rows=40000000 width=1014)
-                                      
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
+                            Select Operator [SEL_5] (rows=20000000 width=1014)
+                              Output:["_col0"]
+                              Filter Operator [FIL_92] (rows=20000000 
width=1014)
+                                predicate:((ca_state = 'IL') and ca_address_sk 
is not null)
+                                TableScan [TS_3] (rows=40000000 width=1014)
+                                  
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state"]
 

Reply via email to