http://git-wip-us.apache.org/repos/asf/hive/blob/e8f283cf/ql/src/test/results/clientpositive/perf/tez/query56.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query56.q.out 
b/ql/src/test/results/clientpositive/perf/tez/query56.q.out
index 80514cf..13657a8 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query56.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query56.q.out
@@ -157,22 +157,22 @@ Stage-0
     limit:100
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_214]
-        Limit [LIM_213] (rows=100 width=108)
+      File Output Operator [FS_226]
+        Limit [LIM_225] (rows=100 width=108)
           Number of rows:100
-          Select Operator [SEL_212] (rows=335408073 width=108)
+          Select Operator [SEL_224] (rows=335408073 width=108)
             Output:["_col0","_col1"]
           <-Reducer 6 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_211]
-              Group By Operator [GBY_210] (rows=335408073 width=108)
+            SHUFFLE [RS_223]
+              Group By Operator [GBY_222] (rows=335408073 width=108)
                 
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
               <-Union 5 [SIMPLE_EDGE]
                 <-Reducer 11 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_226]
+                  Reduce Output Operator [RS_238]
                     PartitionCols:_col0
-                    Group By Operator [GBY_225] (rows=670816147 width=108)
+                    Group By Operator [GBY_237] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_224] (rows=95833781 width=135)
+                      Group By Operator [GBY_236] (rows=95833781 width=135)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 10 [SIMPLE_EDGE]
                         SHUFFLE [RS_109]
@@ -185,29 +185,29 @@ Stage-0
                               SHUFFLE [RS_104]
                                 PartitionCols:_col0
                                 Merge Join Operator [MERGEJOIN_173] 
(rows=508200 width=1436)
-                                  
Conds:RS_187._col1=RS_193._col0(Inner),Output:["_col0","_col1"]
+                                  
Conds:RS_199._col1=RS_205._col0(Inner),Output:["_col0","_col1"]
                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_187]
+                                  SHUFFLE [RS_199]
                                     PartitionCols:_col1
-                                    Select Operator [SEL_186] (rows=462000 
width=1436)
+                                    Select Operator [SEL_198] (rows=462000 
width=1436)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_185] (rows=462000 
width=1436)
+                                      Filter Operator [FIL_197] (rows=462000 
width=1436)
                                         predicate:(i_item_id is not null and 
i_item_sk is not null)
                                         TableScan [TS_0] (rows=462000 
width=1436)
                                           
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
                                 <-Reducer 13 [ONE_TO_ONE_EDGE] vectorized
-                                  FORWARD [RS_193]
+                                  FORWARD [RS_205]
                                     PartitionCols:_col0
-                                    Group By Operator [GBY_192] (rows=115500 
width=1436)
+                                    Group By Operator [GBY_204] (rows=115500 
width=1436)
                                       Output:["_col0"],keys:KEY._col0
                                     <-Map 12 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_191]
+                                      SHUFFLE [RS_203]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_190] 
(rows=231000 width=1436)
+                                        Group By Operator [GBY_202] 
(rows=231000 width=1436)
                                           Output:["_col0"],keys:i_item_id
-                                          Select Operator [SEL_189] 
(rows=231000 width=1436)
+                                          Select Operator [SEL_201] 
(rows=231000 width=1436)
                                             Output:["i_item_id"]
-                                            Filter Operator [FIL_188] 
(rows=231000 width=1436)
+                                            Filter Operator [FIL_200] 
(rows=231000 width=1436)
                                               predicate:((i_color) IN 
('orchid', 'chiffon', 'lace') and i_item_id is not null)
                                               TableScan [TS_3] (rows=462000 
width=1436)
                                                 
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_id","i_color"]
@@ -217,13 +217,13 @@ Stage-0
                                 Select Operator [SEL_100] (rows=174243235 
width=135)
                                   Output:["_col3","_col5"]
                                   Merge Join Operator [MERGEJOIN_181] 
(rows=174243235 width=135)
-                                    
Conds:RS_97._col2=RS_206._col0(Inner),Output:["_col1","_col3"]
+                                    
Conds:RS_97._col2=RS_218._col0(Inner),Output:["_col1","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_206]
+                                    SHUFFLE [RS_218]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_203] (rows=20000000 
width=1014)
+                                      Select Operator [SEL_215] (rows=20000000 
width=1014)
                                         Output:["_col0"]
-                                        Filter Operator [FIL_202] 
(rows=20000000 width=1014)
+                                        Filter Operator [FIL_214] 
(rows=20000000 width=1014)
                                           predicate:((ca_gmt_offset = -8) and 
ca_address_sk is not null)
                                           TableScan [TS_16] (rows=40000000 
width=1014)
                                             
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_gmt_offset"]
@@ -231,31 +231,31 @@ Stage-0
                                     SHUFFLE [RS_97]
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_180] 
(rows=158402938 width=135)
-                                        
Conds:RS_223._col0=RS_201._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_235._col0=RS_213._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_201]
+                                        SHUFFLE [RS_213]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_198] 
(rows=18262 width=1119)
+                                          Select Operator [SEL_210] 
(rows=18262 width=1119)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_197] 
(rows=18262 width=1119)
+                                            Filter Operator [FIL_209] 
(rows=18262 width=1119)
                                               predicate:((d_moy = 1) and 
(d_year = 2000) and d_date_sk is not null)
                                               TableScan [TS_13] (rows=73049 
width=1119)
                                                 
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
                                       <-Map 24 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_223]
