http://git-wip-us.apache.org/repos/asf/hive/blob/ff30a1eb/ql/src/test/results/clientpositive/perf/query50.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query50.q.out 
b/ql/src/test/results/clientpositive/perf/query50.q.out
index 68d6611..d815b02 100644
--- a/ql/src/test/results/clientpositive/perf/query50.q.out
+++ b/ql/src/test/results/clientpositive/perf/query50.q.out
@@ -132,21 +132,21 @@ Stage-0
       File Output Operator [FS_36]
         Limit [LIM_35] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_34] (rows=421657640 width=88)
+          Select Operator [SEL_34] (rows=383325119 width=88)
             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
           <-Reducer 6 [SIMPLE_EDGE]
             SHUFFLE [RS_33]
-              Group By Operator [GBY_31] (rows=421657640 width=88)
+              Group By Operator [GBY_31] (rows=383325119 width=88)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6, KEY._col7, 
KEY._col8, KEY._col9
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_30]
                   PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9
-                  Group By Operator [GBY_29] (rows=843315281 width=88)
+                  Group By Operator [GBY_29] (rows=766650239 width=88)
                     
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)"],keys:_col0,
 _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9
-                    Select Operator [SEL_27] (rows=843315281 width=88)
+                    Select Operator [SEL_27] (rows=766650239 width=88)
                       
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
-                      Merge Join Operator [MERGEJOIN_59] (rows=843315281 
width=88)
-                        
Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col0","_col5","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23"]
+                      Merge Join Operator [MERGEJOIN_59] (rows=766650239 
width=88)
+                        
Conds:RS_24._col10=RS_25._col0(Inner),Output:["_col0","_col7","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23"]
                       <-Map 11 [SIMPLE_EDGE]
                         SHUFFLE [RS_25]
                           PartitionCols:_col0
@@ -158,9 +158,9 @@ Stage-0
                                 
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_name","s_company_id","s_street_number","s_street_name","s_street_type","s_suite_number","s_city","s_county","s_state","s_zip"]
                       <-Reducer 4 [SIMPLE_EDGE]
                         SHUFFLE [RS_24]
-                          PartitionCols:_col3
-                          Merge Join Operator [MERGEJOIN_58] (rows=766650239 
width=88)
-                            
Conds:RS_21._col0=RS_22._col0(Inner),Output:["_col0","_col3","_col5"]
+                          PartitionCols:_col10
+                          Merge Join Operator [MERGEJOIN_58] (rows=696954748 
width=88)
+                            
Conds:RS_21._col7=RS_22._col0(Inner),Output:["_col0","_col7","_col10"]
                           <-Map 10 [SIMPLE_EDGE]
                             SHUFFLE [RS_22]
                               PartitionCols:_col0
@@ -172,39 +172,39 @@ Stage-0
                                     
default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk"]
                           <-Reducer 3 [SIMPLE_EDGE]
                             SHUFFLE [RS_21]
-                              PartitionCols:_col0
-                              Merge Join Operator [MERGEJOIN_57] 
(rows=696954748 width=88)
-                                
Conds:RS_18._col5=RS_19._col0(Inner),Output:["_col0","_col3","_col5"]
+                              PartitionCols:_col7
+                              Merge Join Operator [MERGEJOIN_57] 
(rows=633595212 width=88)
+                                Conds:RS_18._col1, _col2, _col3=RS_19._col1, 
_col2, _col4(Inner),Output:["_col0","_col7","_col10"]
                               <-Map 9 [SIMPLE_EDGE]
                                 SHUFFLE [RS_19]
-                                  PartitionCols:_col0
-                                  Select Operator [SEL_8] (rows=18262 
width=1119)
-                                    Output:["_col0"]
-                                    Filter Operator [FIL_53] (rows=18262 
width=1119)
-                                      predicate:((d_year = 2000) and (d_moy = 
9) and d_date_sk is not null)
-                                      TableScan [TS_6] (rows=73049 width=1119)
-                                        
default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                  PartitionCols:_col1, _col2, _col4
+                                  Select Operator [SEL_8] (rows=575995635 
width=88)
+                                    
Output:["_col0","_col1","_col2","_col3","_col4"]
+                                    Filter Operator [FIL_53] (rows=575995635 
width=88)
+                                      predicate:(ss_ticket_number is not null 
and ss_item_sk is not null and ss_customer_sk is not null and ss_store_sk is 
not null and ss_sold_date_sk is not null)
+                                      TableScan [TS_6] (rows=575995635 
width=88)
+                                        
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number"]
                               <-Reducer 2 [SIMPLE_EDGE]
                                 SHUFFLE [RS_18]
-                                  PartitionCols:_col5
-                                  Merge Join Operator [MERGEJOIN_56] 
(rows=633595212 width=88)
-                                    Conds:RS_15._col1, _col2, 
_col4=RS_16._col1, _col2, _col3(Inner),Output:["_col0","_col3","_col5"]
+                                  PartitionCols:_col1, _col2, _col3
+                                  Merge Join Operator [MERGEJOIN_56] 
(rows=63350266 width=77)
+                                    
Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col0","_col1","_col2","_col3"]
                                   <-Map 1 [SIMPLE_EDGE]
                                     SHUFFLE [RS_15]
