http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query29.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query29.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query29.q.out
index 715f1ce..c6e95a0 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query29.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query29.q.out
@@ -107,222 +107,226 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Reducer 9 (BROADCAST_EDGE)
-Map 10 <- Reducer 16 (BROADCAST_EDGE), Reducer 18 (BROADCAST_EDGE), Reducer 19 
(BROADCAST_EDGE), Reducer 20 (BROADCAST_EDGE), Reducer 6 (BROADCAST_EDGE), 
Reducer 7 (BROADCAST_EDGE)
-Reducer 11 <- Map 10 (SIMPLE_EDGE), Map 15 (SIMPLE_EDGE)
-Reducer 12 <- Reducer 11 (SIMPLE_EDGE), Reducer 17 (SIMPLE_EDGE)
-Reducer 13 <- Map 22 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 14 <- Map 23 (SIMPLE_EDGE), Reducer 13 (SIMPLE_EDGE)
+Map 1 <- Reducer 11 (BROADCAST_EDGE), Reducer 18 (BROADCAST_EDGE), Reducer 19 
(BROADCAST_EDGE)
+Map 12 <- Reducer 16 (BROADCAST_EDGE), Reducer 18 (BROADCAST_EDGE), Reducer 19 
(BROADCAST_EDGE), Reducer 20 (BROADCAST_EDGE), Reducer 8 (BROADCAST_EDGE), 
Reducer 9 (BROADCAST_EDGE)
+Reducer 11 <- Map 10 (CUSTOM_SIMPLE_EDGE)
+Reducer 13 <- Map 12 (SIMPLE_EDGE), Map 15 (SIMPLE_EDGE)
+Reducer 14 <- Reducer 13 (SIMPLE_EDGE), Reducer 17 (SIMPLE_EDGE)
 Reducer 16 <- Map 15 (CUSTOM_SIMPLE_EDGE)
 Reducer 17 <- Map 15 (SIMPLE_EDGE), Map 21 (SIMPLE_EDGE)
 Reducer 18 <- Reducer 17 (CUSTOM_SIMPLE_EDGE)
 Reducer 19 <- Reducer 17 (CUSTOM_SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 10 (SIMPLE_EDGE)
 Reducer 20 <- Reducer 17 (CUSTOM_SIMPLE_EDGE)
 Reducer 3 <- Reducer 14 (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 22 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 23 (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_250]
-        Limit [LIM_249] (rows=100 width=496)
+      Reducer 7 vectorized
+      File Output Operator [FS_258]
+        Limit [LIM_257] (rows=100 width=496)
           Number of rows:100
-          Select Operator [SEL_248] (rows=21091879 width=496)
+          Select Operator [SEL_256] (rows=4156223234 width=496)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-          <-Reducer 4 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_247]
-              Group By Operator [GBY_246] (rows=21091879 width=496)
+          <-Reducer 6 [SIMPLE_EDGE] vectorized
+            SHUFFLE [RS_255]
+              Group By Operator [GBY_254] (rows=4156223234 width=496)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3
-              <-Reducer 3 [SIMPLE_EDGE]
+              <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_47]
                   PartitionCols:_col0, _col1, _col2, _col3
-                  Group By Operator [GBY_46] (rows=21091879 width=496)
-                    
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col13)","sum(_col19)","sum(_col3)"],keys:_col6,
 _col7, _col22, _col23
-                    Top N Key Operator [TNK_91] (rows=4156223234 width=483)
-                      keys:_col6, _col7, _col22, _col23,sort order:++++,top 
n:100
-                      Merge Join Operator [MERGEJOIN_203] (rows=4156223234 
width=483)
-                        Conds:RS_42._col2, _col1=RS_43._col11, 
_col12(Inner),Output:["_col3","_col6","_col7","_col13","_col19","_col22","_col23"]
-                      <-Reducer 2 [SIMPLE_EDGE]
-                        PARTITION_ONLY_SHUFFLE [RS_42]
-                          PartitionCols:_col2, _col1
-                          Merge Join Operator [MERGEJOIN_197] (rows=7638375 
width=10)
-                            
Conds:RS_214._col0=RS_206._col0(Inner),Output:["_col1","_col2","_col3"]
-                          <-Map 8 [SIMPLE_EDGE] vectorized
-                            PARTITION_ONLY_SHUFFLE [RS_206]
+                  Group By Operator [GBY_46] (rows=4156223234 width=496)
+                    
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col10)","sum(_col16)","sum(_col3)"],keys:_col22,
 _col23, _col19, _col20