+                                        SHUFFLE [RS_235]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_222] 
(rows=144002668 width=135)
+                                          Select Operator [SEL_234] 
(rows=144002668 width=135)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_221] 
(rows=144002668 width=135)
+                                            Filter Operator [FIL_233] 
(rows=144002668 width=135)
                                               predicate:(ws_bill_addr_sk is 
not null and ws_item_sk is not null and ws_sold_date_sk is not null)
                                               TableScan [TS_85] 
(rows=144002668 width=135)
                                                 
default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_addr_sk","ws_ext_sales_price"]
                 <-Reducer 4 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_209]
+                  Reduce Output Operator [RS_221]
                     PartitionCols:_col0
-                    Group By Operator [GBY_208] (rows=670816147 width=108)
+                    Group By Operator [GBY_220] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_207] (rows=383325119 width=88)
+                      Group By Operator [GBY_219] (rows=383325119 width=88)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 3 [SIMPLE_EDGE]
                         SHUFFLE [RS_34]
@@ -274,35 +274,35 @@ Stage-0
                                 Select Operator [SEL_25] (rows=696954748 
width=88)
                                   Output:["_col3","_col5"]
                                   Merge Join Operator [MERGEJOIN_175] 
(rows=696954748 width=88)
-                                    
Conds:RS_22._col2=RS_204._col0(Inner),Output:["_col1","_col3"]
+                                    
Conds:RS_22._col2=RS_216._col0(Inner),Output:["_col1","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_204]
+                                    SHUFFLE [RS_216]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select 
Operator [SEL_203]
+                                       Please refer to the previous Select 
Operator [SEL_215]
                                   <-Reducer 15 [SIMPLE_EDGE]
                                     SHUFFLE [RS_22]
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_174] 
(rows=633595212 width=88)
-                                        
Conds:RS_196._col0=RS_199._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_208._col0=RS_211._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_199]
+                                        SHUFFLE [RS_211]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select 
Operator [SEL_198]
+                                           Please refer to the previous Select 
Operator [SEL_210]
                                       <-Map 14 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_196]
+                                        SHUFFLE [RS_208]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_195] 
(rows=575995635 width=88)
+                                          Select Operator [SEL_207] 
(rows=575995635 width=88)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_194] 
(rows=575995635 width=88)
+                                            Filter Operator [FIL_206] 
(rows=575995635 width=88)
                                               predicate:(ss_addr_sk is not 
null and ss_item_sk is not null and ss_sold_date_sk is not null)
                                               TableScan [TS_10] 
(rows=575995635 width=88)
                                                 
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_addr_sk","ss_ext_sales_price"]
                 <-Reducer 9 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_220]
+                  Reduce Output Operator [RS_232]
                     PartitionCols:_col0
-                    Group By Operator [GBY_219] (rows=670816147 width=108)
+                    Group By Operator [GBY_231] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_218] (rows=191657247 width=135)
+                      Group By Operator [GBY_230] (rows=191657247 width=135)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 8 [SIMPLE_EDGE]
                         SHUFFLE [RS_71]
@@ -321,26 +321,26 @@ Stage-0
                                 Select Operator [SEL_62] (rows=348467716 
width=135)
                                   Output:["_col4","_col5"]
                                   Merge Join Operator [MERGEJOIN_178] 
(rows=348467716 width=135)
-                                    
Conds:RS_59._col1=RS_205._col0(Inner),Output:["_col2","_col3"]
+                                    
Conds:RS_59._col1=RS_217._col0(Inner),Output:["_col2","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_205]
+                                    SHUFFLE [RS_217]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select 
Operator [SEL_203]
+                                       Please refer to the previous Select 
Operator [SEL_215]
                                   <-Reducer 18 [SIMPLE_EDGE]
                                     SHUFFLE [RS_59]
                                       PartitionCols:_col1
                                       Merge Join Operator [MERGEJOIN_177] 
(rows=316788826 width=135)
-                                        
Conds:RS_217._col0=RS_200._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_229._col0=RS_212._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_200]
+                                        SHUFFLE [RS_212]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select 
Operator [SEL_198]
+                                           Please refer to the previous Select 
Operator [SEL_210]
                                       <-Map 23 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_217]
+                                        SHUFFLE [RS_229]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_216] 
(rows=287989836 width=135)
+                                          Select Operator [SEL_228] 
(rows=287989836 width=135)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_215] 
(rows=287989836 width=135)
+                                            Filter Operator [FIL_227] 
(rows=287989836 width=135)
                                               predicate:(cs_bill_addr_sk is 
not null and cs_item_sk is not null and cs_sold_date_sk is not null)
                                               TableScan [TS_47] 
(rows=287989836 width=135)
                                                 
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_addr_sk","cs_item_sk","cs_ext_sales_price"]

http://git-wip-us.apache.org/repos/asf/hive/blob/e8f283cf/ql/src/test/results/clientpositive/perf/tez/query60.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query60.q.out 
b/ql/src/test/results/clientpositive/perf/tez/query60.q.out
index 0e3aed8..515d5e0 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query60.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query60.q.out
@@ -177,22 +177,22 @@ Stage-0
     limit:100
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_214]
-        Limit [LIM_213] (rows=100 width=108)
+      File Output Operator [FS_226]
+        Limit [LIM_225] (rows=100 width=108)
           Number of rows:100