-                                      PartitionCols:_col1, _col2, _col4
-                                      Select Operator [SEL_2] (rows=575995635 
width=88)
-                                        
Output:["_col0","_col1","_col2","_col3","_col4"]
-                                        Filter Operator [FIL_51] 
(rows=575995635 width=88)
-                                          predicate:(ss_ticket_number is not 
null and ss_item_sk is not null and ss_customer_sk is not null and ss_store_sk 
is not null and ss_sold_date_sk is not null)
-                                          TableScan [TS_0] (rows=575995635 
width=88)
-                                            
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number"]
-                                  <-Map 8 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_16]
-                                      PartitionCols:_col1, _col2, _col3
-                                      Select Operator [SEL_5] (rows=57591150 
width=77)
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_2] (rows=57591150 
width=77)
                                         
Output:["_col0","_col1","_col2","_col3"]
-                                        Filter Operator [FIL_52] 
(rows=57591150 width=77)
+                                        Filter Operator [FIL_51] 
(rows=57591150 width=77)
                                           predicate:(sr_ticket_number is not 
null and sr_item_sk is not null and sr_customer_sk is not null and 
sr_returned_date_sk is not null)
-                                          TableScan [TS_3] (rows=57591150 
width=77)
+                                          TableScan [TS_0] (rows=57591150 
width=77)
                                             
