http://git-wip-us.apache.org/repos/asf/hive/blob/f4a48fdb/ql/src/test/results/clientpositive/perf/tez/constraints/query61.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query61.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query61.q.out
index d9543ad..95a2a74 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query61.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query61.q.out
@@ -134,255 +134,251 @@ Stage-0
     limit:100
     Stage-1
       Reducer 6 vectorized
-      File Output Operator [FS_336]
-        Limit [LIM_335] (rows=1 width=336)
+      File Output Operator [FS_334]
+        Limit [LIM_333] (rows=1 width=336)
           Number of rows:100
-          Select Operator [SEL_334] (rows=1 width=336)
+          Select Operator [SEL_332] (rows=1 width=336)
             Output:["_col0","_col1","_col2"]
           <-Reducer 5 [SIMPLE_EDGE]
             SHUFFLE [RS_88]
               Select Operator [SEL_87] (rows=1 width=336)
                 Output:["_col0","_col1","_col2"]
-                Merge Join Operator [MERGEJOIN_266] (rows=1 width=448)
-                  Conds:(Inner),Output:["_col0","_col1","_col2","_col3"]
+                Merge Join Operator [MERGEJOIN_266] (rows=1 width=224)
+                  Conds:(Inner),Output:["_col0","_col1"]
                 <-Reducer 4 [CUSTOM_SIMPLE_EDGE] vectorized