-          Select Operator [SEL_212] (rows=335408073 width=108)
+          Select Operator [SEL_224] (rows=335408073 width=108)
             Output:["_col0","_col1"]
           <-Reducer 6 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_211]
-              Group By Operator [GBY_210] (rows=335408073 width=108)
+            SHUFFLE [RS_223]
+              Group By Operator [GBY_222] (rows=335408073 width=108)
                 
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
               <-Union 5 [SIMPLE_EDGE]
                 <-Reducer 11 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_226]
+                  Reduce Output Operator [RS_238]
                     PartitionCols:_col0
-                    Group By Operator [GBY_225] (rows=670816147 width=108)
+                    Group By Operator [GBY_237] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_224] (rows=95833781 width=135)
+                      Group By Operator [GBY_236] (rows=95833781 width=135)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 10 [SIMPLE_EDGE]
                         SHUFFLE [RS_109]
@@ -205,29 +205,29 @@ Stage-0
                               SHUFFLE [RS_104]
                                 PartitionCols:_col0
                                 Merge Join Operator [MERGEJOIN_173] 
(rows=508200 width=1436)
-                                  
Conds:RS_187._col1=RS_193._col0(Inner),Output:["_col0","_col1"]
+                                  
Conds:RS_199._col1=RS_205._col0(Inner),Output:["_col0","_col1"]
                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_187]
+                                  SHUFFLE [RS_199]
                                     PartitionCols:_col1
-                                    Select Operator [SEL_186] (rows=462000 
width=1436)
+                                    Select Operator [SEL_198] (rows=462000 
width=1436)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_185] (rows=462000 
width=1436)
+                                      Filter Operator [FIL_197] (rows=462000 
width=1436)
                                         predicate:(i_item_id is not null and 
i_item_sk is not null)
                                         TableScan [TS_0] (rows=462000 
width=1436)
                                           
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
                                 <-Reducer 13 [ONE_TO_ONE_EDGE] vectorized
-                                  FORWARD [RS_193]
+                                  FORWARD [RS_205]
                                     PartitionCols:_col0
-                                    Group By Operator [GBY_192] (rows=115500 
width=1436)
+                                    Group By Operator [GBY_204] (rows=115500 
width=1436)
                                       Output:["_col0"],keys:KEY._col0
                                     <-Map 12 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_191]
+                                      SHUFFLE [RS_203]
                                         PartitionCols:_col0
-                                        Group By Operator [GBY_190] 
(rows=231000 width=1436)
+                                        Group By Operator [GBY_202] 
(rows=231000 width=1436)
                                           Output:["_col0"],keys:i_item_id
-                                          Select Operator [SEL_189] 
(rows=231000 width=1436)
+                                          Select Operator [SEL_201] 
(rows=231000 width=1436)
                                             Output:["i_item_id"]
-                                            Filter Operator [FIL_188] 
(rows=231000 width=1436)
+                                            Filter Operator [FIL_200] 
(rows=231000 width=1436)
                                               predicate:((i_category = 
'Children') and i_item_id is not null)
                                               TableScan [TS_3] (rows=462000 
width=1436)
                                                 
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_id","i_category"]
@@ -237,13 +237,13 @@ Stage-0
                                 Select Operator [SEL_100] (rows=174243235 
width=135)
                                   Output:["_col3","_col5"]
                                   Merge Join Operator [MERGEJOIN_181] 
(rows=174243235 width=135)
-                                    
Conds:RS_97._col2=RS_206._col0(Inner),Output:["_col1","_col3"]
+                                    
Conds:RS_97._col2=RS_218._col0(Inner),Output:["_col1","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_206]
+                                    SHUFFLE [RS_218]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_203] (rows=20000000 
width=1014)
+                                      Select Operator [SEL_215] (rows=20000000 
width=1014)
                                         Output:["_col0"]
-                                        Filter Operator [FIL_202] 
(rows=20000000 width=1014)
+                                        Filter Operator [FIL_214] 
(rows=20000000 width=1014)
                                           predicate:((ca_gmt_offset = -6) and 
ca_address_sk is not null)
                                           TableScan [TS_16] (rows=40000000 
width=1014)
                                             
default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_gmt_offset"]
@@ -251,31 +251,31 @@ Stage-0
                                     SHUFFLE [RS_97]
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_180] 
(rows=158402938 width=135)
-                                        
Conds:RS_223._col0=RS_201._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_235._col0=RS_213._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_201]
+                                        SHUFFLE [RS_213]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_198] 
(rows=18262 width=1119)
+                                          Select Operator [SEL_210] 
(rows=18262 width=1119)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_197] 
(rows=18262 width=1119)
+                                            Filter Operator [FIL_209] 
(rows=18262 width=1119)
                                               predicate:((d_moy = 9) and 
(d_year = 1999) and d_date_sk is not null)
                                               TableScan [TS_13] (rows=73049 
width=1119)
                                                 
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
                                       <-Map 24 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_223]
+                                        SHUFFLE [RS_235]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_222] 
(rows=144002668 width=135)
+                                          Select Operator [SEL_234] 
(rows=144002668 width=135)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_221] 
(rows=144002668 width=135)
+                                            Filter Operator [FIL_233] 
(rows=144002668 width=135)
                                               predicate:(ws_bill_addr_sk is 
not null and ws_item_sk is not null and ws_sold_date_sk is not null)
                                               TableScan [TS_85] 