default@store_returns,store_returns,Tbl:COMPLETE,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number"]
+                                  <-Map 8 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_16]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_5] (rows=18262 
width=1119)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_52] (rows=18262 
width=1119)
+                                          predicate:((d_year = 2000) and 
(d_moy = 9) and d_date_sk is not null)
+                                          TableScan [TS_3] (rows=73049 
width=1119)
+                                            
default@date_dim,d2,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/ff30a1eb/ql/src/test/results/clientpositive/perf/query54.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query54.q.out 
b/ql/src/test/results/clientpositive/perf/query54.q.out
index b9d0b8b..fe0bbf9 100644
--- a/ql/src/test/results/clientpositive/perf/query54.q.out
+++ b/ql/src/test/results/clientpositive/perf/query54.q.out
@@ -1,7 +1,7 @@
-Warning: Shuffle Join MERGEJOIN[191][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Reducer 3' is a cross product
-Warning: Shuffle Join MERGEJOIN[188][tables = [$hdt$_1, $hdt$_2, $hdt$_3, 
$hdt$_0, $hdt$_4]] in Stage 'Reducer 12' is a cross product
-Warning: Shuffle Join MERGEJOIN[190][tables = [$hdt$_1, $hdt$_2, $hdt$_3, 
$hdt$_0, $hdt$_4, $hdt$_5, $hdt$_6]] in Stage 'Reducer 14' is a cross product
-Warning: Shuffle Join MERGEJOIN[192][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in 
Stage 'Reducer 4' is a cross product
+Warning: Shuffle Join MERGEJOIN[183][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Reducer 3' is a cross product
+Warning: Shuffle Join MERGEJOIN[184][tables = [$hdt$_0, $hdt$_1, $hdt$_2, 
$hdt$_3]] in Stage 'Reducer 12' is a cross product
+Warning: Shuffle Join MERGEJOIN[185][tables = [$hdt$_0, $hdt$_1, $hdt$_2, 
$hdt$_3, $hdt$_4]] in Stage 'Reducer 13' is a cross product
+Warning: Shuffle Join MERGEJOIN[186][tables = [$hdt$_1, $hdt$_2, $hdt$_0]] in 
Stage 'Reducer 4' is a cross product
 PREHOOK: query: explain
 with my_customers as (
  select distinct c_customer_sk
@@ -115,24 +115,24 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 21 <- Union 22 (CONTAINS)
-Map 27 <- Union 22 (CONTAINS)
+Map 23 <- Union 24 (CONTAINS)
+Map 29 <- Union 24 (CONTAINS)
 Reducer 10 <- Map 1 (SIMPLE_EDGE)
 Reducer 11 <- Reducer 10 (CUSTOM_SIMPLE_EDGE)
-Reducer 12 <- Reducer 11 (CUSTOM_SIMPLE_EDGE), Reducer 19 (CUSTOM_SIMPLE_EDGE)
-Reducer 13 <- Map 32 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 14 <- Reducer 13 (CUSTOM_SIMPLE_EDGE), Reducer 15 (CUSTOM_SIMPLE_EDGE)
-Reducer 15 <- Map 1 (SIMPLE_EDGE)
-Reducer 17 <- Map 16 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE)
-Reducer 18 <- Reducer 17 (SIMPLE_EDGE), Reducer 26 (SIMPLE_EDGE)
-Reducer 19 <- Map 31 (SIMPLE_EDGE), Reducer 18 (SIMPLE_EDGE)
+Reducer 12 <- Reducer 11 (CUSTOM_SIMPLE_EDGE), Reducer 17 (CUSTOM_SIMPLE_EDGE)
+Reducer 13 <- Reducer 12 (CUSTOM_SIMPLE_EDGE), Reducer 14 (CUSTOM_SIMPLE_EDGE)
+Reducer 14 <- Map 1 (SIMPLE_EDGE)
+Reducer 16 <- Map 15 (SIMPLE_EDGE), Map 18 (SIMPLE_EDGE)
+Reducer 17 <- Reducer 16 (SIMPLE_EDGE), Reducer 21 (SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE)
-Reducer 23 <- Map 28 (SIMPLE_EDGE), Union 22 (SIMPLE_EDGE)
-Reducer 24 <- Map 29 (SIMPLE_EDGE), Reducer 23 (SIMPLE_EDGE)
-Reducer 25 <- Map 30 (SIMPLE_EDGE), Reducer 24 (SIMPLE_EDGE)
-Reducer 26 <- Reducer 25 (SIMPLE_EDGE)
+Reducer 20 <- Map 19 (SIMPLE_EDGE), Map 22 (SIMPLE_EDGE)
+Reducer 21 <- Reducer 20 (SIMPLE_EDGE), Reducer 28 (SIMPLE_EDGE)
+Reducer 25 <- Map 30 (SIMPLE_EDGE), Union 24 (SIMPLE_EDGE)
+Reducer 26 <- Map 31 (SIMPLE_EDGE), Reducer 25 (SIMPLE_EDGE)
+Reducer 27 <- Map 32 (SIMPLE_EDGE), Reducer 26 (SIMPLE_EDGE)
+Reducer 28 <- Reducer 27 (SIMPLE_EDGE)
 Reducer 3 <- Reducer 2 (CUSTOM_SIMPLE_EDGE), Reducer 9 (CUSTOM_SIMPLE_EDGE)
-Reducer 4 <- Reducer 14 (CUSTOM_SIMPLE_EDGE), Reducer 3 (CUSTOM_SIMPLE_EDGE)
+Reducer 4 <- Reducer 13 (CUSTOM_SIMPLE_EDGE), Reducer 3 (CUSTOM_SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
@@ -144,217 +144,217 @@ Stage-0
     limit:100
     Stage-1
       Reducer 7
-      File Output Operator [FS_129]
-        Limit [LIM_128] (rows=100 width=158)
+      File Output Operator [FS_130]
+        Limit [LIM_129] (rows=100 width=158)
           Number of rows:100
-          Select Operator [SEL_127] (rows=1614130953450400 width=158)
+          Select Operator [SEL_128] (rows=1614130953450400 width=158)
             Output:["_col0","_col1","_col2"]
           <-Reducer 6 [SIMPLE_EDGE]
-            SHUFFLE [RS_126]
-              Select Operator [SEL_125] (rows=1614130953450400 width=158)
+            SHUFFLE [RS_127]
+              Select Operator [SEL_126] (rows=1614130953450400 width=158)
                 Output:["_col0","_col1","_col2"]
-                Group By Operator [GBY_124] (rows=1614130953450400 width=158)
+                Group By Operator [GBY_125] (rows=1614130953450400 width=158)
                   
Output:["_col0","_col1"],aggregations:["count(VALUE._col0)"],keys:KEY._col0
                 <-Reducer 5 [SIMPLE_EDGE]
-                  SHUFFLE [RS_123]
+                  SHUFFLE [RS_124]
                     PartitionCols:_col0
-                    Group By Operator [GBY_122] (rows=3228261906900801 
width=158)
+                    Group By Operator [GBY_123] (rows=3228261906900801 
width=158)
                       
Output:["_col0","_col1"],aggregations:["count()"],keys:_col0
-                      Select Operator [SEL_120] (rows=3228261906900801 
width=158)
+                      Select Operator [SEL_121] (rows=3228261906900801 
width=158)
                         Output:["_col0"]
-                        Group By Operator [GBY_119] (rows=3228261906900801 
width=158)
+                        Group By Operator [GBY_120] (rows=3228261906900801 
width=158)
                           
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                         <-Reducer 4 [SIMPLE_EDGE]
-                          SHUFFLE [RS_118]
+                          SHUFFLE [RS_119]
                             PartitionCols:_col0
-                            Group By Operator [GBY_117] (rows=6456523813801603 
width=158)
+                            Group By Operator [GBY_118] (rows=6456523813801603 
width=158)
                               
Output:["_col0","_col1"],aggregations:["sum(_col4)"],keys:_col0
-                              Select Operator [SEL_116] (rows=6456523813801603 
width=158)
+                              Select Operator [SEL_117] (rows=6456523813801603 
width=158)
                                 Output:["_col0","_col4"]
-                                Filter Operator [FIL_115] 
(rows=6456523813801603 width=158)
+                                Filter Operator [FIL_116] 
(rows=6456523813801603 width=158)
                                   predicate:_col11 BETWEEN _col13 AND _col15
-                                  Select Operator [SEL_114] 
(rows=58108714324214428 width=158)
+                                  Select Operator [SEL_115] 
(rows=58108714324214428 width=158)
                                     
Output:["_col0","_col4","_col11","_col13","_col15"]
-                                    Merge Join Operator [MERGEJOIN_192] 
(rows=58108714324214428 width=158)
+                                    Merge Join Operator [MERGEJOIN_186] 
(rows=58108714324214428 width=158)
                                       
Conds:(Inner),Output:["_col0","_col2","_col6","_col13","_col15"]
-                                    <-Reducer 14 [CUSTOM_SIMPLE_EDGE]
-                                      PARTITION_ONLY_SHUFFLE [RS_112]
-                                        Select Operator [SEL_107] 
(rows=6363893803988 width=1217)
+                                    <-Reducer 13 [CUSTOM_SIMPLE_EDGE]
+                                      PARTITION_ONLY_SHUFFLE [RS_113]
+                                        Select Operator [SEL_108] 
(rows=6363893803988 width=1217)
                                           
Output:["_col0","_col4","_col11","_col13"]
-                                          Merge Join Operator [MERGEJOIN_190] 
(rows=6363893803988 width=1217)
-                                            Conds:(Left 
Outer),Output:["_col5","_col9","_col12","_col13"]
-                                          <-Reducer 13 [CUSTOM_SIMPLE_EDGE]
-                                            PARTITION_ONLY_SHUFFLE [RS_104]
-                                              Merge Join Operator 
[MERGEJOIN_189] (rows=696954748 width=97)
-                                                
Conds:RS_101._col7=RS_102._col0(Inner),Output:["_col5","_col9","_col12"]
-                                              <-Map 32 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_102]
-                                                  PartitionCols:_col0
-                                                  Select Operator [SEL_80] 
(rows=73049 width=1119)
-                                                    Output:["_col0","_col1"]
-                                                    Filter Operator [FIL_180] 
(rows=73049 width=1119)
-                                                      predicate:d_date_sk is 
not null
-                                                      TableScan [TS_78] 
(rows=73049 width=1119)
-                                                        
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]
-                                              <-Reducer 12 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_101]
-                                                  PartitionCols:_col7
-                                                  Merge Join Operator 
[MERGEJOIN_188] (rows=633595212 width=97)
-                                                    
Conds:(Inner),Output:["_col5","_col7","_col9"]
-                                                  <-Reducer 11 
[CUSTOM_SIMPLE_EDGE]
-                                                    PARTITION_ONLY_SHUFFLE 
[RS_99]
-                                                      Select Operator [SEL_77] 
(rows=1 width=8)
-                                                        Filter Operator 
[FIL_76] (rows=1 width=8)
-                                                          
predicate:(sq_count_check(_col0) <= 1)
-                                                          Group By Operator 
[GBY_74] (rows=1 width=8)
-                                                            
Output:["_col0"],aggregations:["count(VALUE._col0)"]
-                                                          <-Reducer 10 
[CUSTOM_SIMPLE_EDGE]
-                                                            
PARTITION_ONLY_SHUFFLE [RS_73]
-                                                              Group By 
Operator [GBY_72] (rows=1 width=8)
-                                                                
Output:["_col0"],aggregations:["count()"]
-                                                                Select 
Operator [SEL_70] (rows=9131 width=1119)
-                                                                  Group By 
Operator [GBY_69] (rows=9131 width=1119)
-                                                                    
Output:["_col0"],keys:KEY._col0
-                                                                  <-Map 1 
[SIMPLE_EDGE]
-                                                                    SHUFFLE 
[RS_68]
-                                                                      
PartitionCols:_col0
-                                                                      Group By 
Operator [GBY_67] (rows=18262 width=1119)
-                                                                        
Output:["_col0"],keys:_col0
-                                                                        Select 
Operator [SEL_65] (rows=18262 width=1119)
-                                                                          
Output:["_col0"]
-                                                                          
Filter Operator [FIL_169] (rows=18262 width=1119)
-                                                                            
predicate:((d_year = 1999) and (d_moy = 3))
-                                                                            
TableScan [TS_0] (rows=73049 width=1119)
-                                                                              
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_month_seq","d_year","d_moy"]
-                                                  <-Reducer 19 
[CUSTOM_SIMPLE_EDGE]
-                                                    PARTITION_ONLY_SHUFFLE 
[RS_98]
-                                                      Merge Join Operator 
[MERGEJOIN_187] (rows=633595212 width=88)
-                                                        
Conds:RS_95._col5=RS_96._col1(Inner),Output:["_col5","_col7","_col9"]
-                                                      <-Map 31 [SIMPLE_EDGE]
+                                          Merge Join Operator [MERGEJOIN_185] 
(rows=6363893803988 width=1217)
+                                            Conds:(Left 
Outer),Output:["_col2","_col4","_col10","_col13"]
+                                          <-Reducer 12 [CUSTOM_SIMPLE_EDGE]
+                                            PARTITION_ONLY_SHUFFLE [RS_105]
+                                              Merge Join Operator 
[MERGEJOIN_184] (rows=696954748 width=97)
+                                                
Conds:(Inner),Output:["_col2","_col4","_col10"]
+                                              <-Reducer 11 [CUSTOM_SIMPLE_EDGE]
+                                                PARTITION_ONLY_SHUFFLE [RS_103]
+                                                  Select Operator [SEL_87] 
(rows=1 width=8)
+                                                    Filter Operator [FIL_86] 
(rows=1 width=8)
+                                                      
predicate:(sq_count_check(_col0) <= 1)
+                                                      Group By Operator 
[GBY_84] (rows=1 width=8)
+                                                        
Output:["_col0"],aggregations:["count(VALUE._col0)"]
+                                                      <-Reducer 10 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_83]
+                                                          Group By Operator 
[GBY_82] (rows=1 width=8)
+                                                            
Output:["_col0"],aggregations:["count()"]
+                                                            Select Operator 
[SEL_80] (rows=9131 width=1119)
+                                                              Group By 
Operator [GBY_79] (rows=9131 width=1119)
+                                                                
Output:["_col0"],keys:KEY._col0
+                                                              <-Map 1 
[SIMPLE_EDGE]
+                                                                SHUFFLE [RS_78]
+                                                                  
PartitionCols:_col0
+                                                                  Group By 
Operator [GBY_77] (rows=18262 width=1119)
+                                                                    
Output:["_col0"],keys:_col0
+                                                                    Select 
Operator [SEL_75] (rows=18262 width=1119)
+                                                                      
Output:["_col0"]
+                                                                      Filter 
Operator [FIL_163] (rows=18262 width=1119)
+                                                                        
predicate:((d_year = 1999) and (d_moy = 3))
+                                                                        
TableScan [TS_0] (rows=73049 width=1119)
+                                                                          
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_month_seq","d_year","d_moy"]
+                                              <-Reducer 17 [CUSTOM_SIMPLE_EDGE]
+                                                PARTITION_ONLY_SHUFFLE [RS_102]
+                                                  Merge Join Operator 
[MERGEJOIN_182] (rows=696954748 width=88)
+                                                    
Conds:RS_99._col1=RS_100._col5(Inner),Output:["_col2","_col4","_col10"]
+                                                  <-Reducer 16 [SIMPLE_EDGE]
+                                                    SHUFFLE [RS_99]
+                                                      PartitionCols:_col1
+                                                      Merge Join Operator 
[MERGEJOIN_176] (rows=633595212 width=88)
+                                                        
Conds:RS_96._col0=RS_97._col0(Inner),Output:["_col1","_col2","_col4"]
+                                                      <-Map 15 [SIMPLE_EDGE]
                                                         SHUFFLE [RS_96]