+                    Top N Key Operator [TNK_93] (rows=4156223234 width=483)
+                      keys:_col22, _col23, _col19, _col20,sort order:++++,top 
n:100
+                      Merge Join Operator [MERGEJOIN_209] (rows=4156223234 
width=483)
+                        
Conds:RS_42._col6=RS_253._col0(Inner),Output:["_col3","_col10","_col16","_col19","_col20","_col22","_col23"]
+                      <-Map 23 [SIMPLE_EDGE] vectorized
+                        SHUFFLE [RS_253]
+                          PartitionCols:_col0
+                          Select Operator [SEL_252] (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_208] (rows=4156223234 
width=203)
+                            
Conds:RS_39._col8=RS_251._col0(Inner),Output:["_col3","_col6","_col10","_col16","_col19","_col20"]
+                          <-Map 22 [SIMPLE_EDGE] vectorized
+                            SHUFFLE [RS_251]
                               PartitionCols:_col0
-                              Select Operator [SEL_205] (rows=1957 width=4)
-                                Output:["_col0"]
-                                Filter Operator [FIL_204] (rows=1957 width=8)
-                                  predicate:(d_year) IN (1999, 2000, 2001)
-                                  TableScan [TS_3] (rows=73049 width=8)
-                                    
default@date_dim,d3,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year"]
-                          <-Map 1 [SIMPLE_EDGE] vectorized
-                            SHUFFLE [RS_214]
-                              PartitionCols:_col0
-                              Select Operator [SEL_213] (rows=285117831 
width=15)
-                                Output:["_col0","_col1","_col2","_col3"]
-                                Filter Operator [FIL_212] (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_211]
-                                      Group By Operator [GBY_210] (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_209]
-                                          Group By Operator [GBY_208] (rows=1 
width=12)
-                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                            Select Operator [SEL_207] 
(rows=1957 width=4)
-                                              Output:["_col0"]
-                                               Please refer to the previous 
Select Operator [SEL_205]
-                      <-Reducer 14 [SIMPLE_EDGE]
-                        SHUFFLE [RS_43]
-                          PartitionCols:_col11, _col12
-                          Select Operator [SEL_38] (rows=21091879 width=484)
-                            
Output:["_col1","_col2","_col8","_col11","_col12","_col14","_col17","_col18"]
-                            Merge Join Operator [MERGEJOIN_202] (rows=21091879 
width=484)
-                              
Conds:RS_35._col3=RS_245._col0(Inner),Output:["_col5","_col8","_col9","_col11","_col14","_col15","_col17","_col18"]
-                            <-Map 23 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_245]
-                                PartitionCols:_col0
-                                Select Operator [SEL_244] (rows=1704 width=192)
-                                  Output:["_col0","_col1","_col2"]
-                                  TableScan [TS_24] (rows=1704 width=192)
-                                    
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_store_id","s_store_name"]
-                            <-Reducer 13 [SIMPLE_EDGE]
-                              SHUFFLE [RS_35]
-                                PartitionCols:_col3
-                                Merge Join Operator [MERGEJOIN_201] 
(rows=21091879 width=298)
-                                  
Conds:RS_32._col1=RS_243._col0(Inner),Output:["_col3","_col5","_col8","_col9","_col11","_col14","_col15"]
-                                <-Map 22 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_243]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_242] (rows=462000 
width=288)
-                                      Output:["_col0","_col1","_col2"]
-                                      TableScan [TS_22] (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_32]
-                                    PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_200] 
(rows=21091879 width=18)
-                                      Conds:RS_29._col1, _col2, 
_col4=RS_30._col1, _col2, 
_col3(Inner),Output:["_col1","_col3","_col5","_col8","_col9","_col11"]
-                                    <-Reducer 17 [SIMPLE_EDGE]
-                                      PARTITION_ONLY_SHUFFLE [RS_30]
-                                        PartitionCols:_col1, _col2, _col3
-                                        Merge Join Operator [MERGEJOIN_199] 
(rows=5384572 width=13)
-                                          
Conds:RS_228._col0=RS_221._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 15 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_221]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_218] 
(rows=201 width=4)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_216] 
(rows=201 width=12)
-                                                predicate:((d_year = 1999) and 
d_moy BETWEEN 4 AND 7)
-                                                TableScan [TS_9] (rows=73049 
width=12)
-                                                  
default@date_dim,d1,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
-                                        <-Map 21 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_228]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_227] 
(rows=53632139 width=19)
-                                              
Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_226] 
(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 11 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_29]
-                                        PartitionCols:_col1, _col2, _col4
-                                        Merge Join Operator [MERGEJOIN_198] 
(rows=13737330 width=8)
-                                          
Conds:RS_241._col0=RS_219._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
-                                        <-Map 15 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_219]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_217] (rows=50 
width=4)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_215] 
(rows=50 width=12)
-                                                predicate:((d_moy = 4) and 
(d_year = 1999))
-                                                 Please refer to the previous 
TableScan [TS_9]
-                                        <-Map 10 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_241]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_240] 
(rows=501694138 width=23)
-                                              
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                              Filter Operator [FIL_239] 
(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_sold_da
 te_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 16 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_225]