(rows=144002668 width=135)
                                                 
default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_addr_sk","ws_ext_sales_price"]
                 <-Reducer 4 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_209]
+                  Reduce Output Operator [RS_221]
                     PartitionCols:_col0
-                    Group By Operator [GBY_208] (rows=670816147 width=108)
+                    Group By Operator [GBY_220] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_207] (rows=383325119 width=88)
+                      Group By Operator [GBY_219] (rows=383325119 width=88)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 3 [SIMPLE_EDGE]
                         SHUFFLE [RS_34]
@@ -294,35 +294,35 @@ Stage-0
                                 Select Operator [SEL_25] (rows=696954748 
width=88)
                                   Output:["_col3","_col5"]
                                   Merge Join Operator [MERGEJOIN_175] 
(rows=696954748 width=88)
-                                    
Conds:RS_22._col2=RS_204._col0(Inner),Output:["_col1","_col3"]
+                                    
Conds:RS_22._col2=RS_216._col0(Inner),Output:["_col1","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_204]
+                                    SHUFFLE [RS_216]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select 
Operator [SEL_203]
+                                       Please refer to the previous Select 
Operator [SEL_215]
                                   <-Reducer 15 [SIMPLE_EDGE]
                                     SHUFFLE [RS_22]
                                       PartitionCols:_col2
                                       Merge Join Operator [MERGEJOIN_174] 
(rows=633595212 width=88)
-                                        
Conds:RS_196._col0=RS_199._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_208._col0=RS_211._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_199]
+                                        SHUFFLE [RS_211]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select 
Operator [SEL_198]
+                                           Please refer to the previous Select 
Operator [SEL_210]
                                       <-Map 14 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_196]
+                                        SHUFFLE [RS_208]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_195] 
(rows=575995635 width=88)
+                                          Select Operator [SEL_207] 
(rows=575995635 width=88)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_194] 
(rows=575995635 width=88)
+                                            Filter Operator [FIL_206] 
(rows=575995635 width=88)
                                               predicate:(ss_addr_sk is not 
null and ss_item_sk is not null and ss_sold_date_sk is not null)
                                               TableScan [TS_10] 
(rows=575995635 width=88)
                                                 
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_addr_sk","ss_ext_sales_price"]
                 <-Reducer 9 [CONTAINS] vectorized
-                  Reduce Output Operator [RS_220]
+                  Reduce Output Operator [RS_232]
                     PartitionCols:_col0
-                    Group By Operator [GBY_219] (rows=670816147 width=108)
+                    Group By Operator [GBY_231] (rows=670816147 width=108)
                       
Output:["_col0","_col1"],aggregations:["sum(_col1)"],keys:_col0
-                      Group By Operator [GBY_218] (rows=191657247 width=135)
+                      Group By Operator [GBY_230] (rows=191657247 width=135)
                         
Output:["_col0","_col1"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0
                       <-Reducer 8 [SIMPLE_EDGE]
                         SHUFFLE [RS_71]
@@ -341,26 +341,26 @@ Stage-0
                                 Select Operator [SEL_62] (rows=348467716 
width=135)
                                   Output:["_col4","_col5"]
                                   Merge Join Operator [MERGEJOIN_178] 
(rows=348467716 width=135)
-                                    
Conds:RS_59._col1=RS_205._col0(Inner),Output:["_col2","_col3"]
+                                    
Conds:RS_59._col1=RS_217._col0(Inner),Output:["_col2","_col3"]
                                   <-Map 22 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_205]
+                                    SHUFFLE [RS_217]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select 
Operator [SEL_203]
+                                       Please refer to the previous Select 
Operator [SEL_215]
                                   <-Reducer 18 [SIMPLE_EDGE]
                                     SHUFFLE [RS_59]
                                       PartitionCols:_col1
                                       Merge Join Operator [MERGEJOIN_177] 
(rows=316788826 width=135)
-                                        
Conds:RS_217._col0=RS_200._col0(Inner),Output:["_col1","_col2","_col3"]
+                                        
Conds:RS_229._col0=RS_212._col0(Inner),Output:["_col1","_col2","_col3"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_200]
+                                        SHUFFLE [RS_212]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select 
Operator [SEL_198]
+                                           Please refer to the previous Select 
Operator [SEL_210]
                                       <-Map 23 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_217]
+                                        SHUFFLE [RS_229]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_216] 
(rows=287989836 width=135)
+                                          Select Operator [SEL_228] 
(rows=287989836 width=135)
                                             
Output:["_col0","_col1","_col2","_col3"]
-                                            Filter Operator [FIL_215] 
(rows=287989836 width=135)
+                                            Filter Operator [FIL_227] 
(rows=287989836 width=135)
                                               predicate:(cs_bill_addr_sk is 
not null and cs_item_sk is not null and cs_sold_date_sk is not null)
                                               TableScan [TS_47] 
(rows=287989836 width=135)
                                                 
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_bill_addr_sk","cs_item_sk","cs_ext_sales_price"]

http://git-wip-us.apache.org/repos/asf/hive/blob/e8f283cf/ql/src/test/results/clientpositive/perf/tez/query66.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query66.q.out 
b/ql/src/test/results/clientpositive/perf/tez/query66.q.out
index ab31c06..97c1636 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query66.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query66.q.out
@@ -461,26 +461,26 @@ Stage-0
     limit:-1
     Stage-1
       Reducer 9 vectorized