-                                                          PartitionCols:_col1
-                                                          Select Operator 
[SEL_62] (rows=575995635 width=88)
+                                                          PartitionCols:_col0
+                                                          Select Operator 
[SEL_25] (rows=575995635 width=88)
                                                             
Output:["_col0","_col1","_col2"]
-                                                            Filter Operator 
[FIL_178] (rows=575995635 width=88)
+                                                            Filter Operator 
[FIL_165] (rows=575995635 width=88)
                                                               
predicate:(ss_customer_sk is not null and ss_sold_date_sk is not null)
-                                                              TableScan 
[TS_60] (rows=575995635 width=88)
+                                                              TableScan 
[TS_23] (rows=575995635 width=88)
                                                                 
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_ext_sales_price"]
-                                                      <-Reducer 18 
[SIMPLE_EDGE]
-                                                        SHUFFLE [RS_95]
-                                                          PartitionCols:_col5
-                                                          Merge Join Operator 
[MERGEJOIN_186] (rows=316240138 width=135)
-                                                            
Conds:RS_92._col0=RS_93._col1(Inner),Output:["_col5"]
-                                                          <-Reducer 17 
[SIMPLE_EDGE]
-                                                            SHUFFLE [RS_92]
-                                                              
PartitionCols:_col0
-                                                              Merge Join 
Operator [MERGEJOIN_182] (rows=44000000 width=1014)
-                                                                
Conds:RS_89._col1, _col2=RS_90._col0, _col1(Inner),Output:["_col0"]
-                                                              <-Map 16 
[SIMPLE_EDGE]
-                                                                SHUFFLE [RS_89]
-                                                                  
PartitionCols:_col1, _col2
-                                                                  Select 
Operator [SEL_25] (rows=40000000 width=1014)
-                                                                    
Output:["_col0","_col1","_col2"]
-                                                                    Filter 
Operator [FIL_171] (rows=40000000 width=1014)
-                                                                      
predicate:(ca_address_sk is not null and ca_county is not null and ca_state is 
not null)
-                                                                      
TableScan [TS_23] (rows=40000000 width=1014)
-                                                                        
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_county","ca_state"]
-                                                              <-Map 20 
[SIMPLE_EDGE]
-                                                                SHUFFLE [RS_90]
-                                                                  
PartitionCols:_col0, _col1
-                                                                  Select 
Operator [SEL_28] (rows=1704 width=1910)
-                                                                    
Output:["_col0","_col1"]
-                                                                    Filter 
Operator [FIL_172] (rows=1704 width=1910)
-                                                                      
predicate:(s_county is not null and s_state is not null)
-                                                                      
TableScan [TS_26] (rows=1704 width=1910)
-                                                                        
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_county","s_state"]
-                                                          <-Reducer 26 
[SIMPLE_EDGE]
-                                                            SHUFFLE [RS_93]
-                                                              
PartitionCols:_col1
-                                                              Select Operator 
[SEL_59] (rows=287491029 width=135)
+                                                      <-Map 18 [SIMPLE_EDGE]
+                                                        SHUFFLE [RS_97]
+                                                          PartitionCols:_col0
+                                                          Select Operator 
[SEL_28] (rows=73049 width=1119)
+                                                            
Output:["_col0","_col1"]
+                                                            Filter Operator 
[FIL_166] (rows=73049 width=1119)
+                                                              
predicate:d_date_sk is not null
+                                                              TableScan 
[TS_26] (rows=73049 width=1119)
+                                                                
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]
+                                                  <-Reducer 21 [SIMPLE_EDGE]
+                                                    SHUFFLE [RS_100]
+                                                      PartitionCols:_col5
+                                                      Merge Join Operator 
[MERGEJOIN_181] (rows=316240138 width=135)
+                                                        
Conds:RS_69._col0=RS_70._col1(Inner),Output:["_col5"]
+                                                      <-Reducer 20 
[SIMPLE_EDGE]
+                                                        SHUFFLE [RS_69]
+                                                          PartitionCols:_col0
+                                                          Merge Join Operator 
[MERGEJOIN_177] (rows=44000000 width=1014)
+                                                            Conds:RS_66._col1, 
_col2=RS_67._col0, _col1(Inner),Output:["_col0"]
+                                                          <-Map 19 
[SIMPLE_EDGE]
+                                                            SHUFFLE [RS_66]
+                                                              
PartitionCols:_col1, _col2
+                                                              Select Operator 
[SEL_31] (rows=40000000 width=1014)
+                                                                
Output:["_col0","_col1","_col2"]
+                                                                Filter 
Operator [FIL_167] (rows=40000000 width=1014)
+                                                                  
predicate:(ca_address_sk is not null and ca_county is not null and ca_state is 
not null)
+                                                                  TableScan 
[TS_29] (rows=40000000 width=1014)
+                                                                    
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_county","ca_state"]
+                                                          <-Map 22 
[SIMPLE_EDGE]
+                                                            SHUFFLE [RS_67]
+                                                              
PartitionCols:_col0, _col1
+                                                              Select Operator 
[SEL_34] (rows=1704 width=1910)
                                                                 