-                                                    Group By Operator 
[GBY_224] (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
-                                                      SHUFFLE [RS_223]
-                                                        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_220] (rows=50 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Select Operator [SEL_217]
-                                                <-Reducer 18 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_230]
-                                                    Group By Operator 
[GBY_229] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                    <-Reducer 17 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_119]
-                                                        Group By Operator 
[GBY_118] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_117] (rows=5384572 width=8)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_199]
-                                                <-Reducer 19 [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 17 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_124]
-                                                        Group By Operator 
[GBY_123] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_122] (rows=5384572 width=5)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_199]
-                                                <-Reducer 20 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_234]
-                                                    Group By Operator 
[GBY_233] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=3507020)"]
-                                                    <-Reducer 17 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_129]
-                                                        Group By Operator 
[GBY_128] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=3507020)"]
-                                                          Select Operator 
[SEL_127] (rows=5384572 width=8)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_199]
-                                                <-Reducer 6 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_236]
-                                                    Group By Operator 
[GBY_235] (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_144]
-                                                        Group By Operator 
[GBY_143] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_142] (rows=7638375 width=8)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_197]
-                                                <-Reducer 7 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_238]
-                                                    Group By Operator 
[GBY_237] (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_149]
-                                                        Group By Operator 
[GBY_148] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_147] (rows=7638375 width=6)
+                              Select Operator [SEL_250] (rows=1704 width=192)
+                                Output:["_col0","_col1","_col2"]
+                                TableScan [TS_29] (rows=1704 width=192)
+                                  
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_store_id","s_store_name"]
+                          <-Reducer 3 [SIMPLE_EDGE]
+                            SHUFFLE [RS_39]
+                              PartitionCols:_col8
+                              Merge Join Operator [MERGEJOIN_207] 
(rows=4156223234 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_203] 
(rows=7638375 width=10)
+                                    
Conds:RS_238._col0=RS_212._col0(Inner),Output:["_col1","_col2","_col3"]
+                                  <-Map 10 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_212]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_211] (rows=1957 
width=4)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_210] (rows=1957 
width=8)
+                                          predicate:(d_year) IN (1999, 2000, 
2001)
+                                          TableScan [TS_3] (rows=73049 width=8)
+                                            
default@date_dim,d3,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year"]
+                                  <-Map 1 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_238]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_237] 
(rows=285117831 width=15)
+                                        
Output:["_col0","_col1","_col2","_col3"]
+                                        Filter Operator [FIL_236] 
(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 18 [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 17 [CUSTOM_SIMPLE_EDGE]
+                                                PARTITION_ONLY_SHUFFLE [RS_106]
+                                                  Group By Operator [GBY_105] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                    Select Operator [SEL_104] 
(rows=5384572 width=5)
+                                                      Output:["_col0"]
+                                                      Merge Join Operator 
[MERGEJOIN_205] (rows=5384572 width=13)
+                                                        
Conds:RS_229._col0=RS_224._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                                      <-Map 15 [SIMPLE_EDGE] 
vectorized
+                                                        SHUFFLE [RS_224]
+                                                          PartitionCols:_col0
+                                                          Select Operator 
[SEL_221] (rows=201 width=4)
                                                             Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_197]
+                                                            Filter Operator 
[FIL_219] (rows=201 width=12)
+                                                              
predicate:((d_year = 1999) and d_moy BETWEEN 4 AND 7)
+                                                              TableScan [TS_9] 
(rows=73049 width=12)
+                                                                
default@date_dim,d1,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
+                                                      <-Map 21 [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 19 [BROADCAST_EDGE] 
vectorized
+                                            BROADCAST [RS_234]
+                                              Group By Operator [GBY_233] 
(rows=1 width=12)
+                                                
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                              <-Reducer 17 [CUSTOM_SIMPLE_EDGE]
+                                                PARTITION_ONLY_SHUFFLE [RS_121]
+                                                  Group By Operator [GBY_120] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                    Select Operator [SEL_119] 
(rows=5384572 width=8)
+                                                      Output:["_col0"]
+                                                       Please refer to the 
previous Merge Join Operator [MERGEJOIN_205]
+                                          <-Reducer 11 [BROADCAST_EDGE] 
vectorized
+                                            BROADCAST [RS_217]
+                                              Group By Operator [GBY_216] 
(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_215]
+                                                  Group By Operator [GBY_214] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                    Select Operator [SEL_213] 
(rows=1957 width=4)
+                                                      Output:["_col0"]
+                                                       Please refer to the 
previous Select Operator [SEL_211]
+                              <-Reducer 14 [SIMPLE_EDGE]
+                                SHUFFLE [RS_37]
+                                  PartitionCols:_col9, _col8
+                                  Merge Join Operator [MERGEJOIN_206] 
(rows=21091879 width=18)
+                                    Conds:RS_25._col2, _col1, 
_col4=RS_26._col2, _col1, 
_col3(Inner),Output:["_col1","_col3","_col5","_col8","_col9","_col11"]
+                                  <-Reducer 17 [SIMPLE_EDGE]
+                                    PARTITION_ONLY_SHUFFLE [RS_26]
+                                      PartitionCols:_col2, _col1, _col3
+                                       Please refer to the previous Merge Join 
Operator [MERGEJOIN_205]
+                                  <-Reducer 13 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_25]
+                                      PartitionCols:_col2, _col1, _col4
+                                      Merge Join Operator [MERGEJOIN_204] 
(rows=13737330 width=8)
+                                        
Conds:RS_249._col0=RS_222._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                      <-Map 15 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_222]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_220] (rows=50 
width=4)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_218] (rows=50 
width=12)
+                                              predicate:((d_moy = 4) and 
(d_year = 1999))
+                                               Please refer to the previous 
TableScan [TS_9]
+                                      <-Map 12 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_249]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_248] 
(rows=501694138 width=23)
+                                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                            Filter Operator [FIL_247] 
(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 18 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_232]
+                                                   Please refer to the 
previous Group By Operator [GBY_230]
+                                              <-Reducer 19 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_235]
+                                                   Please refer to the 
previous Group By Operator [GBY_233]
+                                              <-Reducer 16 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_240]
+                                                  Group By Operator [GBY_239] 
(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
+                                                    SHUFFLE [RS_226]
+                                                      Group By Operator 
[GBY_225] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_223] (rows=50 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_220]
+                                              <-Reducer 20 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_242]
+                                                  Group By Operator [GBY_241] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=3507020)"]
+                                                  <-Reducer 17 
[CUSTOM_SIMPLE_EDGE]
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_143]
+                                                      Group By Operator 
[GBY_142] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=3507020)"]
+                                                        Select Operator 
[SEL_141] (rows=5384572 width=8)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_205]
+                                              <-Reducer 8 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_244]
+                                                  Group By Operator [GBY_243] 
(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_153]
+                                                      Group By Operator 
[GBY_152] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_151] (rows=7638375 width=6)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_203]
+                                              <-Reducer 9 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_246]
+                                                  Group By Operator [GBY_245] 
(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_158]
+                                                      Group By Operator 
[GBY_157] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_156] (rows=7638375 width=8)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_203]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query35.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query35.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query35.q.out
index 2501199..f454be9 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query35.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query35.q.out
@@ -155,207 +155,209 @@ Stage-0
     limit:-1
     Stage-1
       Reducer 8 vectorized
