http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query4.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query4.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query4.q.out
index 2f8ab17..e6558e9 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query4.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query4.q.out
@@ -229,10 +229,10 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Reducer 34 (BROADCAST_EDGE)
-Map 11 <- Reducer 35 (BROADCAST_EDGE)
-Map 15 <- Reducer 36 (BROADCAST_EDGE)
-Map 19 <- Reducer 37 (BROADCAST_EDGE)
+Map 1 <- Reducer 35 (BROADCAST_EDGE)
+Map 11 <- Reducer 36 (BROADCAST_EDGE)
+Map 15 <- Reducer 37 (BROADCAST_EDGE)
+Map 19 <- Reducer 34 (BROADCAST_EDGE)
 Map 23 <- Reducer 33 (BROADCAST_EDGE)
 Map 27 <- Reducer 32 (BROADCAST_EDGE)
 Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
@@ -281,9 +281,9 @@ Stage-0
               Select Operator [SEL_134] (rows=7323197 width=85)
                 Output:["_col0"]
                 Filter Operator [FIL_133] (rows=7323197 width=537)
-                  predicate:CASE WHEN (_col3 is not null) THEN (CASE WHEN 
(_col9) THEN (((_col11 / _col8) > (_col14 / _col3))) ELSE ((null > (_col14 / 
_col3))) END) ELSE (CASE WHEN (_col9) THEN (((_col11 / _col8) > null)) ELSE 
(null) END) END
+                  predicate:CASE WHEN (_col4 is not null) THEN (CASE WHEN 
(_col7) THEN (((_col9 / _col6) > (_col14 / _col4))) ELSE ((null > (_col14 / 
_col4))) END) ELSE (CASE WHEN (_col7) THEN (((_col9 / _col6) > null)) ELSE 
(null) END) END
                   Merge Join Operator [MERGEJOIN_466] (rows=14646395 width=537)
-                    
Conds:RS_130._col2=RS_547._col0(Inner),Output:["_col3","_col8","_col9","_col11","_col13","_col14"]
+                    
Conds:RS_130._col3=RS_547._col0(Inner),Output:["_col4","_col6","_col7","_col9","_col13","_col14"]
                   <-Reducer 30 [SIMPLE_EDGE] vectorized
                     SHUFFLE [RS_547]
                       PartitionCols:_col0
@@ -341,24 +341,24 @@ Stage-0
                                                        Please refer to the 
previous Select Operator [SEL_471]
                   <-Reducer 8 [ONE_TO_ONE_EDGE]
                     FORWARD [RS_130]
-                      PartitionCols:_col2
+                      PartitionCols:_col3
                       Filter Operator [FIL_129] (rows=12248093 width=668)
-                        predicate:CASE WHEN (_col6) THEN (CASE WHEN (_col9) 
THEN (((_col11 / _col8) > (_col1 / _col5))) ELSE ((null > (_col1 / _col5))) 
END) ELSE (CASE WHEN (_col9) THEN (((_col11 / _col8) > null)) ELSE (null) END) 
END
-                        Merge Join Operator [MERGEJOIN_465] (rows=24496186 
width=668)
-                          
Conds:RS_126._col2=RS_541._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col8","_col9","_col11"]
+                        predicate:CASE WHEN (_col2) THEN (CASE WHEN (_col7) 
THEN (((_col9 / _col6) > (_col11 / _col1))) ELSE ((null > (_col11 / _col1))) 
END) ELSE (CASE WHEN (_col7) THEN (((_col9 / _col6) > null)) ELSE (null) END) 
END
+                        Merge Join Operator [MERGEJOIN_465] (rows=24496187 
width=668)
+                          
Conds:RS_126._col3=RS_541._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7","_col9","_col11"]
                         <-Reducer 26 [SIMPLE_EDGE] vectorized
                           SHUFFLE [RS_541]
                             PartitionCols:_col0
-                            Select Operator [SEL_540] (rows=80000000 width=212)
+                            Select Operator [SEL_540] (rows=51391963 width=212)
                               Output:["_col0","_col1"]
-                              Group By Operator [GBY_539] (rows=80000000 
width=764)
+                              Group By Operator [GBY_539] (rows=51391963 
width=764)
                                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                               <-Reducer 25 [SIMPLE_EDGE]
                                 SHUFFLE [RS_95]
                                   PartitionCols:_col0, _col1, _col2, _col3, 
_col4, _col5, _col6
-                                  Group By Operator [GBY_94] (rows=80000000 
width=764)
+                                  Group By Operator [GBY_94] (rows=51391963 
width=764)
                                     
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
-                                    Merge Join Operator [MERGEJOIN_459] 
(rows=101084444 width=764)
+                                    Merge Join Operator [MERGEJOIN_459] 
(rows=51391963 width=764)
                                       
Conds:RS_90._col1=RS_504._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
                                     <-Map 38 [SIMPLE_EDGE] vectorized
                                       SHUFFLE [RS_504]
@@ -367,7 +367,7 @@ Stage-0
                                     <-Reducer 24 [SIMPLE_EDGE]
                                       SHUFFLE [RS_90]
                                         PartitionCols:_col1
-                                        Merge Join Operator [MERGEJOIN_458] 
(rows=101084444 width=115)
+                                        Merge Join Operator [MERGEJOIN_458] 
(rows=51391963 width=115)
                                           