Output:["_col0","_col1"]
-                                                                Group By 
Operator [GBY_58] (rows=287491029 width=135)
-                                                                  
Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
-                                                                <-Reducer 25 
[SIMPLE_EDGE]
-                                                                  SHUFFLE 
[RS_57]
-                                                                    
PartitionCols:_col0, _col1
-                                                                    Group By 
Operator [GBY_56] (rows=574982058 width=135)
-                                                                      
Output:["_col0","_col1"],keys:_col10, _col9
-                                                                      Merge 
Join Operator [MERGEJOIN_185] (rows=574982058 width=135)
-                                                                        
Conds:RS_52._col1=RS_53._col0(Inner),Output:["_col9","_col10"]
-                                                                      <-Map 30 
[SIMPLE_EDGE]
-                                                                        
SHUFFLE [RS_53]
+                                                                Filter 
Operator [FIL_168] (rows=1704 width=1910)
+                                                                  
predicate:(s_county is not null and s_state is not null)
+                                                                  TableScan 
[TS_32] (rows=1704 width=1910)
+                                                                    
default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_county","s_state"]
+                                                      <-Reducer 28 
[SIMPLE_EDGE]
+                                                        SHUFFLE [RS_70]
+                                                          PartitionCols:_col1
+                                                          Select Operator 
[SEL_65] (rows=287491029 width=135)
+                                                            
Output:["_col0","_col1"]
+                                                            Group By Operator 
[GBY_64] (rows=287491029 width=135)
+                                                              
Output:["_col0","_col1"],keys:KEY._col0, KEY._col1
+                                                            <-Reducer 27 
[SIMPLE_EDGE]
+                                                              SHUFFLE [RS_63]
+                                                                
PartitionCols:_col0, _col1
+                                                                Group By 
Operator [GBY_62] (rows=574982058 width=135)
+                                                                  
Output:["_col0","_col1"],keys:_col10, _col9
+                                                                  Merge Join 
Operator [MERGEJOIN_180] (rows=574982058 width=135)
+                                                                    
Conds:RS_58._col1=RS_59._col0(Inner),Output:["_col9","_col10"]
+                                                                  <-Map 32 
[SIMPLE_EDGE]
+                                                                    SHUFFLE 
[RS_59]
+                                                                      
PartitionCols:_col0
+                                                                      Select 
Operator [SEL_51] (rows=80000000 width=860)
+                                                                        
Output:["_col0","_col1"]
+                                                                        Filter 
Operator [FIL_173] (rows=80000000 width=860)
+                                                                          
predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
+                                                                          
TableScan [TS_49] (rows=80000000 width=860)
+                                                                            
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                                                                  <-Reducer 26 
[SIMPLE_EDGE]
+                                                                    SHUFFLE 
[RS_58]
+                                                                      
PartitionCols:_col1
+                                                                      Merge 
Join Operator [MERGEJOIN_179] (rows=522710951 width=135)
+                                                                        
Conds:RS_55._col2=RS_56._col0(Inner),Output:["_col1"]
+                                                                      <-Map 31 
[SIMPLE_EDGE]
+                                                                        
SHUFFLE [RS_56]
                                                                           