-      File Output Operator [FS_152]
-        Select Operator [SEL_151] (rows=100 width=135)
+      File Output Operator [FS_162]
+        Select Operator [SEL_161] (rows=100 width=135)
           
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"]
-          Limit [LIM_150] (rows=100 width=135)
+          Limit [LIM_160] (rows=100 width=135)
             Number of rows:100
-            Select Operator [SEL_149] (rows=158120068 width=135)
+            Select Operator [SEL_159] (rows=158120068 width=135)
               
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"]
             <-Reducer 8 [SIMPLE_EDGE] vectorized
-              SHUFFLE [RS_148]
-                Group By Operator [GBY_147] (rows=158120068 width=135)
+              SHUFFLE [RS_158]
+                Group By Operator [GBY_157] (rows=158120068 width=135)
                   
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)","sum(VALUE._col24)","sum(VALUE._col25)","sum(VALUE._col26)","sum(VALUE._col27)","sum(VALUE._col28)","sum(VALUE._col29)
 
","sum(VALUE._col30)","sum(VALUE._col31)","sum(VALUE._col32)","sum(VALUE._col33)","sum(VALUE._col34)","sum(VALUE._col35)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5
                 <-Union 7 [SIMPLE_EDGE]
                   <-Reducer 15 [CONTAINS] vectorized
-                    Reduce Output Operator [RS_159]
+                    Reduce Output Operator [RS_169]
                       PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5
-                      Group By Operator [GBY_158] (rows=316240137 width=135)
+                      Group By Operator [GBY_168] (rows=316240137 width=135)
                         
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"],aggregations:["sum(_col6)","sum(_col7)","sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)","sum(_col31)","sum(_col32)","sum(_col33)","sum(_col34)","sum(_col35)","sum(_col36)","sum(_col37)","sum(_col38)","sum(_col39)","sum(_col40)","sum(_col41)"],keys:_col0,
 _col1, _col2, _col3, _col4, _col5
-                        Select Operator [SEL_157] (rows=316240137 width=135)
+                        Select Operator [SEL_167] (rows=316240137 width=135)
                           
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"]
-                          Group By Operator [GBY_156] (rows=210822976 
width=135)
+                          Group By Operator [GBY_166] (rows=210822976 
width=135)
                             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5
                           <-Reducer 14 [SIMPLE_EDGE]
                             SHUFFLE [RS_63]
@@ -490,13 +490,13 @@ Stage-0
                                 Select Operator [SEL_60] (rows=421645953 
width=135)
                                   
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"]
                                   Merge Join Operator [MERGEJOIN_123] 
(rows=421645953 width=135)
-                                    
Conds:RS_57._col3=RS_142._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
+                                    
Conds:RS_57._col3=RS_152._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
                                   <-Map 18 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_142]
+                                    SHUFFLE [RS_152]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_140] (rows=27 
width=1029)
+                                      Select Operator [SEL_150] (rows=27 
width=1029)
                                         
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                        Filter Operator [FIL_139] (rows=27 
width=1029)
+                                        Filter Operator [FIL_149] (rows=27 
width=1029)
                                           predicate:w_warehouse_sk is not null
                                           TableScan [TS_12] (rows=27 
width=1029)
                                             
default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name","w_warehouse_sq_ft","w_city","w_county","w_state","w_country"]
@@ -504,13 +504,13 @@ Stage-0
                                     SHUFFLE [RS_57]
                                       PartitionCols:_col3
                                       Merge Join Operator [MERGEJOIN_122] 
(rows=383314495 width=135)
-                                        
Conds:RS_54._col2=RS_138._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
+                                        
Conds:RS_54._col2=RS_148._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_138]
+                                        SHUFFLE [RS_148]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_136] (rows=1 
width=0)
+                                          Select Operator [SEL_146] (rows=1 
width=0)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_135] (rows=1 
width=0)
+                                            Filter Operator [FIL_145] (rows=1 
width=0)
                                               predicate:((sm_carrier) IN 
('DIAMOND', 'AIRBORNE') and sm_ship_mode_sk is not null)
                                               TableScan [TS_9] (rows=1 width=0)
                                                 
default@ship_mode,ship_mode,Tbl:PARTIAL,Col:NONE,Output:["sm_ship_mode_sk","sm_carrier"]
@@ -518,13 +518,13 @@ Stage-0
                                         SHUFFLE [RS_54]
                                           PartitionCols:_col2
                                           Merge Join Operator [MERGEJOIN_121] 
(rows=348467716 width=135)
-                                            
Conds:RS_51._col0=RS_134._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
+                                            
Conds:RS_51._col0=RS_144._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
                                           <-Map 16 [SIMPLE_EDGE] vectorized
-                                            SHUFFLE [RS_134]
+                                            SHUFFLE [RS_144]
                                               PartitionCols:_col0
-                                              Select Operator [SEL_132] 
(rows=36524 width=1119)
+                                              Select Operator [SEL_142] 
(rows=36524 width=1119)
                                                 Output:["_col0","_col2"]
-                                                Filter Operator [FIL_131] 
(rows=36524 width=1119)
+                                                Filter Operator [FIL_141] 
(rows=36524 width=1119)
                                                   predicate:((d_year = 2002) 
and d_date_sk is not null)
                                                   TableScan [TS_6] (rows=73049 
width=1119)
                                                     
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
@@ -532,33 +532,33 @@ Stage-0
                                             SHUFFLE [RS_51]
                                               PartitionCols:_col0
                                               Merge Join Operator 