Conds:RS_87._col0=RS_477._col0(Inner),Output:["_col1","_col2"]
                                         <-Map 31 [SIMPLE_EDGE] vectorized
                                           PARTITION_ONLY_SHUFFLE [RS_477]
@@ -376,12 +376,12 @@ Stage-0
                                         <-Map 23 [SIMPLE_EDGE]
                                           SHUFFLE [RS_87]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_81] 
(rows=285117831 width=119)
+                                            Select Operator [SEL_81] 
(rows=143930993 width=119)
                                               Output:["_col0","_col1","_col2"]
-                                              Filter Operator [FIL_241] 
(rows=285117831 width=453)
-                                                predicate:((cs_sold_date_sk 
BETWEEN DynamicValue(RS_88_date_dim_d_date_sk_min) AND 
DynamicValue(RS_88_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_88_date_dim_d_date_sk_bloom_filter))) and cs_bill_customer_sk 
is not null and cs_sold_date_sk is not null)
-                                                TableScan [TS_79] 
(rows=287989836 width=453)
-                                                  
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
+                                              Filter Operator [FIL_241] 
(rows=143930993 width=455)
+                                                predicate:((ws_sold_date_sk 
BETWEEN DynamicValue(RS_88_date_dim_d_date_sk_min) AND 
DynamicValue(RS_88_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_88_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_79] 
(rows=144002668 width=455)
+                                                  
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
                                                 <-Reducer 33 [BROADCAST_EDGE] 
vectorized
                                                   BROADCAST [RS_537]
                                                     Group By Operator 
[GBY_536] (rows=1 width=12)
@@ -395,176 +395,223 @@ Stage-0
                                                              Please refer to 
the previous Select Operator [SEL_471]
                         <-Reducer 7 [ONE_TO_ONE_EDGE]
                           FORWARD [RS_126]
-                            PartitionCols:_col2
-                            Merge Join Operator [MERGEJOIN_464] (rows=20485011 
width=556)
-                              
Conds:RS_123._col2=RS_535._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col8","_col9"]
+                            PartitionCols:_col3
+                            Merge Join Operator [MERGEJOIN_464] (rows=20485012 
width=556)
+                              
Conds:RS_123._col3=RS_535._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7","_col9"]
                             <-Reducer 22 [SIMPLE_EDGE] vectorized
                               SHUFFLE [RS_535]
                                 PartitionCols:_col0
-                                Select Operator [SEL_534] (rows=26666666 
width=216)
-                                  Output:["_col0","_col1","_col2"]
-                                  Filter Operator [FIL_533] (rows=26666666 
width=212)
-                                    predicate:(_col7 > 0)
-                                    Select Operator [SEL_532] (rows=80000000 
width=212)
-                                      Output:["_col0","_col7"]
-                                      Group By Operator [GBY_531] 
(rows=80000000 width=764)
-                                        
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
-                                      <-Reducer 21 [SIMPLE_EDGE]
-                                        SHUFFLE [RS_75]
-                                          PartitionCols:_col0, _col1, _col2, 
_col3, _col4, _col5, _col6
-                                          Group By Operator [GBY_74] 
(rows=80000000 width=764)
-                                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
-                                            Merge Join Operator 
[MERGEJOIN_457] (rows=101084444 width=764)
-                                              
Conds:RS_70._col1=RS_508._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                                            <-Map 38 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_508]
+                                Select Operator [SEL_534] (rows=80000000 
width=212)
+                                  Output:["_col0","_col1"]
+                                  Group By Operator [GBY_533] (rows=80000000 
width=764)
+                                    
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
+                                  <-Reducer 21 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_76]
+                                      PartitionCols:_col0, _col1, _col2, 
_col3, _col4, _col5, _col6
+                                      Group By Operator [GBY_75] 
(rows=80000000 width=764)
+                                        
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
+                                        Merge Join Operator [MERGEJOIN_457] 
(rows=101084444 width=764)
+                                          
Conds:RS_71._col1=RS_505._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
+                                        <-Map 38 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_505]
+                                            PartitionCols:_col0
+                                             Please refer to the previous 
Select Operator [SEL_502]
+                                        <-Reducer 20 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_71]
+                                            PartitionCols:_col1
+                                            Merge Join Operator 
[MERGEJOIN_456] (rows=101084444 width=115)
+                                              
Conds:RS_68._col0=RS_479._col0(Inner),Output:["_col1","_col2"]
+                                            <-Map 31 [SIMPLE_EDGE] vectorized
+                                              PARTITION_ONLY_SHUFFLE [RS_479]
                                                 PartitionCols:_col0