PartitionCols:_col0
-                                                                          
Select Operator [SEL_45] (rows=80000000 width=860)
-                                                                            
Output:["_col0","_col1"]
-                                                                            
Filter Operator [FIL_177] (rows=80000000 width=860)
-                                                                              
predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
-                                                                              
TableScan [TS_43] (rows=80000000 width=860)
-                                                                               
 
default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
-                                                                      
<-Reducer 24 [SIMPLE_EDGE]
-                                                                        
SHUFFLE [RS_52]
-                                                                          
PartitionCols:_col1
-                                                                          
Merge Join Operator [MERGEJOIN_184] (rows=522710951 width=135)
-                                                                            
Conds:RS_49._col2=RS_50._col0(Inner),Output:["_col1"]
-                                                                          
<-Map 29 [SIMPLE_EDGE]
-                                                                            
SHUFFLE [RS_50]
+                                                                          
Select Operator [SEL_48] (rows=115500 width=1436)
+                                                                            
Output:["_col0"]
+                                                                            
Filter Operator [FIL_172] (rows=115500 width=1436)
+                                                                              
predicate:((i_category = 'Jewelry') and (i_class = 'consignment') and i_item_sk 
is not null)
+                                                                              
TableScan [TS_46] (rows=462000 width=1436)
+                                                                               
 
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_class","i_category"]
+                                                                      
<-Reducer 25 [SIMPLE_EDGE]
+                                                                        
SHUFFLE [RS_55]
+                                                                          
PartitionCols:_col2
+                                                                          
Merge Join Operator [MERGEJOIN_178] (rows=475191764 width=135)
+                                                                            
Conds:Union 24._col0=RS_53._col0(Inner),Output:["_col1","_col2"]
+                                                                          
<-Map 30 [SIMPLE_EDGE]
+                                                                            
SHUFFLE [RS_53]
                                                                               