[MERGEJOIN_120] (rows=316788826 width=135)
-                                                
Conds:RS_155._col1=RS_130._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
+                                                
Conds:RS_165._col1=RS_140._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
                                               <-Map 10 [SIMPLE_EDGE] vectorized
-                                                SHUFFLE [RS_130]
+                                                SHUFFLE [RS_140]
                                                   PartitionCols:_col0
-                                                  Select Operator [SEL_128] 
(rows=9600 width=471)
+                                                  Select Operator [SEL_138] 
(rows=9600 width=471)
                                                     Output:["_col0"]
-                                                    Filter Operator [FIL_127] 
(rows=9600 width=471)
+                                                    Filter Operator [FIL_137] 
(rows=9600 width=471)
                                                       predicate:(t_time 
BETWEEN 49530 AND 78330 and t_time_sk is not null)
                                                       TableScan [TS_3] 
(rows=86400 width=471)
                                                         
default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_time"]
                                               <-Map 19 [SIMPLE_EDGE] vectorized
-                                                SHUFFLE [RS_155]
+                                                SHUFFLE [RS_165]
                                                   PartitionCols:_col1
-                                                  Select Operator [SEL_154] 
(rows=287989836 width=135)
+                                                  Select Operator [SEL_164] 
(rows=287989836 width=135)
                                                     
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                    Filter Operator [FIL_153] 
(rows=287989836 width=135)
+                                                    Filter Operator [FIL_163] 
(rows=287989836 width=135)
                                                       
predicate:(cs_ship_mode_sk is not null and cs_sold_date_sk is not null and 
cs_sold_time_sk is not null and cs_warehouse_sk is not null)
                                                       TableScan [TS_33] 
(rows=287989836 width=135)
                                                         
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_sold_time_sk","cs_ship_mode_sk","cs_warehouse_sk","cs_quantity","cs_ext_sales_price","cs_net_paid_inc_ship_tax"]
                   <-Reducer 6 [CONTAINS] vectorized
-                    Reduce Output Operator [RS_146]
+                    Reduce Output Operator [RS_156]
                       PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5
-                      Group By Operator [GBY_145] (rows=316240137 width=135)
+                      Group By Operator [GBY_155] (rows=316240137 width=135)
                         
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"],aggregations:["sum(_col6)","sum(_col7)","sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)","sum(_col31)","sum(_col32)","sum(_col33)","sum(_col34)","sum(_col35)","sum(_col36)","sum(_col37)","sum(_col38)","sum(_col39)","sum(_col40)","sum(_col41)"],keys:_col0,
 _col1, _col2, _col3, _col4, _col5
-                        Select Operator [SEL_144] (rows=316240137 width=135)
+                        Select Operator [SEL_154] (rows=316240137 width=135)
                           
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41"]
-                          Group By Operator [GBY_143] (rows=105417161 
width=135)
+                          Group By Operator [GBY_153] (rows=105417161 
width=135)
                             
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5
                           <-Reducer 5 [SIMPLE_EDGE]
                             SHUFFLE [RS_30]
@@ -568,44 +568,44 @@ Stage-0
                                 Select Operator [SEL_27] (rows=210834322 
width=135)
                                   
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"]
                                   Merge Join Operator [MERGEJOIN_119] 
(rows=210834322 width=135)
-                                    
Conds:RS_24._col3=RS_141._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
+                                    
Conds:RS_24._col3=RS_151._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
                                   <-Map 18 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_141]
+                                    SHUFFLE [RS_151]
                                       PartitionCols:_col0
-                                       Please refer to the previous Select 
Operator [SEL_140]
+                                       Please refer to the previous Select 
Operator [SEL_150]
                                   <-Reducer 4 [SIMPLE_EDGE]
                                     SHUFFLE [RS_24]
                                       PartitionCols:_col3
                                       Merge Join Operator [MERGEJOIN_118] 
(rows=191667562 width=135)
-                                        
Conds:RS_21._col2=RS_137._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
+                                        
Conds:RS_21._col2=RS_147._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
                                       <-Map 17 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_137]
+                                        SHUFFLE [RS_147]
                                           PartitionCols:_col0
-                                           Please refer to the previous Select 
Operator [SEL_136]
+                                           Please refer to the previous Select 
Operator [SEL_146]
                                       <-Reducer 3 [SIMPLE_EDGE]
                                         SHUFFLE [RS_21]
                                           PartitionCols:_col2
                                           Merge Join Operator [MERGEJOIN_117] 
(rows=174243235 width=135)
-                                            
Conds:RS_18._col0=RS_133._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
+                                            
Conds:RS_18._col0=RS_143._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
                                           <-Map 16 [SIMPLE_EDGE] vectorized
-                                            SHUFFLE [RS_133]
+                                            SHUFFLE [RS_143]
                                               PartitionCols:_col0
-                                               Please refer to the previous 
Select Operator [SEL_132]
+                                               Please refer to the previous 
Select Operator [SEL_142]
                                           <-Reducer 2 [SIMPLE_EDGE]
                                             SHUFFLE [RS_18]
                                               PartitionCols:_col0
                                               Merge Join Operator 