-      File Output Operator [FS_232]
-        Limit [LIM_231] (rows=1 width=352)
+      File Output Operator [FS_233]
+        Limit [LIM_232] (rows=1 width=352)
           Number of rows:100
-          Select Operator [SEL_230] (rows=1 width=352)
+          Select Operator [SEL_231] (rows=1 width=352)
             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16"]
           <-Reducer 7 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_229]
-              Select Operator [SEL_228] (rows=1 width=352)
+            SHUFFLE [RS_230]
+              Select Operator [SEL_229] (rows=1 width=352)
                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9","_col10","_col11","_col12","_col14","_col15","_col16","_col17"]
-                Group By Operator [GBY_227] (rows=1 width=336)
+                Group By Operator [GBY_228] (rows=1 width=336)
                   
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15"],aggregations:["count(VALUE._col0)","sum(VALUE._col1)","count(VALUE._col2)","max(VALUE._col3)","sum(VALUE._col4)","count(VALUE._col5)","max(VALUE._col6)","sum(VALUE._col7)","count(VALUE._col8)","max(VALUE._col9)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5
                 <-Reducer 6 [SIMPLE_EDGE]
-                  SHUFFLE [RS_65]
+                  SHUFFLE [RS_66]
                     PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5
-                    Group By Operator [GBY_64] (rows=1 width=336)
+                    Group By Operator [GBY_65] (rows=1 width=336)
                       
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15"],aggregations:["count()","sum(_col8)","count(_col8)","max(_col8)","sum(_col9)","count(_col9)","max(_col9)","sum(_col10)","count(_col10)","max(_col10)"],keys:_col4,
 _col6, _col7, _col8, _col9, _col10
-                      Top N Key Operator [TNK_102] (rows=67 width=276)
+                      Top N Key Operator [TNK_103] (rows=67 width=276)
                         keys:_col4, _col6, _col7, _col8, _col9, _col10,sort 
order:++++++,top n:100
-                        Select Operator [SEL_63] (rows=67 width=276)
+                        Select Operator [SEL_64] (rows=67 width=276)
                           