PartitionCols:_col0
-                                                                              
Select Operator [SEL_42] (rows=115500 width=1436)
+                                                                              
Select Operator [SEL_45] (rows=18262 width=1119)
                                                                                
 Output:["_col0"]
-                                                                               
 Filter Operator [FIL_176] (rows=115500 width=1436)
-                                                                               
   predicate:((i_category = 'Jewelry') and (i_class = 'consignment') and 
i_item_sk is not null)
-                                                                               
   TableScan [TS_40] (rows=462000 width=1436)
-                                                                               
     
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_class","i_category"]
-                                                                          
<-Reducer 23 [SIMPLE_EDGE]
-                                                                            
SHUFFLE [RS_49]
-                                                                              
PartitionCols:_col2
-                                                                              
Merge Join Operator [MERGEJOIN_183] (rows=475191764 width=135)
-                                                                               
 Conds:Union 22._col0=RS_47._col0(Inner),Output:["_col1","_col2"]
-                                                                              
<-Map 28 [SIMPLE_EDGE]
-                                                                               
 SHUFFLE [RS_47]
-                                                                               
   PartitionCols:_col0
-                                                                               
   Select Operator [SEL_39] (rows=18262 width=1119)
-                                                                               
     Output:["_col0"]
-                                                                               
     Filter Operator [FIL_175] (rows=18262 width=1119)
-                                                                               
       predicate:((d_moy = 3) and (d_year = 1999) and d_date_sk is not null)
-                                                                               
       TableScan [TS_37] (rows=73049 width=1119)
-                                                                               
         
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
-                                                                              
<-Union 22 [SIMPLE_EDGE]
-                                                                               
 <-Map 21 [CONTAINS]
-                                                                               
   Reduce Output Operator [RS_46]
-                                                                               
     PartitionCols:_col0
-                                                                               
     Select Operator [SEL_31] (rows=287989836 width=135)
-                                                                               
       Output:["_col0","_col1","_col2"]
-                                                                               
       Filter Operator [FIL_173] (rows=287989836 width=135)
-                                                                               
         predicate:(cs_item_sk is not null and cs_sold_date_sk is not null and 
cs_bill_customer_sk is not null)
-                                                                               
         TableScan [TS_29] (rows=287989836 width=135)
-                                                                               
           Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk"]
-                                                                               
 <-Map 27 [CONTAINS]
-                                                                               
   Reduce Output Operator [RS_46]
-                                                                               
     PartitionCols:_col0