-                  PARTITION_ONLY_SHUFFLE [RS_319]
-                    Select Operator [SEL_318] (rows=1 width=224)
-                      Output:["_col0","_col1"]
-                      Group By Operator [GBY_317] (rows=1 width=112)
-                        Output:["_col0"],aggregations:["sum(VALUE._col0)"]
-                      <-Reducer 3 [CUSTOM_SIMPLE_EDGE]
-                        PARTITION_ONLY_SHUFFLE [RS_42]
-                          Group By Operator [GBY_41] (rows=1 width=112)
-                            Output:["_col0"],aggregations:["sum(_col8)"]
-                            Merge Join Operator [MERGEJOIN_264] (rows=505397 
width=0)
-                              
Conds:RS_37._col0=RS_38._col2(Inner),Output:["_col8"]
-                            <-Reducer 2 [SIMPLE_EDGE]
-                              SHUFFLE [RS_37]
-                                PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_255] 
(rows=16000001 width=4)
-                                  
Conds:RS_269._col1=RS_272._col0(Inner),Output:["_col0"]
-                                <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_269]
-                                    PartitionCols:_col1
-                                    Select Operator [SEL_268] (rows=80000000 
width=8)
-                                      Output:["_col0","_col1"]
-                                      Filter Operator [FIL_267] (rows=80000000 
width=8)
-                                        predicate:c_current_addr_sk is not null
-                                        TableScan [TS_0] (rows=80000000 
width=8)
-                                          
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_addr_sk"]
-                                <-Map 11 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_272]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_271] (rows=8000000 
width=4)
-                                      Output:["_col0"]
-                                      Filter Operator [FIL_270] (rows=8000000 
width=112)
-                                        predicate:(ca_gmt_offset = -7)
-                                        TableScan [TS_3] (rows=40000000 
width=112)
-                                          
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_gmt_offset"]
-                            <-Reducer 16 [SIMPLE_EDGE]
-                              SHUFFLE [RS_38]
-                                PartitionCols:_col2
-                                Merge Join Operator [MERGEJOIN_259] 
(rows=2526982 width=0)
-                                  
Conds:RS_30._col4=RS_316._col0(Inner),Output:["_col2","_col5"]
-                                <-Map 29 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_316]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_315] (rows=2300 
width=4)
-                                      Output:["_col0"]
-                                      Filter Operator [FIL_314] (rows=2300 
width=259)
-                                        predicate:((p_channel_dmail = 'Y') or 
(p_channel_email = 'Y') or (p_channel_tv = 'Y'))
-                                        TableScan [TS_18] (rows=2300 width=259)
-                                          
default@promotion,promotion,Tbl:COMPLETE,Col:COMPLETE,Output:["p_promo_sk","p_channel_dmail","p_channel_email","p_channel_tv"]
-                                <-Reducer 15 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_30]
-                                    PartitionCols:_col4
-                                    Merge Join Operator [MERGEJOIN_258] 
(rows=2526982 width=0)
-                                      
Conds:RS_27._col3=RS_299._col0(Inner),Output:["_col2","_col4","_col5"]
-                                    <-Map 26 [SIMPLE_EDGE] vectorized
-                                      PARTITION_ONLY_SHUFFLE [RS_299]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_298] (rows=341 
width=4)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_297] (rows=341 
width=115)
-                                            predicate:(s_gmt_offset = -7)
-                                            TableScan [TS_15] (rows=1704 
width=115)
-                                              
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_gmt_offset"]
-                                    <-Reducer 14 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_27]
-                                        PartitionCols:_col3
-                                        Merge Join Operator [MERGEJOIN_257] 
(rows=12627499 width=0)
-                                          
Conds:RS_24._col1=RS_287._col0(Inner),Output:["_col2","_col3","_col4","_col5"]
-                                        <-Map 23 [SIMPLE_EDGE] vectorized
-                                          PARTITION_ONLY_SHUFFLE [RS_287]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_286] 
(rows=46200 width=4)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_285] 
(rows=46200 width=94)
-                                                predicate:(i_category = 
'Electronics')
-                                                TableScan [TS_12] (rows=462000 
width=94)
-                                                  
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_category"]
-                                        <-Reducer 13 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_24]
-                                            PartitionCols:_col1
-                                            Merge Join Operator 
[MERGEJOIN_256] (rows=13119234 width=4)
-                                              
Conds:RS_313._col0=RS_275._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
-                                            <-Map 17 [SIMPLE_EDGE] vectorized
-                                              PARTITION_ONLY_SHUFFLE [RS_275]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_274] 
(rows=50 width=4)
-                                                  Output:["_col0"]
-                                                  Filter Operator [FIL_273] 
(rows=50 width=12)
-                                                    predicate:((d_moy = 11) 
and (d_year = 1999))
-                                                    TableScan [TS_9] 
(rows=73049 width=12)
-                                                      
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
-                                            <-Map 12 [SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_313]
-                                                PartitionCols:_col0
-                                                Select Operator [SEL_312] 
(rows=479120970 width=126)
-                                                  
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                                  Filter Operator [FIL_311] 
(rows=479120970 width=126)
-                                                    predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_37_customer_c_customer_sk_min) AND 
DynamicValue(RS_37_customer_c_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_37_customer_c_customer_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_25_item_i_item_sk_min) AND 
DynamicValue(RS_25_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, 
DynamicValue(RS_25_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN 
DynamicValue(RS_22_date_dim_d_date_sk_min) AND 
DynamicValue(RS_22_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_22_date_dim_d_date_sk_bloom_filter))) and (ss_store_sk BETWEEN 
DynamicValue(RS_28_store_s_store_sk_min) AND 
DynamicValue(RS_28_store_s_store_sk_max) and in_bloom_filter(ss_store_sk, 
DynamicValue(RS_28_store_s_store_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_promo_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=126)
-                                                      
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_promo_sk","ss_ext_sales_price"]
-                                                    <-Reducer 18 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_284]
-                                                        Group By Operator 
[GBY_283] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Map 17 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                          
PARTITION_ONLY_SHUFFLE [RS_281]
-                                                            Group By Operator 
[GBY_279] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_276] (rows=50 width=4)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_274]
-                                                    <-Reducer 24 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_296]
-                                                        Group By Operator 
[GBY_295] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Map 23 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                          
PARTITION_ONLY_SHUFFLE [RS_293]
-                                                            Group By Operator 
[GBY_291] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_288] (rows=46200 width=4)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_286]
-                                                    <-Reducer 27 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_308]
-                                                        Group By Operator 
[GBY_307] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                        <-Map 26 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                          
PARTITION_ONLY_SHUFFLE [RS_305]
-                                                            Group By Operator 
[GBY_303] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                              Select Operator 
[SEL_300] (rows=341 width=4)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Select Operator [SEL_298]
-                                                    <-Reducer 7 
[BROADCAST_EDGE] vectorized
-                                                      BROADCAST [RS_310]
-                                                        Group By Operator 
[GBY_309] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=14591048)"]
-                                                        <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
-                                                          SHUFFLE [RS_182]
-                                                            Group By Operator 
[GBY_181] (rows=1 width=12)
-                                                              
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=14591048)"]
-                                                              Select Operator 
[SEL_180] (rows=16000001 width=4)
-                                                                
Output:["_col0"]
-                                                                 Please refer 
to the previous Merge Join Operator [MERGEJOIN_255]
+                  PARTITION_ONLY_SHUFFLE [RS_318]
+                    Group By Operator [GBY_317] (rows=1 width=112)
+                      Output:["_col0"],aggregations:["sum(VALUE._col0)"]
+                    <-Reducer 3 [CUSTOM_SIMPLE_EDGE]
+                      PARTITION_ONLY_SHUFFLE [RS_42]
+                        Group By Operator [GBY_41] (rows=1 width=112)
+                          Output:["_col0"],aggregations:["sum(_col8)"]
+                          Merge Join Operator [MERGEJOIN_264] (rows=505397 
width=0)
+                            
Conds:RS_37._col0=RS_38._col2(Inner),Output:["_col8"]
+                          <-Reducer 2 [SIMPLE_EDGE]
+                            SHUFFLE [RS_37]
+                              PartitionCols:_col0
+                              Merge Join Operator [MERGEJOIN_255] 
(rows=16000001 width=4)
+                                
Conds:RS_269._col1=RS_272._col0(Inner),Output:["_col0"]
+                              <-Map 1 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_269]
+                                  PartitionCols:_col1
+                                  Select Operator [SEL_268] (rows=80000000 
width=8)
+                                    Output:["_col0","_col1"]
+                                    Filter Operator [FIL_267] (rows=80000000 
width=8)
+                                      predicate:c_current_addr_sk is not null
+                                      TableScan [TS_0] (rows=80000000 width=8)
+                                        
default@customer,customer,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_addr_sk"]
+                              <-Map 11 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_272]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_271] (rows=8000000 
width=4)
+                                    Output:["_col0"]
+                                    Filter Operator [FIL_270] (rows=8000000 
width=112)
+                                      predicate:(ca_gmt_offset = -7)
+                                      TableScan [TS_3] (rows=40000000 
width=112)
+                                        
default@customer_address,customer_address,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_gmt_offset"]
+                          <-Reducer 16 [SIMPLE_EDGE]
+                            SHUFFLE [RS_38]
+                              PartitionCols:_col2
+                              Merge Join Operator [MERGEJOIN_259] 
(rows=2526982 width=0)
+                                
Conds:RS_30._col4=RS_316._col0(Inner),Output:["_col2","_col5"]
+                              <-Map 29 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_316]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_315] (rows=2300 width=4)
+                                    Output:["_col0"]
+                                    Filter Operator [FIL_314] (rows=2300 
width=259)
+                                      predicate:((p_channel_dmail = 'Y') or 
(p_channel_email = 'Y') or (p_channel_tv = 'Y'))
+                                      TableScan [TS_18] (rows=2300 width=259)
+                                        
default@promotion,promotion,Tbl:COMPLETE,Col:COMPLETE,Output:["p_promo_sk","p_channel_dmail","p_channel_email","p_channel_tv"]
+                              <-Reducer 15 [SIMPLE_EDGE]
+                                SHUFFLE [RS_30]
+                                  PartitionCols:_col4
+                                  Merge Join Operator [MERGEJOIN_258] 
(rows=2526982 width=0)
+                                    
Conds:RS_27._col3=RS_299._col0(Inner),Output:["_col2","_col4","_col5"]
+                                  <-Map 26 [SIMPLE_EDGE] vectorized
+                                    PARTITION_ONLY_SHUFFLE [RS_299]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_298] (rows=341 
width=4)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_297] (rows=341 
width=115)
+                                          predicate:(s_gmt_offset = -7)
+                                          TableScan [TS_15] (rows=1704 
width=115)
+                                            
default@store,store,Tbl:COMPLETE,Col:COMPLETE,Output:["s_store_sk","s_gmt_offset"]
+                                  <-Reducer 14 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_27]
+                                      PartitionCols:_col3
+                                      Merge Join Operator [MERGEJOIN_257] 
(rows=12627499 width=0)
+                                        
Conds:RS_24._col1=RS_287._col0(Inner),Output:["_col2","_col3","_col4","_col5"]
+                                      <-Map 23 [SIMPLE_EDGE] vectorized
+                                        PARTITION_ONLY_SHUFFLE [RS_287]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_286] 
(rows=46200 width=4)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_285] 
(rows=46200 width=94)
+                                              predicate:(i_category = 
'Electronics')
+                                              TableScan [TS_12] (rows=462000 
width=94)
+                                                
default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_category"]
+                                      <-Reducer 13 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_24]
+                                          PartitionCols:_col1
+                                          Merge Join Operator [MERGEJOIN_256] 
(rows=13119234 width=4)
+                                            
Conds:RS_313._col0=RS_275._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5"]
+                                          <-Map 17 [SIMPLE_EDGE] vectorized
+                                            PARTITION_ONLY_SHUFFLE [RS_275]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_274] 
(rows=50 width=4)
+                                                Output:["_col0"]
+                                                Filter Operator [FIL_273] 
(rows=50 width=12)
+                                                  predicate:((d_moy = 11) and 
(d_year = 1999))
+                                                  TableScan [TS_9] (rows=73049 
width=12)
+                                                    
default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
+                                          <-Map 12 [SIMPLE_EDGE] vectorized
+                                            SHUFFLE [RS_313]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_312] 
(rows=479120970 width=126)
+                                                
Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                Filter Operator [FIL_311] 
(rows=479120970 width=126)
+                                                  predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_37_customer_c_customer_sk_min) AND 
DynamicValue(RS_37_customer_c_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_37_customer_c_customer_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_25_item_i_item_sk_min) AND 
DynamicValue(RS_25_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, 
DynamicValue(RS_25_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN 
DynamicValue(RS_22_date_dim_d_date_sk_min) AND 
DynamicValue(RS_22_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_22_date_dim_d_date_sk_bloom_filter))) and (ss_store_sk BETWEEN 
DynamicValue(RS_28_store_s_store_sk_min) AND 
DynamicValue(RS_28_store_s_store_sk_max) and in_bloom_filter(ss_store_sk, 
DynamicValue(RS_28_store_s_store_sk_bloom_filter))) and ss_customer_sk is not 
null and ss_promo_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=126)
+                                                    
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_promo_sk","ss_ext_sales_price"]
+                                                  <-Reducer 18 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_284]
+                                                      Group By Operator 
[GBY_283] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Map 17 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_281]
+                                                          Group By Operator 
[GBY_279] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_276] (rows=50 width=4)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Select Operator [SEL_274]
+                                                  <-Reducer 24 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_296]
+                                                      Group By Operator 
[GBY_295] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Map 23 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_293]
+                                                          Group By Operator 
[GBY_291] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_288] (rows=46200 width=4)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Select Operator [SEL_286]
+                                                  <-Reducer 27 
[BROADCAST_EDGE] vectorized
+                                                    BROADCAST [RS_308]
+                                                      Group By Operator 
[GBY_307] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                      <-Map 26 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                        PARTITION_ONLY_SHUFFLE 
[RS_305]
+                                                          Group By Operator 
[GBY_303] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                            Select Operator 
[SEL_300] (rows=341 width=4)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Select Operator [SEL_298]
+                                                  <-Reducer 7 [BROADCAST_EDGE] 
vectorized
+                                                    BROADCAST [RS_310]
+                                                      Group By Operator 
[GBY_309] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=14591048)"]
+                                                      <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
+                                                        SHUFFLE [RS_182]
+                                                          Group By Operator 
[GBY_181] (rows=1 width=12)
+                                                            
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=14591048)"]
+                                                            Select Operator 
[SEL_180] (rows=16000001 width=4)
+                                                              Output:["_col0"]
+                                                               Please refer to 
the previous Merge Join Operator [MERGEJOIN_255]
                 <-Reducer 9 [CUSTOM_SIMPLE_EDGE] vectorized