[MERGEJOIN_116] (rows=158402938 width=135)
-                                                
Conds:RS_126._col1=RS_129._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
+                                                
Conds:RS_136._col1=RS_139._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
                                               <-Map 10 [SIMPLE_EDGE] vectorized
-                                                SHUFFLE [RS_129]
+                                                SHUFFLE [RS_139]
                                                   PartitionCols:_col0
-                                                   Please refer to the 
previous Select Operator [SEL_128]
+                                                   Please refer to the 
previous Select Operator [SEL_138]
                                               <-Map 1 [SIMPLE_EDGE] vectorized
-                                                SHUFFLE [RS_126]
+                                                SHUFFLE [RS_136]
                                                   PartitionCols:_col1
-                                                  Select Operator [SEL_125] 
(rows=144002668 width=135)
+                                                  Select Operator [SEL_135] 
(rows=144002668 width=135)
                                                     
Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                    Filter Operator [FIL_124] 
(rows=144002668 width=135)
+                                                    Filter Operator [FIL_134] 
(rows=144002668 width=135)
                                                       
predicate:(ws_ship_mode_sk is not null and ws_sold_date_sk is not null and 
ws_sold_time_sk is not null and ws_warehouse_sk is not null)
                                                       TableScan [TS_0] 
(rows=144002668 width=135)
                                                         
default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_sold_time_sk","ws_ship_mode_sk","ws_warehouse_sk","ws_quantity","ws_sales_price","ws_net_paid_inc_tax"]

http://git-wip-us.apache.org/repos/asf/hive/blob/e8f283cf/ql/src/test/results/clientpositive/perf/tez/query71.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query71.q.out 
b/ql/src/test/results/clientpositive/perf/tez/query71.q.out
index c46c6db..7618826 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query71.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query71.q.out
@@ -90,14 +90,14 @@ Stage-0
     limit:-1
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_103]
-        Select Operator [SEL_102] (rows=670816149 width=108)
+      File Output Operator [FS_115]
+        Select Operator [SEL_114] (rows=670816149 width=108)
           Output:["_col0","_col1","_col2","_col3","_col4"]
         <-Reducer 6 [SIMPLE_EDGE] vectorized
-          SHUFFLE [RS_101]
-            Select Operator [SEL_100] (rows=670816149 width=108)
+          SHUFFLE [RS_113]
+            Select Operator [SEL_112] (rows=670816149 width=108)
               Output:["_col1","_col2","_col3","_col4","_col5"]
-              Group By Operator [GBY_99] (rows=670816149 width=108)
+              Group By Operator [GBY_111] (rows=670816149 width=108)
                 
Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0,
 KEY._col1, KEY._col2, KEY._col3
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_46]
@@ -105,13 +105,13 @@ Stage-0
                   Group By Operator [GBY_45] (rows=1341632299 width=108)
                     
Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(_col0)"],keys:_col4,
 _col8, _col9, _col5
                     Merge Join Operator [MERGEJOIN_86] (rows=1341632299 
width=108)
-                      
Conds:RS_41._col2=RS_98._col0(Inner),Output:["_col0","_col4","_col5","_col8","_col9"]
+                      
Conds:RS_41._col2=RS_110._col0(Inner),Output:["_col0","_col4","_col5","_col8","_col9"]
                     <-Map 16 [SIMPLE_EDGE] vectorized
-                      SHUFFLE [RS_98]
+                      SHUFFLE [RS_110]
                         PartitionCols:_col0
-                        Select Operator [SEL_97] (rows=86400 width=471)
+                        Select Operator [SEL_109] (rows=86400 width=471)
                           Output:["_col0","_col1","_col2"]
-                          Filter Operator [FIL_96] (rows=86400 width=471)
+                          Filter Operator [FIL_108] (rows=86400 width=471)
                             predicate:(((t_meal_time = 'breakfast') or 
(t_meal_time = 'dinner')) and t_time_sk is not null)
                             TableScan [TS_35] (rows=86400 width=471)
                               
default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_hour","t_minute","t_meal_time"]
@@ -119,89 +119,89 @@ Stage-0
                       SHUFFLE [RS_41]
                         PartitionCols:_col2
                         Merge Join Operator [MERGEJOIN_85] (rows=1219665700 
width=108)
-                          Conds:Union 
3._col1=RS_95._col0(Inner),Output:["_col0","_col2","_col4","_col5"]
+                          Conds:Union 
3._col1=RS_107._col0(Inner),Output:["_col0","_col2","_col4","_col5"]
                         <-Map 15 [SIMPLE_EDGE] vectorized
-                          SHUFFLE [RS_95]
+                          SHUFFLE [RS_107]
                             PartitionCols:_col0
-                            Select Operator [SEL_94] (rows=231000 width=1436)
+                            Select Operator [SEL_106] (rows=231000 width=1436)
                               Output:["_col0","_col1","_col2"]
-                              Filter Operator [FIL_93] (rows=231000 width=1436)
+                              Filter Operator [FIL_105] (rows=231000 
width=1436)
                                 predicate:((i_manager_id = 1) and i_item_sk is 
not null)
                                 TableScan [TS_32] (rows=462000 width=1436)
                                   
default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_brand","i_manager_id"]
                         <-Union 3 [SIMPLE_EDGE]
                           <-Reducer 10 [CONTAINS]
-                            Reduce Output Operator [RS_38]
+                            Reduce Output Operator [RS_94]
                               PartitionCols:_col1