-                                                 Please refer to the previous 
Select Operator [SEL_502]
-                                            <-Reducer 20 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_70]
-                                                PartitionCols:_col1
-                                                Merge Join Operator 
[MERGEJOIN_456] (rows=101084444 width=115)
-                                                  
Conds:RS_67._col0=RS_485._col0(Inner),Output:["_col1","_col2"]
-                                                <-Map 31 [SIMPLE_EDGE] 
vectorized
-                                                  PARTITION_ONLY_SHUFFLE 
[RS_485]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_474] 
(rows=652 width=4)
-                                                      Output:["_col0"]
-                                                      Filter Operator 
[FIL_470] (rows=652 width=8)
-                                                        predicate:(d_year = 
2001)
-                                                         Please refer to the 
previous TableScan [TS_101]
-                                                <-Map 19 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_67]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_61] 
(rows=285117831 width=119)
-                                                      
Output:["_col0","_col1","_col2"]
-                                                      Filter Operator 
[FIL_238] (rows=285117831 width=453)
-                                                        
predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_68_date_dim_d_date_sk_min) 
AND DynamicValue(RS_68_date_dim_d_date_sk_max) and 
in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_68_date_dim_d_date_sk_bloom_filter))) and cs_bill_customer_sk 
is not null and cs_sold_date_sk is not null)
-                                                        TableScan [TS_59] 
(rows=287989836 width=453)
-                                                          
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
-                                                        <-Reducer 37 
[BROADCAST_EDGE] vectorized
-                                                          BROADCAST [RS_529]
-                                                            Group By Operator 
[GBY_528] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                            <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                              
PARTITION_ONLY_SHUFFLE [RS_498]
-                                                                Group By 
Operator [GBY_492] (rows=1 width=12)
-                                                                  
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                                  Select 
Operator [SEL_486] (rows=652 width=4)
-                                                                    
Output:["_col0"]
-                                                                     Please 
refer to the previous Select Operator [SEL_474]
+                                                 Please refer to the previous 
Select Operator [SEL_471]
+                                            <-Map 19 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_68]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_62] 
(rows=285117831 width=119)
+                                                  
Output:["_col0","_col1","_col2"]
+                                                  Filter Operator [FIL_238] 
(rows=285117831 width=453)
+                                                    
predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_69_date_dim_d_date_sk_min) 
AND DynamicValue(RS_69_date_dim_d_date_sk_max) and 
in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_69_date_dim_d_date_sk_bloom_filter))) and cs_bill_customer_sk 
is not null and cs_sold_date_sk is not null)
+                                                    TableScan [TS_60] 
(rows=287989836 width=453)
+                                                      
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
+                                                    <-Reducer 34 
[BROADCAST_EDGE] vectorized
+                                                      BROADCAST [RS_531]
+                                                        Group By Operator 
[GBY_530] (rows=1 width=12)
+                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                        <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                          
PARTITION_ONLY_SHUFFLE [RS_495]
+                                                            Group By Operator 
[GBY_489] (rows=1 width=12)
+                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                              Select Operator 
[SEL_480] (rows=652 width=4)
+                                                                
Output:["_col0"]
+                                                                 Please refer 
to the previous Select Operator [SEL_471]
                             <-Reducer 6 [ONE_TO_ONE_EDGE]
                               FORWARD [RS_123]
-                                PartitionCols:_col2
-                                Merge Join Operator [MERGEJOIN_463] 
(rows=20485011 width=440)
-                                  
Conds:RS_120._col2=RS_527._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6"]
+                                PartitionCols:_col3
+                                Merge Join Operator [MERGEJOIN_463] 
(rows=17130654 width=444)
+                                  
Conds:RS_120._col3=RS_529._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7"]
                                 <-Reducer 18 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_527]
+                                  SHUFFLE [RS_529]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_526] (rows=17130654 
width=216)
+                                    Select Operator [SEL_528] (rows=26666666 
width=216)
                                       Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_525] (rows=17130654 
width=212)
+                                      Filter Operator [FIL_527] (rows=26666666 
width=212)
                                         predicate:(_col7 > 0)
-                                        Select Operator [SEL_524] 
(rows=51391963 width=212)
+                                        Select Operator [SEL_526] 
(rows=80000000 width=212)
                                           Output:["_col0","_col7"]
-                                          Group By Operator [GBY_523] 
(rows=51391963 width=764)
+                                          Group By Operator [GBY_525] 
(rows=80000000 width=764)
                                             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                                           <-Reducer 17 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_55]
+                                            SHUFFLE [RS_56]
                                               PartitionCols:_col0, _col1, 
_col2, _col3, _col4, _col5, _col6
-                                              Group By Operator [GBY_54] 
(rows=51391963 width=764)
+                                              Group By Operator [GBY_55] 
(rows=80000000 width=764)
                                                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
-                                                Merge Join Operator 
[MERGEJOIN_455] (rows=51391963 width=764)
-                                                  
Conds:RS_50._col1=RS_507._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
+                                                Merge Join Operator 
[MERGEJOIN_455] (rows=101084444 width=764)
+                                                  
Conds:RS_51._col1=RS_508._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
                                                 <-Map 38 [SIMPLE_EDGE] 
vectorized
-                                                  SHUFFLE [RS_507]
+                                                  SHUFFLE [RS_508]
                                                     PartitionCols:_col0
                                                      Please refer to the 
previous Select Operator [SEL_502]
                                                 <-Reducer 16 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_50]
+                                                  SHUFFLE [RS_51]
                                                     PartitionCols:_col1
-                                                    Merge Join Operator 
[MERGEJOIN_454] (rows=51391963 width=115)
-                                                      
Conds:RS_47._col0=RS_483._col0(Inner),Output:["_col1","_col2"]
+                                                    Merge Join Operator 
[MERGEJOIN_454] (rows=101084444 width=115)
+                                                      
Conds:RS_48._col0=RS_485._col0(Inner),Output:["_col1","_col2"]
                                                     <-Map 31 [SIMPLE_EDGE] 
vectorized
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_483]
+                                                      PARTITION_ONLY_SHUFFLE 
[RS_485]
                                                         PartitionCols:_col0