-                  PARTITION_ONLY_SHUFFLE [RS_333]
-                    Select Operator [SEL_332] (rows=1 width=224)
-                      Output:["_col0","_col1"]
-                      Group By Operator [GBY_331] (rows=1 width=112)
-                        Output:["_col0"],aggregations:["sum(VALUE._col0)"]
-                      <-Reducer 8 [CUSTOM_SIMPLE_EDGE]
-                        PARTITION_ONLY_SHUFFLE [RS_81]
-                          Group By Operator [GBY_80] (rows=1 width=112)
-                            Output:["_col0"],aggregations:["sum(_col7)"]
-                            Merge Join Operator [MERGEJOIN_265] (rows=529208 
width=0)
-                              
Conds:RS_76._col0=RS_77._col2(Inner),Output:["_col7"]
-                            <-Reducer 2 [SIMPLE_EDGE]
-                              SHUFFLE [RS_76]
-                                PartitionCols:_col0
-                                 Please refer to the previous Merge Join 
Operator [MERGEJOIN_255]
-                            <-Reducer 21 [SIMPLE_EDGE]
-                              SHUFFLE [RS_77]
-                                PartitionCols:_col2
-                                Merge Join Operator [MERGEJOIN_263] 
(rows=2646038 width=0)
-                                  
Conds:RS_69._col3=RS_301._col0(Inner),Output:["_col2","_col4"]
-                                <-Map 26 [SIMPLE_EDGE] vectorized
-                                  PARTITION_ONLY_SHUFFLE [RS_301]
-                                    PartitionCols:_col0
-                                     Please refer to the previous Select 
Operator [SEL_298]
-                                <-Reducer 20 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_69]
-                                    PartitionCols:_col3
-                                    Merge Join Operator [MERGEJOIN_262] 
(rows=13222427 width=0)
-                                      
Conds:RS_66._col1=RS_289._col0(Inner),Output:["_col2","_col3","_col4"]
-                                    <-Map 23 [SIMPLE_EDGE] vectorized
-                                      PARTITION_ONLY_SHUFFLE [RS_289]
-                                        PartitionCols:_col0
-                                         Please refer to the previous Select 
Operator [SEL_286]
-                                    <-Reducer 19 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_66]
-                                        PartitionCols:_col1
-                                        Merge Join Operator [MERGEJOIN_261] 
(rows=13737330 width=4)
-                                          
Conds:RS_330._col0=RS_277._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                        <-Map 17 [SIMPLE_EDGE] vectorized
-                                          PARTITION_ONLY_SHUFFLE [RS_277]
-                                            PartitionCols:_col0
-                                             Please refer to the previous 
Select Operator [SEL_274]
-                                        <-Map 30 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_330]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_329] 
(rows=501694138 width=122)
-                                              
Output:["_col0","_col1","_col2","_col3","_col4"]
-                                              Filter Operator [FIL_328] 
(rows=501694138 width=122)
-                                                predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_76_customer_c_customer_sk_min) AND 
DynamicValue(RS_76_customer_c_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_76_customer_c_customer_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_67_item_i_item_sk_min) AND 
DynamicValue(RS_67_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, 
DynamicValue(RS_67_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN 
DynamicValue(RS_64_date_dim_d_date_sk_min) AND 
DynamicValue(RS_64_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_64_date_dim_d_date_sk_bloom_filter))) and (ss_store_sk BETWEEN 
DynamicValue(RS_70_store_s_store_sk_min) AND 
DynamicValue(RS_70_store_s_store_sk_max) and in_bloom_filter(ss_store_sk, 
DynamicValue(RS_70_store_s_store_sk_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_51] 
(rows=575995635 width=122)
-                                                  
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
-                                                <-Reducer 10 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_327]
-                                                    Group By Operator 
[GBY_326] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=14591048)"]
-                                                    <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
-                                                      SHUFFLE [RS_237]
-                                                        Group By Operator 
[GBY_236] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=14591048)"]
-                                                          Select Operator 
[SEL_235] (rows=16000001 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Merge Join Operator [MERGEJOIN_255]
-                                                <-Reducer 22 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_321]
-                                                    Group By Operator 
[GBY_320] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                    <-Map 17 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_282]
-                                                        Group By Operator 
[GBY_280] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_278] (rows=50 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Select Operator [SEL_274]
-                                                <-Reducer 25 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_323]
-                                                    Group By Operator 
[GBY_322] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                    <-Map 23 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_294]
-                                                        Group By Operator 
[GBY_292] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_290] (rows=46200 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Select Operator [SEL_286]
-                                                <-Reducer 28 [BROADCAST_EDGE] 
vectorized
-                                                  BROADCAST [RS_325]
-                                                    Group By Operator 
[GBY_324] (rows=1 width=12)
-                                                      
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
-                                                    <-Map 26 
[CUSTOM_SIMPLE_EDGE] vectorized
-                                                      PARTITION_ONLY_SHUFFLE 
[RS_306]
-                                                        Group By Operator 
[GBY_304] (rows=1 width=12)
-                                                          
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
-                                                          Select Operator 
[SEL_302] (rows=341 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to 
the previous Select Operator [SEL_298]
+                  PARTITION_ONLY_SHUFFLE [RS_331]
+                    Group By Operator [GBY_330] (rows=1 width=112)
+                      Output:["_col0"],aggregations:["sum(VALUE._col0)"]
+                    <-Reducer 8 [CUSTOM_SIMPLE_EDGE]
+                      PARTITION_ONLY_SHUFFLE [RS_81]
+                        Group By Operator [GBY_80] (rows=1 width=112)
+                          Output:["_col0"],aggregations:["sum(_col7)"]
+                          Merge Join Operator [MERGEJOIN_265] (rows=529208 
width=0)
+                            
Conds:RS_76._col0=RS_77._col2(Inner),Output:["_col7"]
+                          <-Reducer 2 [SIMPLE_EDGE]
+                            SHUFFLE [RS_76]
+                              PartitionCols:_col0
+                               Please refer to the previous Merge Join 
Operator [MERGEJOIN_255]
+                          <-Reducer 21 [SIMPLE_EDGE]
+                            SHUFFLE [RS_77]
+                              PartitionCols:_col2
+                              Merge Join Operator [MERGEJOIN_263] 
(rows=2646038 width=0)
+                                
Conds:RS_69._col3=RS_301._col0(Inner),Output:["_col2","_col4"]
+                              <-Map 26 [SIMPLE_EDGE] vectorized
+                                PARTITION_ONLY_SHUFFLE [RS_301]
+                                  PartitionCols:_col0
+                                   Please refer to the previous Select 
Operator [SEL_298]
+                              <-Reducer 20 [SIMPLE_EDGE]
+                                SHUFFLE [RS_69]
+                                  PartitionCols:_col3
+                                  Merge Join Operator [MERGEJOIN_262] 
(rows=13222427 width=0)
+                                    
Conds:RS_66._col1=RS_289._col0(Inner),Output:["_col2","_col3","_col4"]
+                                  <-Map 23 [SIMPLE_EDGE] vectorized
+                                    PARTITION_ONLY_SHUFFLE [RS_289]
+                                      PartitionCols:_col0
+                                       Please refer to the previous Select 
Operator [SEL_286]
+                                  <-Reducer 19 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_66]
+                                      PartitionCols:_col1
+                                      Merge Join Operator [MERGEJOIN_261] 
(rows=13737330 width=4)
+                                        
Conds:RS_329._col0=RS_277._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                      <-Map 17 [SIMPLE_EDGE] vectorized
+                                        PARTITION_ONLY_SHUFFLE [RS_277]
+                                          PartitionCols:_col0
+                                           Please refer to the previous Select 
Operator [SEL_274]
+                                      <-Map 30 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_329]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_328] 
(rows=501694138 width=122)
+                                            
Output:["_col0","_col1","_col2","_col3","_col4"]
+                                            Filter Operator [FIL_327] 
(rows=501694138 width=122)
+                                              predicate:((ss_customer_sk 
BETWEEN DynamicValue(RS_76_customer_c_customer_sk_min) AND 
DynamicValue(RS_76_customer_c_customer_sk_max) and 
in_bloom_filter(ss_customer_sk, 
DynamicValue(RS_76_customer_c_customer_sk_bloom_filter))) and (ss_item_sk 
BETWEEN DynamicValue(RS_67_item_i_item_sk_min) AND 
DynamicValue(RS_67_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, 
DynamicValue(RS_67_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN 
DynamicValue(RS_64_date_dim_d_date_sk_min) AND 
DynamicValue(RS_64_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, 
DynamicValue(RS_64_date_dim_d_date_sk_bloom_filter))) and (ss_store_sk BETWEEN 
DynamicValue(RS_70_store_s_store_sk_min) AND 
DynamicValue(RS_70_store_s_store_sk_max) and in_bloom_filter(ss_store_sk, 
DynamicValue(RS_70_store_s_store_sk_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_51] 
(rows=575995635 width=122)
+                                                
default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
+                                              <-Reducer 10 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_326]
+                                                  Group By Operator [GBY_325] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=14591048)"]
+                                                  <-Reducer 2 
[CUSTOM_SIMPLE_EDGE]
+                                                    SHUFFLE [RS_237]
+                                                      Group By Operator 
[GBY_236] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=14591048)"]
+                                                        Select Operator 
[SEL_235] (rows=16000001 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Merge Join Operator [MERGEJOIN_255]
+                                              <-Reducer 22 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_320]
+                                                  Group By Operator [GBY_319] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 17 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_282]
+                                                      Group By Operator 
[GBY_280] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_278] (rows=50 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_274]
+                                              <-Reducer 25 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_322]
+                                                  Group By Operator [GBY_321] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 23 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_294]
+                                                      Group By Operator 
[GBY_292] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_290] (rows=46200 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_286]
+                                              <-Reducer 28 [BROADCAST_EDGE] 
vectorized
+                                                BROADCAST [RS_324]
+                                                  Group By Operator [GBY_323] 
(rows=1 width=12)
+                                                    
Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2,
 expectedEntries=1000000)"]