-                                                                               
     Select Operator [SEL_34] (rows=144002668 width=135)
-                                                                               
       Output:["_col0","_col1","_col2"]
-                                                                               
       Filter Operator [FIL_174] (rows=144002668 width=135)
-                                                                               
         predicate:(ws_item_sk is not null and ws_sold_date_sk is not null and 
ws_bill_customer_sk is not null)
-                                                                               
         TableScan [TS_32] (rows=144002668 width=135)
-                                                                               
           Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk"]
-                                          <-Reducer 15 [CUSTOM_SIMPLE_EDGE]
-                                            PARTITION_ONLY_SHUFFLE [RS_105]
-                                              Group By Operator [GBY_87] 
(rows=9131 width=1119)
+                                                                               
 Filter Operator [FIL_171] (rows=18262 width=1119)
+                                                                               
   predicate:((d_moy = 3) and (d_year = 1999) and d_date_sk is not null)
+                                                                               
   TableScan [TS_43] (rows=73049 width=1119)
+                                                                               
     
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                                                          
<-Union 24 [SIMPLE_EDGE]
+                                                                            
<-Map 23 [CONTAINS]
+                                                                              
Reduce Output Operator [RS_52]
+                                                                               
 PartitionCols:_col0
+                                                                               
 Select Operator [SEL_37] (rows=287989836 width=135)
+                                                                               
   Output:["_col0","_col1","_col2"]
+                                                                               
   Filter Operator [FIL_169] (rows=287989836 width=135)
+                                                                               
     predicate:(cs_item_sk is not null and cs_sold_date_sk is not null and 
cs_bill_customer_sk is not null)
+                                                                               
     TableScan [TS_35] (rows=287989836 width=135)
+                                                                               
       Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk"]
+                                                                            
<-Map 29 [CONTAINS]
+                                                                              
Reduce Output Operator [RS_52]
+                                                                               
 PartitionCols:_col0
+                                                                               
 Select Operator [SEL_40] (rows=144002668 width=135)
+                                                                               
   Output:["_col0","_col1","_col2"]
+                                                                               
   Filter Operator [FIL_170] (rows=144002668 width=135)
+                                                                               
     predicate:(ws_item_sk is not null and ws_sold_date_sk is not null and 
ws_bill_customer_sk is not null)
+                                                                               
     TableScan [TS_38] (rows=144002668 width=135)
+                                                                               
       Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk"]
+                                          <-Reducer 14 [CUSTOM_SIMPLE_EDGE]
+                                            PARTITION_ONLY_SHUFFLE [RS_106]
+                                              Group By Operator [GBY_94] 
(rows=9131 width=1119)
                                                 Output:["_col0"],keys:KEY._col0
                                               <-Map 1 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_86]
+                                                SHUFFLE [RS_93]
                                                   PartitionCols:_col0
-                                                  Group By Operator [GBY_85] 
(rows=18262 width=1119)
+                                                  Group By Operator [GBY_92] 
(rows=18262 width=1119)
                                                     Output:["_col0"],keys:_col0
-                                                    Select Operator [SEL_83] 
(rows=18262 width=1119)
+                                                    Select Operator [SEL_90] 
(rows=18262 width=1119)
                                                       Output:["_col0"]
-                                                       Please refer to the 
previous Filter Operator [FIL_169]
+                                                       Please refer to the 
previous Filter Operator [FIL_163]
                                     <-Reducer 3 [CUSTOM_SIMPLE_EDGE]
-                                      PARTITION_ONLY_SHUFFLE [RS_111]
-                                        Merge Join Operator [MERGEJOIN_191] 
(rows=9131 width=1128)
+                                      PARTITION_ONLY_SHUFFLE [RS_112]
+                                        Merge Join Operator [MERGEJOIN_183] 
(rows=9131 width=1128)
                                           Conds:(Right Outer),Output:["_col0"]
                                         <-Reducer 2 [CUSTOM_SIMPLE_EDGE]
-                                          PARTITION_ONLY_SHUFFLE [RS_108]
+                                          PARTITION_ONLY_SHUFFLE [RS_109]
                                             Group By Operator [GBY_6] 
(rows=9131 width=1119)
                                               Output:["_col0"],keys:KEY._col0
                                             <-Map 1 [SIMPLE_EDGE]
@@ -364,9 +364,9 @@ Stage-0
                                                   Output:["_col0"],keys:_col0
                                                   Select Operator [SEL_2] 
(rows=18262 width=1119)
                                                     Output:["_col0"]
-                                                     Please refer to the 
previous Filter Operator [FIL_169]
+                                                     Please refer to the 
previous Filter Operator [FIL_163]
                                         <-Reducer 9 [CUSTOM_SIMPLE_EDGE]
-                                          PARTITION_ONLY_SHUFFLE [RS_109]
+                                          PARTITION_ONLY_SHUFFLE [RS_110]
                                             Select Operator [SEL_22] (rows=1 
width=8)
                                               Filter Operator [FIL_21] (rows=1 
width=8)
                                                 
predicate:(sq_count_check(_col0) <= 1)

Reply via email to