-                                                        Select Operator 
[SEL_473] (rows=652 width=4)
+                                                        Select Operator 
[SEL_474] (rows=652 width=4)
                                                           Output:["_col0"]
-                                                          Filter Operator 
[FIL_469] (rows=652 width=8)
+                                                          Filter Operator 
[FIL_470] (rows=652 width=8)
                                                             predicate:(d_year 
= 2001)
                                                              Please refer to 
the previous TableScan [TS_101]
                                                     <-Map 15 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_47]
+                                                      SHUFFLE [RS_48]
                                                         PartitionCols:_col0
-                                                        Select Operator 
[SEL_41] (rows=143930993 width=119)
+                                                        Select Operator 
[SEL_42] (rows=285117831 width=119)
                                                           
Output:["_col0","_col1","_col2"]
-                                                          Filter Operator 
[FIL_235] (rows=143930993 width=455)
-                                                            
predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_48_date_dim_d_date_sk_min) 
AND DynamicValue(RS_48_date_dim_d_date_sk_max) and 
in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_48_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_39] 
(rows=144002668 width=455)
-                                                              
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
-                                                            <-Reducer 36 
[BROADCAST_EDGE] vectorized
-                                                              BROADCAST 
[RS_521]
-                                                                Group By 
Operator [GBY_520] (rows=1 width=12)
+                                                          Filter Operator 
[FIL_235] (rows=285117831 width=453)
+                                                            
predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_49_date_dim_d_date_sk_min) 
AND DynamicValue(RS_49_date_dim_d_date_sk_max) and 
in_bloom_filter(cs_sold_date_sk, 
DynamicValue(RS_49_date_dim_d_date_sk_bloom_filter))) and cs_bill_customer_sk 
is not null and cs_sold_date_sk is not null)
+                                                            TableScan [TS_40] 
(rows=287989836 width=453)
+                                                              
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_ext_discount_amt","cs_ext_sales_price","cs_ext_wholesale_cost","cs_ext_list_price"]
+                                                            <-Reducer 37 
[BROADCAST_EDGE] vectorized
+                                                              BROADCAST 
[RS_523]
+                                                                Group By 
Operator [GBY_522] (rows=1 width=12)
                                                                   
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
                                                                 <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                                  
PARTITION_ONLY_SHUFFLE [RS_497]
-                                                                    Group By 
Operator [GBY_491] (rows=1 width=12)
+                                                                  
PARTITION_ONLY_SHUFFLE [RS_498]
+                                                                    Group By 
Operator [GBY_492] (rows=1 width=12)
                                                                       
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                                      Select 
Operator [SEL_484] (rows=652 width=4)
+                                                                      Select 
Operator [SEL_486] (rows=652 width=4)
                                                                         
Output:["_col0"]
-                                                                         
Please refer to the previous Select Operator [SEL_473]
+                                                                         
Please refer to the previous Select Operator [SEL_474]
                                 <-Reducer 5 [ONE_TO_ONE_EDGE]
                                   FORWARD [RS_120]
-                                    PartitionCols:_col2
-                                    Merge Join Operator [MERGEJOIN_462] 
(rows=31888273 width=324)
-                                      
Conds:RS_511._col0=RS_519._col0(Inner),Output:["_col1","_col2","_col3"]
+                                    PartitionCols:_col3
+                                    Merge Join Operator [MERGEJOIN_462] 
(rows=17130654 width=328)
+                                      
Conds:RS_513._col0=RS_521._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
                                     <-Reducer 14 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_519]
+                                      SHUFFLE [RS_521]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_518] 
(rows=26666666 width=212)
+                                        Select Operator [SEL_520] 
(rows=26666666 width=212)
                                           Output:["_col0","_col1"]
-                                          Filter Operator [FIL_517] 
(rows=26666666 width=212)
+                                          Filter Operator [FIL_519] 
(rows=26666666 width=212)
                                             predicate:(_col7 > 0)
-                                            Select Operator [SEL_516] 
(rows=80000000 width=212)
+                                            Select Operator [SEL_518] 
(rows=80000000 width=212)
                                               Output:["_col0","_col7"]
-                                              Group By Operator [GBY_515] 
(rows=80000000 width=764)
+                                              Group By Operator [GBY_517] 
(rows=80000000 width=764)
                                                 
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
                                               <-Reducer 13 [SIMPLE_EDGE]
-                                                SHUFFLE [RS_35]
+                                                SHUFFLE [RS_36]
                                                   PartitionCols:_col0, _col1, 
_col2, _col3, _col4, _col5, _col6
-                                                  Group By Operator [GBY_34] 
(rows=80000000 width=764)
+                                                  Group By Operator [GBY_35] 
(rows=80000000 width=764)
                                                     
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
                                                     Merge Join Operator 
[MERGEJOIN_453] (rows=187573258 width=764)
-                                                      
Conds:RS_30._col1=RS_506._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
+                                                      
Conds:RS_31._col1=RS_507._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
                                                     <-Map 38 [SIMPLE_EDGE] 
vectorized
-                                                      SHUFFLE [RS_506]
+                                                      SHUFFLE [RS_507]
                                                         PartitionCols:_col0
                                                          Please refer to the 
previous Select Operator [SEL_502]
                                                     <-Reducer 12 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_30]
+                                                      SHUFFLE [RS_31]
                                                         PartitionCols:_col1
                                                         Merge Join Operator 
