http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query17.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query17.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query17.q.out
index 4e5c2a9..858fb05 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query17.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query17.q.out
@@ -103,225 +103,229 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Reducer 9 (BROADCAST_EDGE)
-Map 19 <- Reducer 14 (BROADCAST_EDGE), Reducer 16 (BROADCAST_EDGE), Reducer 17 
(BROADCAST_EDGE), Reducer 18 (BROADCAST_EDGE), Reducer 6 (BROADCAST_EDGE), 
Reducer 7 (BROADCAST_EDGE)
-Reducer 10 <- Map 19 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 11 <- Reducer 10 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
-Reducer 12 <- Map 21 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
-Reducer 13 <- Map 22 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 14 <- Map 8 (CUSTOM_SIMPLE_EDGE)
-Reducer 15 <- Map 20 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Map 1 <- Reducer 11 (BROADCAST_EDGE), Reducer 16 (BROADCAST_EDGE), Reducer 17 
(BROADCAST_EDGE)
+Map 19 <- Reducer 14 (BROADCAST_EDGE), Reducer 16 (BROADCAST_EDGE), Reducer 17 
(BROADCAST_EDGE), Reducer 18 (BROADCAST_EDGE), Reducer 8 (BROADCAST_EDGE), 
Reducer 9 (BROADCAST_EDGE)
+Reducer 11 <- Map 10 (CUSTOM_SIMPLE_EDGE)
+Reducer 12 <- Map 10 (SIMPLE_EDGE), Map 19 (SIMPLE_EDGE)
+Reducer 13 <- Reducer 12 (SIMPLE_EDGE), Reducer 15 (SIMPLE_EDGE)
+Reducer 14 <- Map 10 (CUSTOM_SIMPLE_EDGE)
+Reducer 15 <- Map 10 (SIMPLE_EDGE), Map 20 (SIMPLE_EDGE)
 Reducer 16 <- Reducer 15 (CUSTOM_SIMPLE_EDGE)
 Reducer 17 <- Reducer 15 (CUSTOM_SIMPLE_EDGE)
 Reducer 18 <- Reducer 15 (CUSTOM_SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 10 (SIMPLE_EDGE)
 Reducer 3 <- Reducer 13 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
-Reducer 7 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
-Reducer 9 <- Map 8 (CUSTOM_SIMPLE_EDGE)
+Reducer 4 <- Map 21 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 22 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+Reducer 8 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
+Reducer 9 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 5 vectorized
-      File Output Operator [FS_252]
-        Limit [LIM_251] (rows=100 width=466)
+      Reducer 7 vectorized
+      File Output Operator [FS_260]
+        Limit [LIM_259] (rows=100 width=466)
           Number of rows:100
-          Select Operator [SEL_250] (rows=8581091679 width=466)
+          Select Operator [SEL_258] (rows=8581091679 width=466)
             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
-          <-Reducer 4 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_249]
-              Select Operator [SEL_248] (rows=8581091679 width=466)
+          <-Reducer 6 [SIMPLE_EDGE] vectorized
+            SHUFFLE [RS_257]
+              Select Operator [SEL_256] (rows=8581091679 width=466)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13"]
-                Group By Operator [GBY_247] (rows=8581091679 width=466)
+                Group By Operator [GBY_255] (rows=8581091679 width=466)
                   
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["count(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","count(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","count(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)"],keys:KEY._col0,
 KEY._col1, KEY._col2
-                <-Reducer 3 [SIMPLE_EDGE]
+                <-Reducer 5 [SIMPLE_EDGE]
                   SHUFFLE [RS_48]
                     PartitionCols:_col0, _col1, _col2
                     Group By Operator [GBY_47] (rows=8581091679 width=466)
                       
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"],aggregations:["count(_col3)","sum(_col3)","sum(_col7)","sum(_col6)","count(_col4)","sum(_col4)","sum(_col9)","sum(_col8)","count(_col5)","sum(_col5)","sum(_col11)","sum(_col10)"],keys:_col0,
 _col1, _col2