-                              Select Operator [SEL_19] (rows=316788826 
width=135)
+                              Select Operator [SEL_92] (rows=316788826 
width=135)
                                 Output:["_col0","_col1","_col2"]
-                                Merge Join Operator [MERGEJOIN_83] 
(rows=316788826 width=135)
-                                  
Conds:RS_106._col0=RS_109._col0(Inner),Output:["_col1","_col2","_col3"]
+                                Merge Join Operator [MERGEJOIN_91] 
(rows=316788826 width=135)
+                                  
Conds:RS_118._col0=RS_121._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 11 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_109]
+                                  SHUFFLE [RS_121]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_108] (rows=18262 
width=1119)
+                                    Select Operator [SEL_120] (rows=18262 
width=1119)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_107] (rows=18262 
width=1119)
+                                      Filter Operator [FIL_119] (rows=18262 
width=1119)
                                         predicate:((d_moy = 12) and (d_year = 
2001) and d_date_sk is not null)
                                         TableScan [TS_13] (rows=73049 
width=1119)
                                           
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
                                 <-Map 9 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_106]
+                                  SHUFFLE [RS_118]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_105] (rows=287989836 
width=135)
+                                    Select Operator [SEL_117] (rows=287989836 
width=135)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_104] 
(rows=287989836 width=135)
+                                      Filter Operator [FIL_116] 
(rows=287989836 width=135)
                                         predicate:(cs_item_sk is not null and 
cs_sold_date_sk is not null and cs_sold_time_sk is not null)
                                         TableScan [TS_10] (rows=287989836 
width=135)
                                           
default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_sold_time_sk","cs_item_sk","cs_ext_sales_price"]
                           <-Reducer 13 [CONTAINS]
-                            Reduce Output Operator [RS_38]
+                            Reduce Output Operator [RS_98]
                               PartitionCols:_col1
-                              Select Operator [SEL_30] (rows=633595212 
width=88)
+                              Select Operator [SEL_96] (rows=633595212 
width=88)
                                 Output:["_col0","_col1","_col2"]
-                                Merge Join Operator [MERGEJOIN_84] 
(rows=633595212 width=88)
-                                  
Conds:RS_112._col0=RS_115._col0(Inner),Output:["_col1","_col2","_col3"]
+                                Merge Join Operator [MERGEJOIN_95] 
(rows=633595212 width=88)
+                                  
Conds:RS_124._col0=RS_127._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 12 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_112]
+                                  SHUFFLE [RS_124]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_111] (rows=575995635 
width=88)
+                                    Select Operator [SEL_123] (rows=575995635 
width=88)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_110] 
(rows=575995635 width=88)
+                                      Filter Operator [FIL_122] 
(rows=575995635 width=88)
                                         predicate:(ss_item_sk is not null and 
ss_sold_date_sk is not null and ss_sold_time_sk is not null)
                                         TableScan [TS_21] (rows=575995635 
width=88)
                                           
default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_sold_time_sk","ss_item_sk","ss_ext_sales_price"]
                                 <-Map 14 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_115]
+                                  SHUFFLE [RS_127]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_114] (rows=18262 
width=1119)
+                                    Select Operator [SEL_126] (rows=18262 
width=1119)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_113] (rows=18262 
width=1119)
+                                      Filter Operator [FIL_125] (rows=18262 
width=1119)
                                         predicate:((d_moy = 12) and (d_year = 
2001) and d_date_sk is not null)
                                         TableScan [TS_24] (rows=73049 
width=1119)
                                           
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
                           <-Reducer 2 [CONTAINS]
-                            Reduce Output Operator [RS_38]
+                            Reduce Output Operator [RS_90]
                               PartitionCols:_col1
-                              Select Operator [SEL_9] (rows=158402938 
width=135)
+                              Select Operator [SEL_88] (rows=158402938 
width=135)
                                 Output:["_col0","_col1","_col2"]
-                                Merge Join Operator [MERGEJOIN_82] 
(rows=158402938 width=135)
-                                  
Conds:RS_89._col0=RS_92._col0(Inner),Output:["_col1","_col2","_col3"]
+                                Merge Join Operator [MERGEJOIN_87] 
(rows=158402938 width=135)
+                                  
Conds:RS_101._col0=RS_104._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_89]
+                                  SHUFFLE [RS_101]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_88] (rows=144002668 
width=135)
+                                    Select Operator [SEL_100] (rows=144002668 
width=135)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_87] (rows=144002668 
width=135)
+                                      Filter Operator [FIL_99] (rows=144002668 
width=135)
                                         predicate:(ws_item_sk is not null and 
ws_sold_date_sk is not null and ws_sold_time_sk is not null)
                                         TableScan [TS_0] (rows=144002668 
width=135)
                                           
default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_sold_time_sk","ws_item_sk","ws_ext_sales_price"]
                                 <-Map 8 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_92]
+                                  SHUFFLE [RS_104]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_91] (rows=18262 
width=1119)
+                                    Select Operator [SEL_103] (rows=18262 
width=1119)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_90] (rows=18262 
width=1119)
+                                      Filter Operator [FIL_102] (rows=18262 
width=1119)
                                         predicate:((d_moy = 12) and (d_year = 
2001) and d_date_sk is not null)
                                         TableScan [TS_3] (rows=73049 
width=1119)
                                           
default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]

Reply via email to