+                                                  <-Map 26 
[CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE 
[RS_306]
+                                                      Group By Operator 
[GBY_304] (rows=1 width=12)
+                                                        
Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0,
 expectedEntries=1000000)"]
+                                                        Select Operator 
[SEL_302] (rows=341 width=4)
+                                                          Output:["_col0"]
+                                                           Please refer to the 
previous Select Operator [SEL_298]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/f4a48fdb/ql/src/test/results/clientpositive/perf/tez/constraints/query74.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/perf/tez/constraints/query74.q.out 
b/ql/src/test/results/clientpositive/perf/tez/constraints/query74.q.out
index 39b3f0a..12ed5c8 100644
--- a/ql/src/test/results/clientpositive/perf/tez/constraints/query74.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/constraints/query74.q.out
@@ -170,10 +170,10 @@ Stage-0
             SHUFFLE [RS_89]
               Select Operator [SEL_88] (rows=12248093 width=280)
                 Output:["_col0","_col1","_col2"]
-                Filter Operator [FIL_87] (rows=12248093 width=736)
-                  predicate:CASE WHEN (_col4) THEN (CASE WHEN (_col7) THEN 
(((_col1 / _col6) > (_col11 / _col3))) ELSE ((null > (_col11 / _col3))) END) 
ELSE (CASE WHEN (_col7) THEN (((_col1 / _col6) > null)) ELSE (null) END) END
-                  Merge Join Operator [MERGEJOIN_283] (rows=24496186 width=736)
-                    
Conds:RS_84._col2=RS_345._col0(Inner),Output:["_col1","_col3","_col4","_col6","_col7","_col8","_col9","_col10","_col11"]
+                Filter Operator [FIL_87] (rows=12248093 width=732)
+                  predicate:CASE WHEN (_col3 is not null) THEN (CASE WHEN 
(_col6) THEN (((_col1 / _col5) > (_col10 / _col3))) ELSE ((null > (_col10 / 
_col3))) END) ELSE (CASE WHEN (_col6) THEN (((_col1 / _col5) > null)) ELSE 
(null) END) END
+                  Merge Join Operator [MERGEJOIN_283] (rows=24496186 width=732)
+                    
Conds:RS_84._col2=RS_345._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col9","_col10"]
                   <-Reducer 20 [SIMPLE_EDGE] vectorized
                     SHUFFLE [RS_345]
                       PartitionCols:_col0