[MERGEJOIN_452] (rows=187573258 width=115)
-                                                          
Conds:RS_27._col0=RS_481._col0(Inner),Output:["_col1","_col2"]
+                                                          
Conds:RS_28._col0=RS_483._col0(Inner),Output:["_col1","_col2"]
                                                         <-Map 31 [SIMPLE_EDGE] 
vectorized
-                                                          
PARTITION_ONLY_SHUFFLE [RS_481]
+                                                          
PARTITION_ONLY_SHUFFLE [RS_483]
                                                             PartitionCols:_col0
-                                                            Select Operator 
[SEL_472] (rows=652 width=4)
+                                                            Select Operator 
[SEL_473] (rows=652 width=4)
                                                               Output:["_col0"]
-                                                              Filter Operator 
[FIL_468] (rows=652 width=8)
+                                                              Filter Operator 
[FIL_469] (rows=652 width=8)
                                                                 
predicate:(d_year = 2001)
                                                                  Please refer 
to the previous TableScan [TS_101]
                                                         <-Map 11 [SIMPLE_EDGE]
-                                                          SHUFFLE [RS_27]
+                                                          SHUFFLE [RS_28]
                                                             PartitionCols:_col0
-                                                            Select Operator 
[SEL_21] (rows=525327388 width=119)
+                                                            Select Operator 
[SEL_22] (rows=525327388 width=119)
                                                               
Output:["_col0","_col1","_col2"]
                                                               Filter Operator 
[FIL_232] (rows=525327388 width=435)
-                                                                
predicate:((ss_sold_date_sk BETWEEN DynamicValue(RS_28_date_dim_d_date_sk_min) 
AND DynamicValue(RS_28_date_dim_d_date_sk_max) and 
in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_28_date_dim_d_date_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_sold_date_sk is not null)
-                                                                TableScan 
[TS_19] (rows=575995635 width=435)
+                                                                
predicate:((ss_sold_date_sk BETWEEN DynamicValue(RS_29_date_dim_d_date_sk_min) 
AND DynamicValue(RS_29_date_dim_d_date_sk_max) and 
in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_29_date_dim_d_date_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_sold_date_sk is not null)
+                                                                TableScan 
[TS_20] (rows=575995635 width=435)
                                                                   
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_customer_sk","ss_ext_discount_amt","ss_ext_sales_price","ss_ext_wholesale_cost","ss_ext_list_price"]
+                                                                <-Reducer 36 
[BROADCAST_EDGE] vectorized
+                                                                  BROADCAST 
[RS_515]
+                                                                    Group By 
Operator [GBY_514] (rows=1 width=12)
+                                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                                    <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                                      
PARTITION_ONLY_SHUFFLE [RS_497]
+                                                                        Group 
By Operator [GBY_491] (rows=1 width=12)
+                                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                                          
Select Operator [SEL_484] (rows=652 width=4)
+                                                                            
Output:["_col0"]
+                                                                             
Please refer to the previous Select Operator [SEL_473]
+                                    <-Reducer 4 [SIMPLE_EDGE] vectorized
+                                      SHUFFLE [RS_513]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_512] 
(rows=17130654 width=216)
+                                          Output:["_col0","_col1","_col2"]
+                                          Filter Operator [FIL_511] 
(rows=17130654 width=212)
+                                            predicate:(_col7 > 0)
+                                            Select Operator [SEL_510] 
(rows=51391963 width=212)
+                                              Output:["_col0","_col7"]
+                                              Group By Operator [GBY_509] 
(rows=51391963 width=764)
+                                                
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
+                                              <-Reducer 3 [SIMPLE_EDGE]
+                                                SHUFFLE [RS_16]
+                                                  PartitionCols:_col0, _col1, 
_col2, _col3, _col4, _col5, _col6
+                                                  Group By Operator [GBY_15] 
(rows=51391963 width=764)
+                                                    
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
+                                                    Merge Join Operator 
[MERGEJOIN_451] (rows=51391963 width=764)
+                                                      
Conds:RS_11._col1=RS_506._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
+                                                    <-Map 38 [SIMPLE_EDGE] 
vectorized
+                                                      SHUFFLE [RS_506]
+                                                        PartitionCols:_col0
+                                                         Please refer to the 
previous Select Operator [SEL_502]
+                                                    <-Reducer 2 [SIMPLE_EDGE]
+                                                      SHUFFLE [RS_11]
+                                                        PartitionCols:_col1
+                                                        Merge Join Operator 
[MERGEJOIN_450] (rows=51391963 width=115)
+                                                          
Conds:RS_8._col0=RS_481._col0(Inner),Output:["_col1","_col2"]
+                                                        <-Map 31 [SIMPLE_EDGE] 
vectorized
+                                                          
PARTITION_ONLY_SHUFFLE [RS_481]
+                                                            PartitionCols:_col0
+                                                            Select Operator 
[SEL_472] (rows=652 width=4)
+                                                              Output:["_col0"]
+                                                              Filter Operator 
[FIL_468] (rows=652 width=8)
+                                                                
predicate:(d_year = 2001)
+                                                                 Please refer 
to the previous TableScan [TS_101]
+                                                        <-Map 1 [SIMPLE_EDGE]
+                                                          SHUFFLE [RS_8]
+                                                            PartitionCols:_col0
+                                                            Select Operator 
[SEL_2] (rows=143930993 width=119)
+                                                              
Output:["_col0","_col1","_col2"]
+                                                              Filter Operator 
[FIL_229] (rows=143930993 width=455)
+                                                                
predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_9_date_dim_d_date_sk_min) 
AND DynamicValue(RS_9_date_dim_d_date_sk_max) and 
in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_9_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_0] (rows=144002668 width=455)
+                                                                  
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
                                                                 <-Reducer 35 