Output:["_col4","_col6","_col7","_col8","_col9","_col10"]
-                          Filter Operator [FIL_62] (rows=67 width=276)
+                          Filter Operator [FIL_63] (rows=67 width=276)
                             predicate:(_col12 is not null or _col14 is not 
null)
-                            Merge Join Operator [MERGEJOIN_180] (rows=67 
width=276)
-                              Conds:RS_59._col0=RS_226._col0(Left 
Outer),Output:["_col4","_col6","_col7","_col8","_col9","_col10","_col12","_col14"]
+                            Merge Join Operator [MERGEJOIN_181] (rows=67 
width=276)
+                              Conds:RS_60._col0=RS_227._col0(Left 
Outer),Output:["_col4","_col6","_col7","_col8","_col9","_col10","_col12","_col14"]
                             <-Reducer 5 [ONE_TO_ONE_EDGE]
-                              PARTITION_ONLY_SHUFFLE [RS_59]
+                              PARTITION_ONLY_SHUFFLE [RS_60]
                                 PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_179] (rows=68 
width=276)
-                                  Conds:RS_56._col0=RS_216._col0(Left 
Outer),Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10","_col12"]
+                                Merge Join Operator [MERGEJOIN_180] (rows=68 
width=276)
+                                  Conds:RS_57._col0=RS_217._col0(Left 
Outer),Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10","_col12"]
                                 <-Reducer 4 [ONE_TO_ONE_EDGE]
-                                  FORWARD [RS_56]
+                                  FORWARD [RS_57]
                                     PartitionCols:_col0
-                                    Merge Join Operator [MERGEJOIN_178] 
(rows=162346 width=272)
-                                      Conds:RS_53._col0=RS_54._col0(Left 
Semi),Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10"]
+                                    Merge Join Operator [MERGEJOIN_179] 
(rows=162346 width=272)
+                                      Conds:RS_54._col0=RS_55._col0(Left 
Semi),Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10"]
                                     <-Reducer 14 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_54]
+                                      SHUFFLE [RS_55]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_52] 
(rows=168231 width=2)
+                                        Group By Operator [GBY_53] 
(rows=168231 width=2)
                                           Output:["_col0"],keys:_col0
-                                          Select Operator [SEL_16] 
(rows=62428523 width=2)
+                                          Select Operator [SEL_23] 
(rows=62428523 width=2)
                                             Output:["_col0"]
-                                            Merge Join Operator 
[MERGEJOIN_175] (rows=62428523 width=2)
-                                              
Conds:RS_206._col0=RS_190._col0(Inner),Output:["_col1"]
+                                            Merge Join Operator 
[MERGEJOIN_176] (rows=62428523 width=2)
+                                              
Conds:RS_207._col0=RS_191._col0(Inner),Output:["_col1"]
                                             <-Map 15 [SIMPLE_EDGE] vectorized
-                                              PARTITION_ONLY_SHUFFLE [RS_190]
+                                              PARTITION_ONLY_SHUFFLE [RS_191]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_189] 
(rows=217 width=4)
+                                                Select Operator [SEL_190] 
(rows=217 width=4)
                                                   Output:["_col0"]
-                                                  Filter Operator [FIL_188] 
(rows=217 width=12)
+                                                  Filter Operator [FIL_189] 
(rows=217 width=12)
                                                     predicate:((d_qoy < 4) and 
(d_year = 1999))
-                                                    TableScan [TS_10] 
(rows=73049 width=12)
+                                                    TableScan [TS_17] 
(rows=73049 width=12)
                                                       
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_qoy"]
                                             <-Map 13 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_206]
+                                              SHUFFLE [RS_207]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_205] 
(rows=525327388 width=7)
+                                                Select Operator [SEL_206] 
(rows=525327388 width=7)
                                                   Output:["_col0","_col1"]
-                                                  Filter Operator [FIL_204] 
(rows=525327388 width=7)
-                                                    
predicate:((ss_sold_date_sk BETWEEN DynamicValue(RS_14_date_dim_d_date_sk_min) 
AND DynamicValue(RS_14_date_dim_d_date_sk_max) and 
in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_14_date_dim_d_date_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_sold_date_sk is not null)
-                                                    TableScan [TS_7] 
(rows=575995635 width=7)
+                                                  Filter Operator [FIL_205] 
(rows=525327388 width=7)
+                                                    
predicate:((ss_sold_date_sk BETWEEN DynamicValue(RS_21_date_dim_d_date_sk_min) 
AND DynamicValue(RS_21_date_dim_d_date_sk_max) and 
in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_21_date_dim_d_date_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_sold_date_sk is not null)
+                                                    TableScan [TS_14] 
(rows=575995635 width=7)
                                                       
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_customer_sk"]
                                                     <-Reducer 16 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_203]
-                                                        Group By Operator 
[GBY_202] (rows=1 width=12)
+                                                      BROADCAST [RS_204]
+                                                        Group By Operator 
[GBY_203] (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_199]
-                                                            Group By Operator 
[GBY_196] (rows=1 width=12)
+                                                          
PARTITION_ONLY_SHUFFLE [RS_200]
+                                                            Group By Operator 
[GBY_197] (rows=1 width=12)
                                                               
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_191] (rows=217 width=4)
+                                                              Select Operator 
[SEL_192] (rows=217 width=4)
                                                                 
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_189]
+                                                                 Please refer 
to the previous Select Operator [SEL_190]
                                     <-Reducer 3 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_53]