@@ -230,8 +230,8 @@ Stage-0
                   <-Reducer 6 [ONE_TO_ONE_EDGE]
                     FORWARD [RS_84]
                       PartitionCols:_col2
-                      Merge Join Operator [MERGEJOIN_282] (rows=20485011 
width=444)
-                        
Conds:RS_81._col2=RS_338._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7"]
+                      Merge Join Operator [MERGEJOIN_282] (rows=20485011 
width=440)
+                        
Conds:RS_81._col2=RS_338._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6"]
                       <-Reducer 16 [SIMPLE_EDGE] vectorized
                         SHUFFLE [RS_338]
                           PartitionCols:_col0
@@ -290,13 +290,13 @@ Stage-0
                       <-Reducer 5 [ONE_TO_ONE_EDGE]
                         FORWARD [RS_81]
                           PartitionCols:_col2
-                          Merge Join Operator [MERGEJOIN_281] (rows=31888273 
width=328)
-                            
Conds:RS_318._col0=RS_328._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                          Merge Join Operator [MERGEJOIN_281] (rows=31888273 
width=324)
+                            
Conds:RS_318._col0=RS_328._col0(Inner),Output:["_col1","_col2","_col3"]
                           <-Reducer 12 [SIMPLE_EDGE] vectorized
                             SHUFFLE [RS_328]
                               PartitionCols:_col0
-                              Select Operator [SEL_327] (rows=26666666 
width=216)
-                                Output:["_col0","_col1","_col2"]
+                              Select Operator [SEL_327] (rows=26666666 
width=212)
+                                Output:["_col0","_col1"]
                                 Filter Operator [FIL_326] (rows=26666666 
width=212)
                                   predicate:(_col3 > 0)
                                   Select Operator [SEL_325] (rows=80000000 
width=212)

Reply via email to