[BROADCAST_EDGE] vectorized
-                                                                  BROADCAST 
[RS_513]
-                                                                    Group By 
Operator [GBY_512] (rows=1 width=12)
+                                                                  BROADCAST 
[RS_500]
+                                                                    Group By 
Operator [GBY_499] (rows=1 width=12)
                                                                       
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
                                                                     <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
                                                                       
PARTITION_ONLY_SHUFFLE [RS_496]
@@ -573,51 +620,4 @@ Stage-0
                                                                           
Select Operator [SEL_482] (rows=652 width=4)
                                                                             
Output:["_col0"]
                                                                              
Please refer to the previous Select Operator [SEL_472]
-                                    <-Reducer 4 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_511]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_510] 
(rows=51391963 width=212)
-                                          Output:["_col0","_col1"]
-                                          Group By Operator [GBY_509] 
(rows=51391963 width=764)
-                                            
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6
-                                          <-Reducer 3 [SIMPLE_EDGE]
-                                            SHUFFLE [RS_16]
-                                              PartitionCols:_col0, _col1, 
_col2, _col3, _col4, _col5, _col6
-                                              Group By Operator [GBY_15] 
(rows=51391963 width=764)
-                                                
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col2)"],keys:_col5,
 _col6, _col7, _col8, _col9, _col10, _col11
-                                                Merge Join Operator 
[MERGEJOIN_451] (rows=51391963 width=764)
-                                                  
Conds:RS_11._col1=RS_505._col0(Inner),Output:["_col2","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                                                <-Map 38 [SIMPLE_EDGE] 
vectorized
-                                                  SHUFFLE [RS_505]
-                                                    PartitionCols:_col0
-                                                     Please refer to the 
previous Select Operator [SEL_502]
-                                                <-Reducer 2 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_11]
-                                                    PartitionCols:_col1
-                                                    Merge Join Operator 
[MERGEJOIN_450] (rows=51391963 width=115)
-                                                      
Conds:RS_8._col0=RS_479._col0(Inner),Output:["_col1","_col2"]
-                                                    <-Map 31 [SIMPLE_EDGE] 
vectorized
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_479]
-                                                        PartitionCols:_col0
-                                                         Please refer to the 
previous Select Operator [SEL_471]
-                                                    <-Map 1 [SIMPLE_EDGE]
-                                                      SHUFFLE [RS_8]
-                                                        PartitionCols:_col0
-                                                        Select Operator 
[SEL_2] (rows=143930993 width=119)
-                                                          
Output:["_col0","_col1","_col2"]
-                                                          Filter Operator 
[FIL_229] (rows=143930993 width=455)
-                                                            
predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_9_date_dim_d_date_sk_min) 
AND DynamicValue(RS_9_date_dim_d_date_sk_max) and 
in_bloom_filter(ws_sold_date_sk, 
DynamicValue(RS_9_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_0] 
(rows=144002668 width=455)
-                                                              
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk","ws_ext_discount_amt","ws_ext_sales_price","ws_ext_wholesale_cost","ws_ext_list_price"]
-                                                            <-Reducer 34 
[BROADCAST_EDGE] vectorized
-                                                              BROADCAST 
[RS_500]
-                                                                Group By 
Operator [GBY_499] (rows=1 width=12)
-                                                                  
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                                <-Map 31 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                                  
PARTITION_ONLY_SHUFFLE [RS_495]
-                                                                    Group By 
Operator [GBY_489] (rows=1 width=12)
-                                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                                      Select 
Operator [SEL_480] (rows=652 width=4)
-                                                                        
Output:["_col0"]
-                                                                         
Please refer to the previous Select Operator [SEL_471]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/5553c59e/ql/src/test/results/clientpositive/perf/tez/constraints/query45.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query45.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query45.q.out
index bf620c8..64d9c98 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query45.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query45.q.out
@@ -51,133 +51,133 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 11 <- Reducer 14 (BROADCAST_EDGE)
-Reducer 10 <- Map 7 (SIMPLE_EDGE)
-Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
-Reducer 14 <- Map 13 (CUSTOM_SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
-Reducer 8 <- Map 7 (SIMPLE_EDGE), Reducer 10 (ONE_TO_ONE_EDGE)
-Reducer 9 <- Reducer 12 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
+Map 9 <- Reducer 12 (BROADCAST_EDGE)
+Reducer 10 <- Map 11 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
+Reducer 12 <- Map 11 (CUSTOM_SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 8 (ONE_TO_ONE_EDGE)
+Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 14 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+Reducer 8 <- Map 1 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 5 vectorized
-      File Output Operator [FS_149]
-        Limit [LIM_148] (rows=100 width=299)
+      Reducer 7 vectorized
+      File Output Operator [FS_151]
+        Limit [LIM_150] (rows=100 width=299)
           Number of rows:100
-          Select Operator [SEL_147] (rows=285780 width=299)
+          Select Operator [SEL_149] (rows=1143120 width=299)
             Output:["_col0","_col1","_col2"]
-          <-Reducer 4 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_146]
-              Group By Operator [GBY_145] (rows=285780 width=299)
+          <-Reducer 6 [SIMPLE_EDGE] vectorized
+            SHUFFLE [RS_148]
+              Group By Operator [GBY_147] (rows=1143120 width=299)
                 
Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1
-              <-Reducer 3 [SIMPLE_EDGE]
-                SHUFFLE [RS_41]
+              <-Reducer 5 [SIMPLE_EDGE]
+                SHUFFLE [RS_40]
                   PartitionCols:_col0, _col1
-                  Group By Operator [GBY_40] (rows=3715140 width=299)
+                  Group By Operator [GBY_39] (rows=10246864 width=299)
                     
Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col8, _col7
-                    Top N Key Operator [TNK_69] (rows=10246864 width=302)
+                    Top N Key Operator [TNK_71] (rows=10246864 width=302)
                       keys:_col8, _col7,sort order:++,top n:100
-                      Select Operator [SEL_39] (rows=10246864 width=302)
+                      Select Operator [SEL_38] (rows=10246864 width=302)
                         Output:["_col3","_col7","_col8"]
-                        Filter Operator [FIL_38] (rows=10246864 width=302)
+                        Filter Operator [FIL_37] (rows=10246864 width=302)
                           predicate:((substr(_col8, 1, 5)) IN ('85669', 
'86197', '88274', '83405', '86475', '85392', '85460', '80348', '81792') or 
_col15 is not null)
-                          Select Operator [SEL_37] (rows=10246864 width=302)
+                          Select Operator [SEL_36] (rows=10246864 width=302)
                             Output:["_col3","_col7","_col8","_col15"]
-                            Merge Join Operator [MERGEJOIN_119] (rows=10246864 
width=302)
-                              
Conds:RS_34._col0=RS_35._col6(Inner),Output:["_col3","_col4","_col8","_col12"]
-                            <-Reducer 2 [SIMPLE_EDGE]
-                              SHUFFLE [RS_34]
+                            Merge Join Operator [MERGEJOIN_121] (rows=10246864 
width=302)
+                              
Conds:RS_33._col12=RS_146._col0(Inner),Output:["_col3","_col7","_col14","_col15"]
+                            <-Map 14 [SIMPLE_EDGE] vectorized
+                              SHUFFLE [RS_146]
                                 PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_115] 
(rows=80000000 width=191)
-                                  
Conds:RS_122._col1=RS_124._col0(Inner),Output:["_col0","_col3","_col4"]
-                                <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_122]
-                                    PartitionCols:_col1
-                                    Select Operator [SEL_121] (rows=80000000 
width=8)
+                                Select Operator [SEL_145] (rows=40000000 
width=191)
+                                  Output:["_col0","_col1","_col2"]
+                                  TableScan [TS_22] (rows=40000000 width=191)
+                                    
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_county","ca_zip"]
+                            <-Reducer 4 [SIMPLE_EDGE]
+                              SHUFFLE [RS_33]
+                                PartitionCols:_col12
+                                Merge Join Operator [MERGEJOIN_120] 
(rows=10246864 width=119)
+                                  
Conds:RS_30._col6=RS_144._col0(Inner),Output:["_col3","_col7","_col12"]
+                                <-Map 13 [SIMPLE_EDGE] vectorized
+                                  SHUFFLE [RS_144]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_143] (rows=80000000 
width=8)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_120] (rows=80000000 
width=8)
+                                      Filter Operator [FIL_142] (rows=80000000 
width=8)
                                         predicate:c_current_addr_sk is not null