-                      Top N Key Operator [TNK_92] (rows=8581091679 width=381)
+                      Top N Key Operator [TNK_94] (rows=8581091679 width=381)
                         keys:_col0, _col1, _col2,sort order:+++,top n:100
                         Select Operator [SEL_45] (rows=8581091679 width=381)
                           
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                          Merge Join Operator [MERGEJOIN_204] (rows=8581091679 
width=381)
-                            Conds:RS_42._col2, _col1=RS_43._col11, 
_col12(Inner),Output:["_col3","_col6","_col7","_col13","_col19","_col22"]
-                          <-Reducer 2 [SIMPLE_EDGE]
-                            PARTITION_ONLY_SHUFFLE [RS_42]
-                              PartitionCols:_col2, _col1
-                              Merge Join Operator [MERGEJOIN_198] 
(rows=47131396 width=11)
-                                
Conds:RS_224._col0=RS_211._col0(Inner),Output:["_col1","_col2","_col3"]
-                              <-Map 8 [SIMPLE_EDGE] vectorized
-                                PARTITION_ONLY_SHUFFLE [RS_211]
+                          Merge Join Operator [MERGEJOIN_210] (rows=8581091679 
width=381)
+                            
Conds:RS_42._col6=RS_254._col0(Inner),Output:["_col3","_col10","_col16","_col19","_col21","_col22"]
+                          <-Map 22 [SIMPLE_EDGE] vectorized
+                            SHUFFLE [RS_254]
+                              PartitionCols:_col0
+                              Select Operator [SEL_253] (rows=462000 width=288)
+                                Output:["_col0","_col1","_col2"]
+                                TableScan [TS_31] (rows=462000 width=288)
+                                  
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id","i_item_desc"]
+                          <-Reducer 4 [SIMPLE_EDGE]
+                            SHUFFLE [RS_42]
+                              PartitionCols:_col6
+                              Merge Join Operator [MERGEJOIN_209] 
(rows=8581091679 width=101)
+                                
Conds:RS_39._col8=RS_252._col0(Inner),Output:["_col3","_col6","_col10","_col16","_col19"]
+                              <-Map 21 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_252]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_208] (rows=304 width=4)
-                                    Output:["_col0"]
-                                    Filter Operator [FIL_205] (rows=304 
width=94)
-                                      predicate:(d_quarter_name) IN ('2000Q1', 
'2000Q2', '2000Q3')
-                                      TableScan [TS_3] (rows=73049 width=94)
-                                        
default@date_dim,d3,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_quarter_name"]
-                              <-Map 1 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_224]
-                                  PartitionCols:_col0
-                                  Select Operator [SEL_223] (rows=285117831 
width=15)
-                                    Output:["_col0","_col1","_col2","_col3"]
-                                    Filter Operator [FIL_222] (rows=285117831 
width=15)
-                                      predicate:((cs_sold_date_sk BETWEEN 
DynamicValue(RS_40_d3_d_date_sk_min) AND DynamicValue(RS_40_d3_d_date_sk_max) 
and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_40_d3_d_date_sk_bloom_filter))) and cs_bill_customer_sk is not 
null and cs_sold_date_sk is not null)
-                                      TableScan [TS_0] (rows=287989836 
width=15)
-                                        
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_quantity"]
-                                      <-Reducer 9 [BROADCAST_EDGE] vectorized
-                                        BROADCAST [RS_221]
-                                          Group By Operator [GBY_220] (rows=1 
width=12)
-                                            
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                          <-Map 8 [CUSTOM_SIMPLE_EDGE] 
vectorized
-                                            PARTITION_ONLY_SHUFFLE [RS_218]
-                                              Group By Operator [GBY_216] 
(rows=1 width=12)
-                                                
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                Select Operator [SEL_212] 
(rows=304 width=4)
-                                                  Output:["_col0"]
-                                                   Please refer to the 
previous Select Operator [SEL_208]
-                          <-Reducer 13 [SIMPLE_EDGE]
-                            SHUFFLE [RS_43]
-                              PartitionCols:_col11, _col12
-                              Select Operator [SEL_38] (rows=42605597 
width=383)
-                                
Output:["_col1","_col2","_col8","_col11","_col12","_col14","_col17"]
-                                Merge Join Operator [MERGEJOIN_203] 
(rows=42605597 width=383)
-                                  
Conds:RS_35._col1=RS_246._col0(Inner),Output:["_col5","_col8","_col9","_col11","_col14","_col16","_col17"]
-                                <-Map 22 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_246]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_245] (rows=462000 
width=288)
-                                      Output:["_col0","_col1","_col2"]
-                                      TableScan [TS_24] (rows=462000 width=288)
-                                        
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id","i_item_desc"]
-                                <-Reducer 12 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_35]
-                                    PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_202] 
(rows=42605597 width=103)
-                                      
Conds:RS_32._col3=RS_244._col0(Inner),Output:["_col1","_col5","_col8","_col9","_col11","_col14"]
-                                    <-Map 21 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_244]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_243] (rows=1704 
width=90)
-                                          Output:["_col0","_col1"]
-                                          TableScan [TS_22] (rows=1704 
width=90)
-                                            
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_state"]
-                                    <-Reducer 11 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_32]
-                                        PartitionCols:_col3
-                                        Merge Join Operator [MERGEJOIN_201] 
(rows=42605597 width=19)
-                                          Conds:RS_29._col1, _col2, 
_col4=RS_30._col1, _col2, 
_col3(Inner),Output:["_col1","_col3","_col5","_col8","_col9","_col11"]
-                                        <-Reducer 15 [SIMPLE_EDGE]
-                                          PARTITION_ONLY_SHUFFLE [RS_30]
-                                            PartitionCols:_col1, _col2, _col3
-                                            Merge Join Operator 
[MERGEJOIN_200] (rows=8143830 width=14)
-                                              
Conds:RS_229._col0=RS_215._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                            <-Map 8 [SIMPLE_EDGE] vectorized
-                                              PARTITION_ONLY_SHUFFLE [RS_215]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_210] 
(rows=304 width=4)
-                                                  Output:["_col0"]
-                                                  Filter Operator [FIL_207] 
(rows=304 width=94)
-                                                    predicate:(d_quarter_name) 
IN ('2000Q1', '2000Q2', '2000Q3')
-                                                     Please refer to the 
previous TableScan [TS_3]
-                                            <-Map 20 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_229]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_228] 
(rows=53632139 width=19)
-                                                  
Output:["_col0","_col1","_col2","_col3","_col4"]
-                                                  Filter Operator [FIL_227] 
(rows=53632139 width=19)
-                                                    predicate:(sr_customer_sk 
is not null and sr_returned_date_sk is not null)
-                                                    TableScan [TS_12] 
(rows=57591150 width=19)
-                                                      
default@store_returns,store_returns,Tbl:COMPLETE,Col:COMPLETE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_return_quantity"]
-                                        <-Reducer 10 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_29]
-                                            PartitionCols:_col1, _col2, _col4
-                                            Merge Join Operator 
[MERGEJOIN_199] (rows=27749405 width=10)
-                                              
Conds:RS_242._col0=RS_213._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
-                                            <-Map 8 [SIMPLE_EDGE] vectorized
-                                              PARTITION_ONLY_SHUFFLE [RS_213]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_209] 
(rows=101 width=4)
-                                                  Output:["_col0"]
-                                                  Filter Operator [FIL_206] 
(rows=101 width=94)
-                                                    predicate:(d_quarter_name 
= '2000Q1')
-                                                     Please refer to the 
previous TableScan [TS_3]
-                                            <-Map 19 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_242]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_241] 
(rows=501694138 width=23)
-                                                  
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                                  Filter Operator [FIL_240] 
(rows=501694138 width=23)
-                                                    predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_30_store_returns_sr_customer_sk_min) AND 
DynamicValue(RS_30_store_returns_sr_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_30_store_returns_sr_customer_sk_bloom_filter))) and 
(ss_customer_sk BETWEEN 
DynamicValue(RS_42_catalog_sales_cs_bill_customer_sk_min) AND 
DynamicValue(RS_42_catalog_sales_cs_bill_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_42_catalog_sales_cs_bill_customer_sk_bloom_filter))) and 
(ss_item_sk BETWEEN DynamicValue(RS_30_store_returns_sr_item_sk_min) AND 
DynamicValue(RS_30_store_returns_sr_item_sk_max) and 
in_bloom_filter(ss_item_sk, 
DynamicValue(RS_30_store_returns_sr_item_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_42_catalog_sales_cs_item_sk_min) AND 
DynamicValue(RS_42_catalog_sales_cs_item_sk_max) and 
in_bloom_filter(ss_item_sk, 
DynamicValue(RS_42_catalog_sales_cs_item_sk_bloom_filter))) and (ss_sol
 d_date_sk BETWEEN DynamicValue(RS_27_d1_d_date_sk_min) AND 
DynamicValue(RS_27_d1_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_27_d1_d_date_sk_bloom_filter))) and (ss_ticket_number BETWEEN 
DynamicValue(RS_30_store_returns_sr_ticket_number_min) AND 
DynamicValue(RS_30_store_returns_sr_ticket_number_max) and 
in_bloom_filter(ss_ticket_number, 
DynamicValue(RS_30_store_returns_sr_ticket_number_bloom_filter))) and 
ss_customer_sk is not null and ss_sold_date_sk is not null and ss_store_sk is 
not null)
-                                                    TableScan [TS_6] 
(rows=575995635 width=23)
-                                                      
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_quantity"]
-                                                    <-Reducer 14 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_226]
-                                                        Group By Operator 
[GBY_225] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Map 8 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                          
PARTITION_ONLY_SHUFFLE [RS_219]
-                                                            Group By Operator 
[GBY_217] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_214] (rows=101 width=4)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_209]
-                                                    <-Reducer 16 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_231]
-                                                        Group By Operator 
[GBY_230] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
-                                                          
PARTITION_ONLY_SHUFFLE [RS_120]
-                                                            Group By Operator 
[GBY_119] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_118] (rows=8143830 width=8)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_200]
-                                                    <-Reducer 17 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_233]
-                                                        Group By Operator 
[GBY_232] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
-                                                          
PARTITION_ONLY_SHUFFLE [RS_125]
-                                                            Group By Operator 
[GBY_124] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_123] (rows=8143830 width=6)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_200]
-                                                    <-Reducer 18 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_235]
-                                                        Group By Operator 
[GBY_234] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=5304149)"]
-                                                        <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
-                                                          
PARTITION_ONLY_SHUFFLE [RS_130]
-                                                            Group By Operator 
[GBY_129] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=5304149)"]
-                                                              Select Operator 
[SEL_128] (rows=8143830 width=8)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_200]
-                                                    <-Reducer 6 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_237]
-                                                        Group By Operator 
[GBY_236] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
-                                                          
PARTITION_ONLY_SHUFFLE [RS_145]
-                                                            Group By Operator 
[GBY_144] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_143] (rows=47131396 width=8)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_198]
-                                                    <-Reducer 7 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_239]
-                                                        Group By Operator 
[GBY_238] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
-                                                          
PARTITION_ONLY_SHUFFLE [RS_150]
-                                                            Group By Operator 
[GBY_149] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_148] (rows=47131396 width=7)
+                                  Select Operator [SEL_251] (rows=1704 
width=90)
+                                    Output:["_col0","_col1"]
+                                    TableScan [TS_29] (rows=1704 width=90)
+                                      
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_state"]
+                              <-Reducer 3 [SIMPLE_EDGE]
+                                SHUFFLE [RS_39]
+                                  PartitionCols:_col8
+                                  Merge Join Operator [MERGEJOIN_208] 
(rows=8581091679 width=19)
+                                    Conds:RS_36._col1, _col2=RS_37._col9, 
_col8(Inner),Output:["_col3","_col6","_col8","_col10","_col16"]
+                                  <-Reducer 2 [SIMPLE_EDGE]
+                                    PARTITION_ONLY_SHUFFLE [RS_36]
+                                      PartitionCols:_col1, _col2
+                                      Merge Join Operator [MERGEJOIN_204] 
(rows=47131396 width=11)
+                                        
Conds:RS_239._col0=RS_217._col0(Inner),Output:["_col1","_col2","_col3"]
+                                      <-Map 10 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_217]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_214] (rows=304 
width=4)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_211] 
(rows=304 width=94)
+                                              predicate:(d_quarter_name) IN 
('2000Q1', '2000Q2', '2000Q3')
+                                              TableScan [TS_3] (rows=73049 
width=94)
+                                                
default@date_dim,d3,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_quarter_name"]
+                                      <-Map 1 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_239]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_238] 
(rows=285117831 width=15)
+                                            
Output:["_col0","_col1","_col2","_col3"]
+                                            Filter Operator [FIL_237] 
(rows=285117831 width=15)
+                                              predicate:((cs_bill_customer_sk 
BETWEEN DynamicValue(RS_26_store_returns_sr_customer_sk_min) AND 
DynamicValue(RS_26_store_returns_sr_customer_sk_max) and 
in_bloom_filter(cs_bill_customer_sk, 
DynamicValue(RS_26_store_returns_sr_customer_sk_bloom_filter))) and (cs_item_sk 
BETWEEN DynamicValue(RS_26_store_returns_sr_item_sk_min) AND 
DynamicValue(RS_26_store_returns_sr_item_sk_max) and 
in_bloom_filter(cs_item_sk, 
DynamicValue(RS_26_store_returns_sr_item_sk_bloom_filter))) and 
(cs_sold_date_sk BETWEEN DynamicValue(RS_34_d3_d_date_sk_min) AND 
DynamicValue(RS_34_d3_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_34_d3_d_date_sk_bloom_filter))) and cs_bill_customer_sk is not 
null and cs_sold_date_sk is not null)
+                                              TableScan [TS_0] (rows=287989836 
width=15)
+                                                
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_quantity"]
+                                              <-Reducer 16 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_232]
+                                                  Group By Operator [GBY_231] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_107]
+                                                      Group By Operator 
[GBY_106] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_105] (rows=8143830 width=6)
+                                                          Output:["_col0"]
+                                                          Merge Join Operator 
[MERGEJOIN_206] (rows=8143830 width=14)
+                                                            
Conds:RS_230._col0=RS_221._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                                          <-Map 10 
[SIMPLE_EDGE] vectorized
+                                                            SHUFFLE [RS_221]
+                                                              
PartitionCols:_col0
+                                                              Select Operator 
[SEL_216] (rows=304 width=4)
                                                                 
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_198]
+                                                                Filter 
Operator [FIL_213] (rows=304 width=94)
+                                                                  
predicate:(d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3')
+                                                                   Please 
refer to the previous TableScan [TS_3]
+                                                          <-Map 20 
[SIMPLE_EDGE] vectorized
+                                                            SHUFFLE [RS_230]
+                                                              
PartitionCols:_col0
+                                                              Select Operator 
[SEL_229] (rows=53632139 width=19)
+                                                                
Output:["_col0","_col1","_col2","_col3","_col4"]
+                                                                Filter 
Operator [FIL_228] (rows=53632139 width=19)
+                                                                  
predicate:(sr_customer_sk is not null and sr_returned_date_sk is not null)
+                                                                  TableScan 
[TS_12] (rows=57591150 width=19)
+                                                                    
default@store_returns,store_returns,Tbl:COMPLETE,Col:COMPLETE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_return_quantity"]
+                                              <-Reducer 17 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_235]
+                                                  Group By Operator [GBY_234] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_122]
+                                                      Group By Operator 
[GBY_121] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_120] (rows=8143830 width=8)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_206]
+                                              <-Reducer 11 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_227]
+                                                  Group By Operator [GBY_226] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 10 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    SHUFFLE [RS_224]
+                                                      Group By Operator 
[GBY_222] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_218] (rows=304 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_214]
+                                  <-Reducer 13 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_37]
+                                      PartitionCols:_col9, _col8
+                                      Merge Join Operator [MERGEJOIN_207] 
(rows=42605597 width=19)
+                                        Conds:RS_25._col2, _col1, 
_col4=RS_26._col2, _col1, 
_col3(Inner),Output:["_col1","_col3","_col5","_col8","_col9","_col11"]
+                                      <-Reducer 15 [SIMPLE_EDGE]
+                                        PARTITION_ONLY_SHUFFLE [RS_26]
+                                          PartitionCols:_col2, _col1, _col3
+                                           Please refer to the previous Merge 
Join Operator [MERGEJOIN_206]
+                                      <-Reducer 12 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_25]
+                                          PartitionCols:_col2, _col1, _col4
+                                          Merge Join Operator [MERGEJOIN_205] 
(rows=27749405 width=10)
+                                            
Conds:RS_250._col0=RS_219._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                          <-Map 10 [SIMPLE_EDGE] vectorized
+                                            SHUFFLE [RS_219]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_215] 
(rows=101 width=4)
+                                                Output:["_col0"]
+                                                Filter Operator [FIL_212] 
(rows=101 width=94)
+                                                  predicate:(d_quarter_name = 
'2000Q1')
+                                                   Please refer to the 
previous TableScan [TS_3]
+                                          <-Map 19 [SIMPLE_EDGE] vectorized
+                                            SHUFFLE [RS_250]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_249] 
(rows=501694138 width=23)
+                                                
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                Filter Operator [FIL_248] 
(rows=501694138 width=23)
+                                                  predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_26_store_returns_sr_customer_sk_min) AND 
DynamicValue(RS_26_store_returns_sr_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_26_store_returns_sr_customer_sk_bloom_filter))) and 
(ss_customer_sk BETWEEN 
DynamicValue(RS_36_catalog_sales_cs_bill_customer_sk_min) AND 
DynamicValue(RS_36_catalog_sales_cs_bill_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_36_catalog_sales_cs_bill_customer_sk_bloom_filter))) and 
(ss_item_sk BETWEEN DynamicValue(RS_26_store_returns_sr_item_sk_min) AND 
DynamicValue(RS_26_store_returns_sr_item_sk_max) and 
in_bloom_filter(ss_item_sk, 
DynamicValue(RS_26_store_returns_sr_item_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_36_catalog_sales_cs_item_sk_min) AND 
DynamicValue(RS_36_catalog_sales_cs_item_sk_max) and 
in_bloom_filter(ss_item_sk, 
DynamicValue(RS_36_catalog_sales_cs_item_sk_bloom_filter))) and (ss_sold_
 date_sk BETWEEN DynamicValue(RS_23_d1_d_date_sk_min) AND 
DynamicValue(RS_23_d1_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_23_d1_d_date_sk_bloom_filter))) and (ss_ticket_number BETWEEN 
DynamicValue(RS_26_store_returns_sr_ticket_number_min) AND 
DynamicValue(RS_26_store_returns_sr_ticket_number_max) and 
in_bloom_filter(ss_ticket_number, 
DynamicValue(RS_26_store_returns_sr_ticket_number_bloom_filter))) and 
ss_customer_sk is not null and ss_sold_date_sk is not null and ss_store_sk is 
not null)
+                                                  TableScan [TS_6] 
(rows=575995635 width=23)
+                                                    
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ticket_number","ss_quantity"]
+                                                  <-Reducer 16 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_233]
+                                                       Please refer to the 
previous Group By Operator [GBY_231]
+                                                  <-Reducer 17 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_236]
+                                                       Please refer to the 
previous Group By Operator [GBY_234]
+                                                  <-Reducer 14 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_241]
+                                                      Group By Operator 
[GBY_240] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Map 10 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                        SHUFFLE [RS_225]
+                                                          Group By Operator 
[GBY_223] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_220] (rows=101 width=4)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Select Operator [SEL_215]
+                                                  <-Reducer 18 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_243]
+                                                      Group By Operator 
[GBY_242] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=5304149)"]
+                                                      <-Reducer 15 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_144]
+                                                          Group By Operator 
[GBY_143] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=5304149)"]
+                                                            Select Operator 
[SEL_142] (rows=8143830 width=8)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Merge Join Operator [MERGEJOIN_206]
+                                                  <-Reducer 8 [BROADCAST_EDGE] 
vectorized
+                                                    BROADCAST [RS_245]
+                                                      Group By Operator 
[GBY_244] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_154]
+                                                          Group By Operator 
[GBY_153] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_152] (rows=47131396 width=7)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Merge Join Operator [MERGEJOIN_204]
+                                                  <-Reducer 9 [BROADCAST_EDGE] 
vectorized
+                                                    BROADCAST [RS_247]
+                                                      Group By Operator 
[GBY_246] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_159]
+                                                          Group By Operator 
[GBY_158] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_157] (rows=47131396 width=8)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Merge Join Operator [MERGEJOIN_204]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query18.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query18.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query18.q.out
index b7f9778..d38965a 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query18.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query18.q.out
@@ -81,159 +81,157 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 10 <- Reducer 15 (BROADCAST_EDGE), Reducer 17 (BROADCAST_EDGE), Reducer 7 
(BROADCAST_EDGE)
-Reducer 11 <- Map 10 (SIMPLE_EDGE), Map 14 (SIMPLE_EDGE)
-Reducer 12 <- Map 16 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
-Reducer 13 <- Map 18 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 15 <- Map 14 (CUSTOM_SIMPLE_EDGE)
-Reducer 17 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 3 <- Map 9 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
+Map 10 <- Reducer 14 (BROADCAST_EDGE), Reducer 16 (BROADCAST_EDGE), Reducer 8 
(BROADCAST_EDGE)
+Reducer 11 <- Map 10 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
+Reducer 12 <- Map 15 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
+Reducer 14 <- Map 13 (CUSTOM_SIMPLE_EDGE)
+Reducer 16 <- Map 15 (CUSTOM_SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 17 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 18 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 3 (CUSTOM_SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+Reducer 8 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 6 vectorized
-      File Output Operator [FS_177]
-        Limit [LIM_176] (rows=100 width=1165)
+      Reducer 7 vectorized
+      File Output Operator [FS_181]
+        Limit [LIM_180] (rows=100 width=1165)
           Number of rows:100
-          Select Operator [SEL_175] (rows=10969055 width=1165)
+          Select Operator [SEL_179] (rows=11124170 width=1165)
             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
-          <-Reducer 5 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_174]
-              Select Operator [SEL_173] (rows=10969055 width=1165)
+          <-Reducer 6 [SIMPLE_EDGE] vectorized
+            SHUFFLE [RS_178]
+              Select Operator [SEL_177] (rows=11124170 width=1165)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
-                Group By Operator [GBY_172] (rows=10969055 width=1229)
+                Group By Operator [GBY_176] (rows=11124170 width=1229)
                   
Output:["_col0","_col1","_col2","_col3","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18"],aggregations:["sum(VALUE._col0)","count(VALUE._col1)","sum(VALUE._col2)","count(VALUE._col3)","sum(VALUE._col4)","count(VALUE._col5)","sum(VALUE._col6)","count(VALUE._col7)","sum(VALUE._col8)","count(VALUE._col9)","sum(VALUE._col10)","count(VALUE._col11)","sum(VALUE._col12)","count(VALUE._col13)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4
-                <-Reducer 4 [SIMPLE_EDGE]
+                <-Reducer 5 [SIMPLE_EDGE]
                   SHUFFLE [RS_40]
                     PartitionCols:_col0, _col1, _col2, _col3, _col4
-                    Group By Operator [GBY_39] (rows=10969055 width=1229)
-                      
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18"],aggregations:["sum(_col15)","count(_col15)","sum(_col16)","count(_col16)","sum(_col17)","count(_col17)","sum(_col18)","count(_col18)","sum(_col19)","count(_col19)","sum(_col3)","count(_col3)","sum(_col22)","count(_col22)"],keys:_col5,
 _col6, _col7, _col10, 0L
-                      Merge Join Operator [MERGEJOIN_140] (rows=2193811 
width=811)
-                        
Conds:RS_35._col0=RS_36._col3(Inner),Output:["_col3","_col5","_col6","_col7","_col10","_col15","_col16","_col17","_col18","_col19","_col22"]
-                      <-Reducer 3 [SIMPLE_EDGE]
-                        PARTITION_ONLY_SHUFFLE [RS_35]
+                    Group By Operator [GBY_39] (rows=11124170 width=1229)
+                      
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18"],aggregations:["sum(_col12)","count(_col12)","sum(_col13)","count(_col13)","sum(_col14)","count(_col14)","sum(_col15)","count(_col15)","sum(_col16)","count(_col16)","sum(_col3)","count(_col3)","sum(_col19)","count(_col19)"],keys:_col21,
 _col5, _col6, _col7, 0L
+                      Merge Join Operator [MERGEJOIN_144] (rows=2224834 
width=816)
+                        
Conds:RS_35._col1=RS_175._col0(Inner),Output:["_col3","_col5","_col6","_col7","_col12","_col13","_col14","_col15","_col16","_col19","_col21"]
+                      <-Map 18 [SIMPLE_EDGE] vectorized
+                        SHUFFLE [RS_175]
                           PartitionCols:_col0
-                          Merge Join Operator [MERGEJOIN_136] (rows=4959744 
width=368)
-                            
Conds:RS_32._col1=RS_148._col0(Inner),Output:["_col0","_col3","_col5","_col6","_col7"]
-                          <-Map 9 [SIMPLE_EDGE] vectorized
-                            SHUFFLE [RS_148]
+                          Select Operator [SEL_174] (rows=1861800 width=4)
+                            Output:["_col0"]
+                            TableScan [TS_24] (rows=1861800 width=4)
+                              
default@customer_demographics,cd2,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk"]
+                      <-Reducer 4 [SIMPLE_EDGE]
+                        SHUFFLE [RS_35]
+                          PartitionCols:_col1
+                          Merge Join Operator [MERGEJOIN_143] (rows=2193811 
width=813)
+                            
Conds:RS_32._col11=RS_173._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col12","_col13","_col14","_col15","_col16","_col19","_col21"]
+                          <-Map 17 [SIMPLE_EDGE] vectorized
+                            SHUFFLE [RS_173]
                               PartitionCols:_col0
-                              Select Operator [SEL_147] (rows=1861800 width=4)
-                                Output:["_col0"]
-                                TableScan [TS_6] (rows=1861800 width=4)
-                                  
default@customer_demographics,cd2,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk"]
-                          <-Reducer 2 [SIMPLE_EDGE]
+                              Select Operator [SEL_172] (rows=462000 width=104)
+                                Output:["_col0","_col1"]
+                                TableScan [TS_22] (rows=462000 width=104)
+                                  
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id"]
+                          <-Reducer 3 [SIMPLE_EDGE]
                             SHUFFLE [RS_32]
-                              PartitionCols:_col1
-                              Merge Join Operator [MERGEJOIN_135] 
(rows=4890586 width=371)
-                                
Conds:RS_143._col2=RS_146._col0(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col7"]
-                              <-Map 1 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_143]
-                                  PartitionCols:_col2
-                                  Select Operator [SEL_142] (rows=35631408 
width=119)
-                                    Output:["_col0","_col1","_col2","_col3"]
-                                    Filter Operator [FIL_141] (rows=35631408 
width=19)
-                                      predicate:((c_birth_month) IN (9, 5, 12, 
4, 1, 10) and c_current_addr_sk is not null and c_current_cdemo_sk is not null)
-                                      TableScan [TS_0] (rows=80000000 width=19)
-                                        
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk","c_birth_month","c_birth_year"]
-                              <-Map 8 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_146]
+                              PartitionCols:_col11
+                              Merge Join Operator [MERGEJOIN_142] 
(rows=2193811 width=717)
+                                
Conds:RS_29._col0=RS_30._col1(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col11","_col12","_col13","_col14","_col15","_col16","_col19"]
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                PARTITION_ONLY_SHUFFLE [RS_29]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_145] (rows=5490196 
width=285)
-                                    Output:["_col0","_col1","_col2","_col3"]
-                                    Filter Operator [FIL_144] (rows=5490196 
width=285)
-                                      predicate:(ca_state) IN ('ND', 'WI', 
'AL', 'NC', 'OK', 'MS', 'TN')
-                                      TableScan [TS_3] (rows=40000000 
width=285)
-                                        
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_county","ca_state","ca_country"]
-                      <-Reducer 13 [SIMPLE_EDGE]
-                        SHUFFLE [RS_36]
-                          PartitionCols:_col3
-                          Select Operator [SEL_28] (rows=15983481 width=735)
-                            
Output:["_col1","_col3","_col6","_col7","_col8","_col9","_col10","_col13"]
-                            Merge Join Operator [MERGEJOIN_139] (rows=15983481 
width=735)
-                              
Conds:RS_25._col3=RS_171._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7","_col8","_col11","_col13"]
-                            <-Map 18 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_171]
-                                PartitionCols:_col0
-                                Select Operator [SEL_170] (rows=462000 
width=104)
-                                  Output:["_col0","_col1"]
-                                  TableScan [TS_17] (rows=462000 width=104)
-                                    
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id"]
-                            <-Reducer 12 [SIMPLE_EDGE]
-                              SHUFFLE [RS_25]
-                                PartitionCols:_col3
-                                Merge Join Operator [MERGEJOIN_138] 
(rows=15983481 width=639)
-                                  
Conds:RS_22._col2=RS_159._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col11"]
-                                <-Map 16 [SIMPLE_EDGE] vectorized
-                                  PARTITION_ONLY_SHUFFLE [RS_159]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_158] (rows=103433 
width=116)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_157] (rows=103433 
width=187)
-                                        predicate:((cd_education_status = 
'College') and (cd_gender = 'M'))
-                                        TableScan [TS_14] (rows=1861800 
width=187)
-                                          
default@customer_demographics,cd1,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_gender","cd_education_status","cd_dep_count"]
-                                <-Reducer 11 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_22]
-                                    PartitionCols:_col2
-                                    Merge Join Operator [MERGEJOIN_137] 
(rows=100578970 width=565)
-                                      
Conds:RS_169._col0=RS_151._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                    <-Map 14 [SIMPLE_EDGE] vectorized
-                                      PARTITION_ONLY_SHUFFLE [RS_151]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_150] (rows=652 
width=4)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_149] (rows=652 
width=8)
-                                            predicate:(d_year = 2001)
-                                            TableScan [TS_11] (rows=73049 
width=8)
-                                              
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year"]
-                                    <-Map 10 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_169]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_168] 
(rows=283692098 width=573)
-                                          
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                          Filter Operator [FIL_167] 
(rows=283692098 width=466)
-                                            predicate:((cs_bill_cdemo_sk 
BETWEEN DynamicValue(RS_23_cd1_cd_demo_sk_min) AND 
DynamicValue(RS_23_cd1_cd_demo_sk_max) and in_bloom_filter(cs_bill_cdemo_sk, 
DynamicValue(RS_23_cd1_cd_demo_sk_bloom_filter))) and (cs_bill_customer_sk 
BETWEEN DynamicValue(RS_35_customer_c_customer_sk_min) AND 
DynamicValue(RS_35_customer_c_customer_sk_max) and 
in_bloom_filter(cs_bill_customer_sk, 
DynamicValue(RS_35_customer_c_customer_sk_bloom_filter))) and (cs_sold_date_sk 
BETWEEN DynamicValue(RS_20_date_dim_d_date_sk_min) AND 
DynamicValue(RS_20_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_20_date_dim_d_date_sk_bloom_filter))) and cs_bill_cdemo_sk is 
not null and cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
-                                            TableScan [TS_8] (rows=287989836 
width=466)
-                                              
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_bill_cdemo_sk","cs_item_sk","cs_quantity","cs_list_price","cs_sales_price","cs_coupon_amt","cs_net_profit"]
-                                            <-Reducer 15 [BROADCAST_EDGE] 
vectorized
-                                              BROADCAST [RS_156]
-                                                Group By Operator [GBY_155] 
(rows=1 width=12)
-                                                  
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                <-Map 14 [CUSTOM_SIMPLE_EDGE] 
vectorized
-                                                  PARTITION_ONLY_SHUFFLE 
[RS_154]
-                                                    Group By Operator 
[GBY_153] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                      Select Operator 
[SEL_152] (rows=652 width=4)
-                                                        Output:["_col0"]
-                                                         Please refer to the 
previous Select Operator [SEL_150]
-                                            <-Reducer 17 [BROADCAST_EDGE] 
vectorized
-                                              BROADCAST [RS_164]
-                                                Group By Operator [GBY_163] 
(rows=1 width=12)
-                                                  
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                <-Map 16 [CUSTOM_SIMPLE_EDGE] 
vectorized
-                                                  PARTITION_ONLY_SHUFFLE 
[RS_162]
-                                                    Group By Operator 
[GBY_161] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                      Select Operator 
[SEL_160] (rows=103433 width=4)
-                                                        Output:["_col0"]
-                                                         Please refer to the 
previous Select Operator [SEL_158]
-                                            <-Reducer 7 [BROADCAST_EDGE] 
vectorized
-                                              BROADCAST [RS_166]
-                                                Group By Operator [GBY_165] 
(rows=1 width=12)
-                                                  
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=4890586)"]
-                                                <-Reducer 3 
[CUSTOM_SIMPLE_EDGE]
-                                                  PARTITION_ONLY_SHUFFLE 
[RS_117]
-                                                    Group By Operator 
[GBY_116] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=4890586)"]
-                                                      Select Operator 
[SEL_115] (rows=4959744 width=4)
-                                                        Output:["_col0"]
-                                                         Please refer to the 
previous Merge Join Operator [MERGEJOIN_136]
+                                  Merge Join Operator [MERGEJOIN_139] 
(rows=4890586 width=371)
+                                    
Conds:RS_147._col2=RS_150._col0(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col7"]
+                                  <-Map 1 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_147]
+                                      PartitionCols:_col2
+                                      Select Operator [SEL_146] (rows=35631408 
width=119)
+                                        
Output:["_col0","_col1","_col2","_col3"]
+                                        Filter Operator [FIL_145] 
(rows=35631408 width=19)
+                                          predicate:((c_birth_month) IN (9, 5, 
12, 4, 1, 10) and c_current_addr_sk is not null and c_current_cdemo_sk is not 
null)
+                                          TableScan [TS_0] (rows=80000000 
width=19)
+                                            
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk","c_birth_month","c_birth_year"]
+                                  <-Map 9 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_150]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_149] (rows=5490196 
width=285)
+                                        
Output:["_col0","_col1","_col2","_col3"]
+                                        Filter Operator [FIL_148] 
(rows=5490196 width=285)
+                                          predicate:(ca_state) IN ('ND', 'WI', 
'AL', 'NC', 'OK', 'MS', 'TN')
+                                          TableScan [TS_3] (rows=40000000 
width=285)
+                                            
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_county","ca_state","ca_country"]
+                              <-Reducer 12 [SIMPLE_EDGE]
+                                SHUFFLE [RS_30]
+                                  PartitionCols:_col1
+                                  Merge Join Operator [MERGEJOIN_141] 
(rows=15983481 width=639)
+                                    
Conds:RS_18._col2=RS_161._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col11"]
+                                  <-Map 15 [SIMPLE_EDGE] vectorized
+                                    PARTITION_ONLY_SHUFFLE [RS_161]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_160] (rows=103433 
width=116)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_159] (rows=103433 
width=187)
+                                          predicate:((cd_education_status = 
'College') and (cd_gender = 'M'))
+                                          TableScan [TS_12] (rows=1861800 
width=187)
+                                            
default@customer_demographics,cd1,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_gender","cd_education_status","cd_dep_count"]
+                                  <-Reducer 11 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_18]
+                                      PartitionCols:_col2
+                                      Merge Join Operator [MERGEJOIN_140] 
(rows=100578970 width=565)
+                                        
Conds:RS_171._col0=RS_153._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                      <-Map 13 [SIMPLE_EDGE] vectorized
+                                        PARTITION_ONLY_SHUFFLE [RS_153]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_152] (rows=652 
width=4)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_151] 
(rows=652 width=8)
+                                              predicate:(d_year = 2001)
+                                              TableScan [TS_9] (rows=73049 
width=8)
+                                                
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year"]
+                                      <-Map 10 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_171]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_170] 
(rows=283692098 width=573)
+                                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                            Filter Operator [FIL_169] 
(rows=283692098 width=466)
+                                              predicate:((cs_bill_cdemo_sk 
BETWEEN DynamicValue(RS_19_cd1_cd_demo_sk_min) AND 
DynamicValue(RS_19_cd1_cd_demo_sk_max) and in_bloom_filter(cs_bill_cdemo_sk, 
DynamicValue(RS_19_cd1_cd_demo_sk_bloom_filter))) and (cs_bill_customer_sk 
BETWEEN DynamicValue(RS_29_customer_c_customer_sk_min) AND 
DynamicValue(RS_29_customer_c_customer_sk_max) and 
in_bloom_filter(cs_bill_customer_sk, 
DynamicValue(RS_29_customer_c_customer_sk_bloom_filter))) and (cs_sold_date_sk 
BETWEEN DynamicValue(RS_16_date_dim_d_date_sk_min) AND 
DynamicValue(RS_16_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_16_date_dim_d_date_sk_bloom_filter))) and cs_bill_cdemo_sk is 
not null and cs_bill_customer_sk is not null and cs_sold_date_sk is not null)
+                                              TableScan [TS_6] (rows=287989836 
width=466)
+                                                
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_bill_cdemo_sk","cs_item_sk","cs_quantity","cs_list_price","cs_sales_price","cs_coupon_amt","cs_net_profit"]
+                                              <-Reducer 14 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_158]
+                                                  Group By Operator [GBY_157] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 13 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_156]
+                                                      Group By Operator 
[GBY_155] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_154] (rows=652 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_152]
+                                              <-Reducer 16 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_166]
+                                                  Group By Operator [GBY_165] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 15 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_164]
+                                                      Group By Operator 
[GBY_163] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_162] (rows=103433 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_160]
+                                              <-Reducer 8 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_168]
+                                                  Group By Operator [GBY_167] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=4890586)"]
+                                                  <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_111]
+                                                      Group By Operator 
[GBY_110] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=4890586)"]
+                                                        Select Operator 
[SEL_109] (rows=4890586 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_139]
 

Reply via email to