+                                      SHUFFLE [RS_54]
                                         PartitionCols:_col0
-                                        Merge Join Operator [MERGEJOIN_174] 
(rows=78293105 width=272)
-                                          
Conds:RS_48._col1=RS_187._col0(Inner),Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10"]
-                                        <-Map 12 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_187]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_186] 
(rows=1861800 width=186)
-                                              
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                              TableScan [TS_5] (rows=1861800 
width=186)
-                                                
default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_dep_count","cd_dep_employed_count","cd_dep_college_count"]
-                                        <-Reducer 2 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_48]
-                                            PartitionCols:_col1
-                                            Merge Join Operator 
[MERGEJOIN_173] (rows=77201384 width=93)
-                                              
Conds:RS_183._col2=RS_185._col0(Inner),Output:["_col0","_col1","_col4"]
-                                            <-Map 1 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_183]
-                                                PartitionCols:_col2
-                                                Select Operator [SEL_182] 
(rows=77201384 width=11)
-                                                  
Output:["_col0","_col1","_col2"]
-                                                  Filter Operator [FIL_181] 
(rows=77201384 width=11)
-                                                    
predicate:(c_current_addr_sk is not null and c_current_cdemo_sk is not null)
-                                                    TableScan [TS_0] 
(rows=80000000 width=11)
-                                                      
default@customer,c,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk"]
-                                            <-Map 11 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_185]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_184] 
(rows=40000000 width=90)
-                                                  Output:["_col0","_col1"]
-                                                  TableScan [TS_3] 
(rows=40000000 width=90)
-                                                    
default@customer_address,ca,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_state"]
+                                        Select Operator [SEL_13] 
(rows=78293105 width=272)
+                                          
Output:["_col0","_col4","_col6","_col7","_col8","_col9","_col10"]
+                                          Merge Join Operator [MERGEJOIN_175] 
(rows=78293105 width=272)
+                                            
Conds:RS_10._col2=RS_188._col0(Inner),Output:["_col0","_col4","_col5","_col6","_col7","_col8","_col10"]
+                                          <-Map 12 [SIMPLE_EDGE] vectorized
+                                            SHUFFLE [RS_188]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_187] 
(rows=40000000 width=90)
+                                                Output:["_col0","_col1"]
+                                                TableScan [TS_5] 
(rows=40000000 width=90)
+                                                  
default@customer_address,ca,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_state"]
+                                          <-Reducer 2 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_10]
+                                              PartitionCols:_col2
+                                              Merge Join Operator 
[MERGEJOIN_174] (rows=78293105 width=190)
+                                                
Conds:RS_184._col1=RS_186._col0(Inner),Output:["_col0","_col2","_col4","_col5","_col6","_col7","_col8"]
+                                              <-Map 1 [SIMPLE_EDGE] vectorized
+                                                SHUFFLE [RS_184]
+                                                  PartitionCols:_col1
+                                                  Select Operator [SEL_183] 
(rows=77201384 width=11)
+                                                    
Output:["_col0","_col1","_col2"]
+                                                    Filter Operator [FIL_182] 
(rows=77201384 width=11)
+                                                      
predicate:(c_current_addr_sk is not null and c_current_cdemo_sk is not null)
+                                                      TableScan [TS_0] 
(rows=80000000 width=11)
+                                                        
default@customer,c,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk"]
+                                              <-Map 11 [SIMPLE_EDGE] vectorized
+                                                SHUFFLE [RS_186]
+                                                  PartitionCols:_col0
+                                                  Select Operator [SEL_185] 
(rows=1861800 width=186)
+                                                    
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                    TableScan [TS_3] 
(rows=1861800 width=186)
+                                                      
default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_dep_count","cd_dep_employed_count","cd_dep_college_count"]
                                 <-Reducer 18 [ONE_TO_ONE_EDGE] vectorized
-                                  FORWARD [RS_216]
+                                  FORWARD [RS_217]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_215] (rows=168231 
width=7)
+                                    Select Operator [SEL_216] (rows=168231 
width=7)
                                       Output:["_col0","_col1"]