-                                        TableScan [TS_0] (rows=80000000 
width=8)
+                                        TableScan [TS_19] (rows=80000000 
width=8)
                                           
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_addr_sk"]
-                                <-Map 6 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_124]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_123] (rows=40000000 
width=191)
-                                      Output:["_col0","_col1","_col2"]
-                                      TableScan [TS_3] (rows=40000000 
width=191)
-                                        
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_county","ca_zip"]
-                            <-Reducer 9 [SIMPLE_EDGE]
-                              SHUFFLE [RS_35]
-                                PartitionCols:_col6
-                                Merge Join Operator [MERGEJOIN_118] 
(rows=10246864 width=119)
-                                  
Conds:RS_27._col0=RS_28._col1(Inner),Output:["_col3","_col6","_col7"]
-                                <-Reducer 12 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_28]
-                                    PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_117] 
(rows=10246864 width=119)
-                                      
Conds:RS_144._col0=RS_136._col0(Inner),Output:["_col1","_col2","_col3"]
-                                    <-Map 13 [SIMPLE_EDGE] vectorized
-                                      PARTITION_ONLY_SHUFFLE [RS_136]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_135] (rows=130 
width=12)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_134] (rows=130 
width=12)
-                                            predicate:((d_qoy = 2) and (d_year 
= 2000))
-                                            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 11 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_144]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_143] 
(rows=143930993 width=123)
-                                          
Output:["_col0","_col1","_col2","_col3"]
-                                          Filter Operator [FIL_142] 
(rows=143930993 width=123)
-                                            predicate:((ws_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(ws_sold_date_sk, 
DynamicValue(RS_21_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_14] (rows=144002668 
width=123)
-                                              
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk","ws_sales_price"]
-                                            <-Reducer 14 [BROADCAST_EDGE] 
vectorized
-                                              BROADCAST [RS_141]
-                                                Group By Operator [GBY_140] 
(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_139]
-                                                    Group By Operator 
[GBY_138] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                      Select Operator 
[SEL_137] (rows=130 width=4)
-                                                        Output:["_col0"]
-                                                         Please refer to the 
previous Select Operator [SEL_135]
-                                <-Reducer 8 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_27]
-                                    PartitionCols:_col0
-                                    Merge Join Operator [MERGEJOIN_116] 
(rows=462007 width=4)
-                                      Conds:RS_127._col1=RS_133._col0(Left 
Outer),Output:["_col0","_col3"]
-                                    <-Map 7 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_127]
+                                <-Reducer 3 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_30]
+                                    PartitionCols:_col6
+                                    Merge Join Operator [MERGEJOIN_119] 
(rows=10246864 width=119)
+                                      
Conds:RS_27._col0=RS_28._col1(Inner),Output:["_col3","_col6","_col7"]
+                                    <-Reducer 10 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_28]
                                         PartitionCols:_col1