-                                      Group By Operator [GBY_214] (rows=168231 
width=3)
+                                      Group By Operator [GBY_215] (rows=168231 
width=3)
                                         Output:["_col0"],keys:KEY._col0
                                       <-Reducer 17 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_28]
+                                        SHUFFLE [RS_35]
                                           PartitionCols:_col0
-                                          Group By Operator [GBY_27] 
(rows=168231 width=3)
+                                          Group By Operator [GBY_34] 
(rows=168231 width=3)
                                             Output:["_col0"],keys:_col1
-                                            Merge Join Operator 
[MERGEJOIN_176] (rows=17104380 width=3)
-                                              
Conds:RS_213._col0=RS_192._col0(Inner),Output:["_col1"]
+                                            Merge Join Operator 
[MERGEJOIN_177] (rows=17104380 width=3)
+                                              
Conds:RS_214._col0=RS_193._col0(Inner),Output:["_col1"]
                                             <-Map 15 [SIMPLE_EDGE] vectorized
-                                              PARTITION_ONLY_SHUFFLE [RS_192]
+                                              PARTITION_ONLY_SHUFFLE [RS_193]
                                                 PartitionCols:_col0
-                                                 Please refer to the previous 
Select Operator [SEL_189]
+                                                 Please refer to the previous 
Select Operator [SEL_190]
                                             <-Map 23 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_213]
+                                              SHUFFLE [RS_214]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_212] 
(rows=143930993 width=7)
+                                                Select Operator [SEL_213] 
(rows=143930993 width=7)
                                                   Output:["_col0","_col1"]
-                                                  Filter Operator [FIL_211] 
(rows=143930993 width=7)
-                                                    
predicate:((ws_bill_customer_sk BETWEEN DynamicValue(RS_56_c_c_customer_sk_min) 
AND DynamicValue(RS_56_c_c_customer_sk_max) and 
in_bloom_filter(ws_bill_customer_sk, 
DynamicValue(RS_56_c_c_customer_sk_bloom_filter))) and (ws_sold_date_sk BETWEEN 
DynamicValue(RS_24_date_dim_d_date_sk_min) AND 
DynamicValue(RS_24_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_24_date_dim_d_date_sk_bloom_filter))) and ws_bill_customer_sk 
is not null and ws_sold_date_sk is not null)
-                                                    TableScan [TS_17] 
(rows=144002668 width=7)
+                                                  Filter Operator [FIL_212] 
(rows=143930993 width=7)
+                                                    
predicate:((ws_bill_customer_sk BETWEEN DynamicValue(RS_57_c_c_customer_sk_min) 
AND DynamicValue(RS_57_c_c_customer_sk_max) and 
in_bloom_filter(ws_bill_customer_sk, 
DynamicValue(RS_57_c_c_customer_sk_bloom_filter))) and (ws_sold_date_sk BETWEEN 
DynamicValue(RS_31_date_dim_d_date_sk_min) AND 
DynamicValue(RS_31_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_31_date_dim_d_date_sk_bloom_filter))) and ws_bill_customer_sk 
is not null and ws_sold_date_sk is not null)
+                                                    TableScan [TS_24] 
(rows=144002668 width=7)
                                                       
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk"]
                                                     <-Reducer 10 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_210]
-                                                        Group By Operator 
[GBY_209] (rows=1 width=12)
+                                                      BROADCAST [RS_211]
+                                                        Group By Operator 
[GBY_210] (rows=1 width=12)
                                                           
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
                                                         <-Reducer 4 
[CUSTOM_SIMPLE_EDGE]
-                                                          FORWARD [RS_150]
-                                                            Group By Operator 
[GBY_149] (rows=1 width=12)
+                                                          FORWARD [RS_151]
+                                                            Group By Operator 
[GBY_150] (rows=1 width=12)
                                                               
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_148] (rows=162346 width=4)
+                                                              Select Operator 
[SEL_149] (rows=162346 width=4)
                                                                 
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_178]
+                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_179]
                                                     <-Reducer 19 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_208]
-                                                        Group By Operator 
[GBY_207] (rows=1 width=12)
+                                                      BROADCAST [RS_209]
+                                                        Group By Operator 
[GBY_208] (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_200]
-                                                            Group By Operator 
[GBY_197] (rows=1 width=12)
+                                                          
PARTITION_ONLY_SHUFFLE [RS_201]
+                                                            Group By Operator 
[GBY_198] (rows=1 width=12)
                                                               
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_193] (rows=217 width=4)
+                                                              Select Operator 
[SEL_194] (rows=217 width=4)
                                                                 
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_189]
+                                                                 Please refer 
to the previous Select Operator [SEL_190]
                             <-Reducer 21 [ONE_TO_ONE_EDGE] vectorized