-                                        Select Operator [SEL_125] (rows=462000 
width=104)
-                                          Output:["_col0","_col1"]
-                                          TableScan [TS_5] (rows=462000 
width=104)
-                                            
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id"]
-                                    <-Reducer 10 [ONE_TO_ONE_EDGE] vectorized
-                                      FORWARD [RS_133]
+                                        Merge Join Operator [MERGEJOIN_118] 
(rows=10246864 width=119)
+                                          
Conds:RS_141._col0=RS_133._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        <-Map 11 [SIMPLE_EDGE] vectorized
+                                          PARTITION_ONLY_SHUFFLE [RS_133]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_132] 
(rows=130 width=12)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_131] 
(rows=130 width=12)
+                                                predicate:((d_qoy = 2) and 
(d_year = 2000))
+                                                TableScan [TS_12] (rows=73049 
width=12)
+                                                  
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_qoy"]
+                                        <-Map 9 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_141]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_140] 
(rows=143930993 width=123)
+                                              
Output:["_col0","_col1","_col2","_col3"]
+                                              Filter Operator [FIL_139] 
(rows=143930993 width=123)
+                                                predicate:((ws_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(ws_sold_date_sk, 
DynamicValue(RS_16_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_9] 
(rows=144002668 width=123)
+                                                  
default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk","ws_sales_price"]
+                                                <-Reducer 12 [BROADCAST_EDGE] 
vectorized
+                                                  BROADCAST [RS_138]
+                                                    Group By Operator 
[GBY_137] (rows=1 width=12)
+                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                    <-Map 11 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                      PARTITION_ONLY_SHUFFLE 
[RS_136]
+                                                        Group By Operator 
[GBY_135] (rows=1 width=12)
+                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                          Select Operator 
[SEL_134] (rows=130 width=4)
+                                                            Output:["_col0"]
+                                                             Please refer to 
the previous Select Operator [SEL_132]
+                                    <-Reducer 2 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_27]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_132] (rows=5 
width=104)
-                                          Output:["_col0","_col1"]
-                                          Group By Operator [GBY_131] (rows=5 
width=100)
-                                            Output:["_col0"],keys:KEY._col0
-                                          <-Map 7 [SIMPLE_EDGE] vectorized
-                                            SHUFFLE [RS_130]
-                                              PartitionCols:_col0
-                                              Group By Operator [GBY_129] 
(rows=5 width=100)
-                                                Output:["_col0"],keys:i_item_id
-                                                Select Operator [SEL_128] 
(rows=11 width=104)
-                                                  Output:["i_item_id"]
-                                                  Filter Operator [FIL_126] 
(rows=11 width=104)
-                                                    predicate:(i_item_sk) IN 
(2, 3, 5, 7, 11, 13, 17, 19, 23, 29)
-                                                     Please refer to the 
previous TableScan [TS_5]
+                                        Merge Join Operator [MERGEJOIN_117] 
(rows=462007 width=4)
+                                          Conds:RS_124._col1=RS_130._col0(Left 
Outer),Output:["_col0","_col3"]
+                                        <-Map 1 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_124]
+                                            PartitionCols:_col1
+                                            Select Operator [SEL_122] 
(rows=462000 width=104)
+                                              Output:["_col0","_col1"]
+                                              TableScan [TS_0] (rows=462000 
width=104)
+                                                
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id"]
+                                        <-Reducer 8 [ONE_TO_ONE_EDGE] 
vectorized
+                                          FORWARD [RS_130]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_129] (rows=5 
width=104)
+                                              Output:["_col0","_col1"]
+                                              Group By Operator [GBY_128] 
(rows=5 width=100)
+                                                Output:["_col0"],keys:KEY._col0
+                                              <-Map 1 [SIMPLE_EDGE] vectorized
+                                                SHUFFLE [RS_127]
+                                                  PartitionCols:_col0
+                                                  Group By Operator [GBY_126] 
(rows=5 width=100)
+                                                    
Output:["_col0"],keys:i_item_id
+                                                    Select Operator [SEL_125] 
(rows=11 width=104)
+                                                      Output:["i_item_id"]
+                                                      Filter Operator 
[FIL_123] (rows=11 width=104)
+                                                        predicate:(i_item_sk) 
IN (2, 3, 5, 7, 11, 13, 17, 19, 23, 29)
+                                                         Please refer to the 
previous TableScan [TS_0]
 

Reply via email to