-                              FORWARD [RS_226]
+                              FORWARD [RS_227]
                                 PartitionCols:_col0
-                                Select Operator [SEL_225] (rows=167041 width=7)
+                                Select Operator [SEL_226] (rows=167041 width=7)
                                   Output:["_col0","_col1"]
-                                  Group By Operator [GBY_224] (rows=167041 
width=3)
+                                  Group By Operator [GBY_225] (rows=167041 
width=3)
                                     Output:["_col0"],keys:KEY._col0
                                   <-Reducer 20 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_42]
+                                    SHUFFLE [RS_49]
                                       PartitionCols:_col0
-                                      Group By Operator [GBY_41] (rows=167041 
width=3)
+                                      Group By Operator [GBY_48] (rows=167041 
width=3)
                                         Output:["_col0"],keys:_col1
-                                        Merge Join Operator [MERGEJOIN_177] 
(rows=33642830 width=3)
-                                          
Conds:RS_223._col0=RS_194._col0(Inner),Output:["_col1"]
+                                        Merge Join Operator [MERGEJOIN_178] 
(rows=33642830 width=3)
+                                          
Conds:RS_224._col0=RS_195._col0(Inner),Output:["_col1"]
                                         <-Map 15 [SIMPLE_EDGE] vectorized
-                                          PARTITION_ONLY_SHUFFLE [RS_194]
+                                          PARTITION_ONLY_SHUFFLE [RS_195]
                                             PartitionCols:_col0
-                                             Please refer to the previous 
Select Operator [SEL_189]
+                                             Please refer to the previous 
Select Operator [SEL_190]
                                         <-Map 24 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_223]
+                                          SHUFFLE [RS_224]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_222] 
(rows=285115246 width=7)
+                                            Select Operator [SEL_223] 
(rows=285115246 width=7)
                                               Output:["_col0","_col1"]
-                                              Filter Operator [FIL_221] 
(rows=285115246 width=7)
-                                                
predicate:((cs_ship_customer_sk BETWEEN DynamicValue(RS_59_c_c_customer_sk_min) 
AND DynamicValue(RS_59_c_c_customer_sk_max) and 
in_bloom_filter(cs_ship_customer_sk, 
DynamicValue(RS_59_c_c_customer_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN 
DynamicValue(RS_38_date_dim_d_date_sk_min) AND 
DynamicValue(RS_38_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_38_date_dim_d_date_sk_bloom_filter))) and cs_ship_customer_sk 
is not null and cs_sold_date_sk is not null)
-                                                TableScan [TS_31] 
(rows=287989836 width=7)
+                                              Filter Operator [FIL_222] 
(rows=285115246 width=7)
+                                                
predicate:((cs_ship_customer_sk BETWEEN DynamicValue(RS_60_c_c_customer_sk_min) 
AND DynamicValue(RS_60_c_c_customer_sk_max) and 
in_bloom_filter(cs_ship_customer_sk, 
DynamicValue(RS_60_c_c_customer_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN 
DynamicValue(RS_45_date_dim_d_date_sk_min) AND 
DynamicValue(RS_45_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_45_date_dim_d_date_sk_bloom_filter))) and cs_ship_customer_sk 
is not null and cs_sold_date_sk is not null)
+                                                TableScan [TS_38] 
(rows=287989836 width=7)
                                                   
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_ship_customer_sk"]
                                                 <-Reducer 22 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_218]
-                                                    Group By Operator 
[GBY_217] (rows=1 width=12)
+                                                  BROADCAST [RS_219]
+                                                    Group By Operator 
[GBY_218] (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_201]
-                                                        Group By Operator 
[GBY_198] (rows=1 width=12)
+                                                      PARTITION_ONLY_SHUFFLE 
[RS_202]
+                                                        Group By Operator 
[GBY_199] (rows=1 width=12)
                                                           
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_195] (rows=217 width=4)
+                                                          Select Operator 
[SEL_196] (rows=217 width=4)
                                                             Output:["_col0"]
-                                                             Please refer to 
the previous Select Operator [SEL_189]
+                                                             Please refer to 
the previous Select Operator [SEL_190]
                                                 <-Reducer 9 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_220]
-                                                    Group By Operator 
[GBY_219] (rows=1 width=12)
+                                                  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)"]
                                                     <-Reducer 5 
[CUSTOM_SIMPLE_EDGE]
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_165]
-                                                        Group By Operator 
[GBY_164] (rows=1 width=12)
+                                                      PARTITION_ONLY_SHUFFLE 
[RS_166]
+                                                        Group By Operator 
[GBY_165] (rows=1 width=12)
                                                           
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_163] (rows=68 width=4)
+                                                          Select Operator 
[SEL_164] (rows=68 width=4)
                                                             Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_179]
+                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_180]
 

Reply via email to