You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2018/06/25 16:04:18 UTC

[15/51] [partial] hive git commit: HIVE-12342 : Set default value of hive.optimize.index.filter to true (Igor Kryvenko via Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/f2c4f319/ql/src/test/results/clientpositive/perf/tez/query19.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query19.q.out b/ql/src/test/results/clientpositive/perf/tez/query19.q.out
index ed963c0..7e7298d 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query19.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query19.q.out
@@ -49,29 +49,34 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 10 <- Map 12 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Map 9 <- Reducer 13 (BROADCAST_EDGE), Reducer 15 (BROADCAST_EDGE), Reducer 17 (BROADCAST_EDGE), Reducer 7 (BROADCAST_EDGE)
+Reducer 10 <- Map 12 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
+Reducer 11 <- Map 14 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
+Reducer 13 <- Map 12 (CUSTOM_SIMPLE_EDGE)
+Reducer 15 <- Map 14 (CUSTOM_SIMPLE_EDGE)
+Reducer 17 <- Map 16 (CUSTOM_SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 11 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 16 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 9 <- Map 11 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 2 (CUSTOM_SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:-1
     Stage-1
       Reducer 6 vectorized
-      File Output Operator [FS_97]
-        Limit [LIM_96] (rows=100 width=88)
+      File Output Operator [FS_164]
+        Limit [LIM_163] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_95] (rows=421657640 width=88)
+          Select Operator [SEL_162] (rows=421657640 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4"]
           <-Reducer 5 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_94]
-              Select Operator [SEL_93] (rows=421657640 width=88)
+            SHUFFLE [RS_161]
+              Select Operator [SEL_160] (rows=421657640 width=88)
                 Output:["_col2","_col3","_col4","_col5","_col6"]
-                Group By Operator [GBY_92] (rows=421657640 width=88)
+                Group By Operator [GBY_159] (rows=421657640 width=88)
                   Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
                 <-Reducer 4 [SIMPLE_EDGE]
                   SHUFFLE [RS_37]
@@ -82,80 +87,124 @@ Stage-0
                         Output:["_col8","_col13","_col14","_col15","_col16"]
                         Filter Operator [FIL_34] (rows=843315281 width=88)
                           predicate:(substr(_col3, 1, 5) <> substr(_col19, 1, 5))
-                          Merge Join Operator [MERGEJOIN_73] (rows=843315281 width=88)
-                            Conds:RS_31._col7=RS_91._col0(Inner),Output:["_col3","_col8","_col13","_col14","_col15","_col16","_col19"]
-                          <-Map 13 [SIMPLE_EDGE] vectorized
-                            SHUFFLE [RS_91]
+                          Merge Join Operator [MERGEJOIN_123] (rows=843315281 width=88)
+                            Conds:RS_31._col7=RS_150._col0(Inner),Output:["_col3","_col8","_col13","_col14","_col15","_col16","_col19"]
+                          <-Map 16 [SIMPLE_EDGE] vectorized
+                            SHUFFLE [RS_150]
                               PartitionCols:_col0
-                              Select Operator [SEL_90] (rows=1704 width=1910)
+                              Select Operator [SEL_149] (rows=1704 width=1910)
                                 Output:["_col0","_col1"]
-                                Filter Operator [FIL_89] (rows=1704 width=1910)
+                                Filter Operator [FIL_148] (rows=1704 width=1910)
                                   predicate:s_store_sk is not null
                                   TableScan [TS_22] (rows=1704 width=1910)
                                     default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_zip"]
                           <-Reducer 3 [SIMPLE_EDGE]
                             SHUFFLE [RS_31]
                               PartitionCols:_col7
-                              Merge Join Operator [MERGEJOIN_72] (rows=766650239 width=88)
+                              Merge Join Operator [MERGEJOIN_122] (rows=766650239 width=88)
                                 Conds:RS_28._col0=RS_29._col2(Inner),Output:["_col3","_col7","_col8","_col13","_col14","_col15","_col16"]
-                              <-Reducer 10 [SIMPLE_EDGE]
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                PARTITION_ONLY_SHUFFLE [RS_28]
+                                  PartitionCols:_col0
+                                  Merge Join Operator [MERGEJOIN_119] (rows=88000001 width=860)
+                                    Conds:RS_126._col1=RS_129._col0(Inner),Output:["_col0","_col3"]
+                                  <-Map 1 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_126]
+                                      PartitionCols:_col1
+                                      Select Operator [SEL_125] (rows=80000000 width=860)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_124] (rows=80000000 width=860)
+                                          predicate:(c_current_addr_sk is not null and c_customer_sk is not null)
+                                          TableScan [TS_0] (rows=80000000 width=860)
+                                            default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                                  <-Map 8 [SIMPLE_EDGE] vectorized
+                                    SHUFFLE [RS_129]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_128] (rows=40000000 width=1014)
+                                        Output:["_col0","_col1"]
+                                        Filter Operator [FIL_127] (rows=40000000 width=1014)
+                                          predicate:ca_address_sk is not null
+                                          TableScan [TS_3] (rows=40000000 width=1014)
+                                            default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_zip"]
+                              <-Reducer 11 [SIMPLE_EDGE]
                                 SHUFFLE [RS_29]
                                   PartitionCols:_col2
-                                  Merge Join Operator [MERGEJOIN_71] (rows=696954748 width=88)
-                                    Conds:RS_18._col1=RS_88._col0(Inner),Output:["_col2","_col3","_col4","_col9","_col10","_col11","_col12"]
-                                  <-Map 12 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_88]
+                                  Merge Join Operator [MERGEJOIN_121] (rows=696954748 width=88)
+                                    Conds:RS_18._col1=RS_140._col0(Inner),Output:["_col2","_col3","_col4","_col9","_col10","_col11","_col12"]
+                                  <-Map 14 [SIMPLE_EDGE] vectorized
+                                    PARTITION_ONLY_SHUFFLE [RS_140]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_87] (rows=231000 width=1436)
+                                      Select Operator [SEL_139] (rows=231000 width=1436)
                                         Output:["_col0","_col1","_col2","_col3","_col4"]
-                                        Filter Operator [FIL_86] (rows=231000 width=1436)
+                                        Filter Operator [FIL_138] (rows=231000 width=1436)
                                           predicate:((i_manager_id = 7) and i_item_sk is not null)
                                           TableScan [TS_12] (rows=462000 width=1436)
                                             default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_brand","i_manufact_id","i_manufact","i_manager_id"]
-                                  <-Reducer 9 [SIMPLE_EDGE]
+                                  <-Reducer 10 [SIMPLE_EDGE]
                                     SHUFFLE [RS_18]
                                       PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_70] (rows=633595212 width=88)
-                                        Conds:RS_82._col0=RS_85._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
-                                      <-Map 11 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_85]
+                                      Merge Join Operator [MERGEJOIN_120] (rows=633595212 width=88)
+                                        Conds:RS_158._col0=RS_132._col0(Inner),Output:["_col1","_col2","_col3","_col4"]
+                                      <-Map 12 [SIMPLE_EDGE] vectorized
+                                        PARTITION_ONLY_SHUFFLE [RS_132]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_84] (rows=18262 width=1119)
+                                          Select Operator [SEL_131] (rows=18262 width=1119)
                                             Output:["_col0"]
-                                            Filter Operator [FIL_83] (rows=18262 width=1119)
+                                            Filter Operator [FIL_130] (rows=18262 width=1119)
                                               predicate:((d_moy = 11) and (d_year = 1999) and d_date_sk is not null)
                                               TableScan [TS_9] (rows=73049 width=1119)
                                                 default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
-                                      <-Map 8 [SIMPLE_EDGE] vectorized
-                                        SHUFFLE [RS_82]
+                                      <-Map 9 [SIMPLE_EDGE] vectorized
+                                        SHUFFLE [RS_158]
                                           PartitionCols:_col0
-                                          Select Operator [SEL_81] (rows=575995635 width=88)
+                                          Select Operator [SEL_157] (rows=575995635 width=88)
                                             Output:["_col0","_col1","_col2","_col3","_col4"]
-                                            Filter Operator [FIL_80] (rows=575995635 width=88)
-                                              predicate:(ss_customer_sk is not null and ss_item_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null)
+                                            Filter Operator [FIL_156] (rows=575995635 width=88)
+                                              predicate:((ss_customer_sk BETWEEN DynamicValue(RS_28_customer_c_customer_sk_min) AND DynamicValue(RS_28_customer_c_customer_sk_max) and in_bloom_filter(ss_customer_sk, DynamicValue(RS_28_customer_c_customer_sk_bloom_filter))) and (ss_item_sk BETWEEN DynamicValue(RS_19_item_i_item_sk_min) AND DynamicValue(RS_19_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, DynamicValue(RS_19_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN DynamicValue(RS_16_date_dim_d_date_sk_min) AND DynamicValue(RS_16_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, DynamicValue(RS_16_date_dim_d_date_sk_bloom_filter))) and (ss_store_sk BETWEEN DynamicValue(RS_32_store_s_store_sk_min) AND DynamicValue(RS_32_store_s_store_sk_max) and in_bloom_filter(ss_store_sk, DynamicValue(RS_32_store_s_store_sk_bloom_filter))) and ss_customer_sk is not null and ss_item_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=88)
                                                 default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
-                              <-Reducer 2 [SIMPLE_EDGE]
-                                SHUFFLE [RS_28]
-                                  PartitionCols:_col0
-                                  Merge Join Operator [MERGEJOIN_69] (rows=88000001 width=860)
-                                    Conds:RS_76._col1=RS_79._col0(Inner),Output:["_col0","_col3"]
-                                  <-Map 1 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_76]
-                                      PartitionCols:_col1
-                                      Select Operator [SEL_75] (rows=80000000 width=860)
-                                        Output:["_col0","_col1"]
-                                        Filter Operator [FIL_74] (rows=80000000 width=860)
-                                          predicate:(c_current_addr_sk is not null and c_customer_sk is not null)
-                                          TableScan [TS_0] (rows=80000000 width=860)
-                                            default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
-                                  <-Map 7 [SIMPLE_EDGE] vectorized
-                                    SHUFFLE [RS_79]
-                                      PartitionCols:_col0
-                                      Select Operator [SEL_78] (rows=40000000 width=1014)
-                                        Output:["_col0","_col1"]
-                                        Filter Operator [FIL_77] (rows=40000000 width=1014)
-                                          predicate:ca_address_sk is not null
-                                          TableScan [TS_3] (rows=40000000 width=1014)
-                                            default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_zip"]
+                                              <-Reducer 13 [BROADCAST_EDGE] vectorized
+                                                BROADCAST [RS_137]
+                                                  Group By Operator [GBY_136] (rows=1 width=12)
+                                                    Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                                  <-Map 12 [CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE [RS_135]
+                                                      Group By Operator [GBY_134] (rows=1 width=12)
+                                                        Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                        Select Operator [SEL_133] (rows=18262 width=1119)
+                                                          Output:["_col0"]
+                                                           Please refer to the previous Select Operator [SEL_131]
+                                              <-Reducer 15 [BROADCAST_EDGE] vectorized
+                                                BROADCAST [RS_145]
+                                                  Group By Operator [GBY_144] (rows=1 width=12)
+                                                    Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                                  <-Map 14 [CUSTOM_SIMPLE_EDGE] vectorized
+                                                    PARTITION_ONLY_SHUFFLE [RS_143]
+                                                      Group By Operator [GBY_142] (rows=1 width=12)
+                                                        Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                        Select Operator [SEL_141] (rows=231000 width=1436)
+                                                          Output:["_col0"]
+                                                           Please refer to the previous Select Operator [SEL_139]
+                                              <-Reducer 17 [BROADCAST_EDGE] vectorized
+                                                BROADCAST [RS_155]
+                                                  Group By Operator [GBY_154] (rows=1 width=12)
+                                                    Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                                  <-Map 16 [CUSTOM_SIMPLE_EDGE] vectorized
+                                                    SHUFFLE [RS_153]
+                                                      Group By Operator [GBY_152] (rows=1 width=12)
+                                                        Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                        Select Operator [SEL_151] (rows=1704 width=1910)
+                                                          Output:["_col0"]
+                                                           Please refer to the previous Select Operator [SEL_149]
+                                              <-Reducer 7 [BROADCAST_EDGE] vectorized
+                                                BROADCAST [RS_147]
+                                                  Group By Operator [GBY_146] (rows=1 width=12)
+                                                    Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=88000000)"]
+                                                  <-Reducer 2 [CUSTOM_SIMPLE_EDGE]
+                                                    PARTITION_ONLY_SHUFFLE [RS_96]
+                                                      Group By Operator [GBY_95] (rows=1 width=12)
+                                                        Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=88000000)"]
+                                                        Select Operator [SEL_94] (rows=88000001 width=860)
+                                                          Output:["_col0"]
+                                                           Please refer to the previous Merge Join Operator [MERGEJOIN_119]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/f2c4f319/ql/src/test/results/clientpositive/perf/tez/query2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query2.q.out b/ql/src/test/results/clientpositive/perf/tez/query2.q.out
index f964747..d24899c 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query2.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query2.q.out
@@ -119,100 +119,167 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Union 2 (CONTAINS)
-Map 9 <- Union 2 (CONTAINS)
-Reducer 3 <- Map 10 (SIMPLE_EDGE), Union 2 (SIMPLE_EDGE)
+Map 1 <- Reducer 10 (BROADCAST_EDGE), Union 2 (CONTAINS)
+Map 16 <- Reducer 14 (BROADCAST_EDGE), Union 17 (CONTAINS)
+Map 18 <- Reducer 14 (BROADCAST_EDGE), Union 17 (CONTAINS)
+Map 8 <- Reducer 10 (BROADCAST_EDGE), Union 2 (CONTAINS)
+Reducer 10 <- Map 9 (CUSTOM_SIMPLE_EDGE)
+Reducer 11 <- Map 9 (SIMPLE_EDGE), Union 17 (SIMPLE_EDGE)
+Reducer 12 <- Reducer 11 (SIMPLE_EDGE)
+Reducer 13 <- Map 15 (SIMPLE_EDGE), Reducer 12 (ONE_TO_ONE_EDGE)
+Reducer 14 <- Map 9 (CUSTOM_SIMPLE_EDGE)
+Reducer 3 <- Map 9 (SIMPLE_EDGE), Union 2 (SIMPLE_EDGE)
 Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 11 (SIMPLE_EDGE), Reducer 4 (ONE_TO_ONE_EDGE)
-Reducer 6 <- Reducer 5 (ONE_TO_ONE_EDGE), Reducer 8 (SIMPLE_EDGE)
+Reducer 5 <- Map 15 (SIMPLE_EDGE), Reducer 4 (ONE_TO_ONE_EDGE)
+Reducer 6 <- Reducer 13 (SIMPLE_EDGE), Reducer 5 (ONE_TO_ONE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
-Reducer 8 <- Map 11 (SIMPLE_EDGE), Reducer 4 (ONE_TO_ONE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:-1
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_122]
-        Select Operator [SEL_121] (rows=287491028 width=135)
+      File Output Operator [FS_191]
+        Select Operator [SEL_190] (rows=287491028 width=135)
           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
         <-Reducer 6 [SIMPLE_EDGE]
           SHUFFLE [RS_58]
             Select Operator [SEL_57] (rows=287491028 width=135)
               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-              Merge Join Operator [MERGEJOIN_95] (rows=287491028 width=135)
+              Merge Join Operator [MERGEJOIN_143] (rows=287491028 width=135)
                 Conds:RS_54._col0=RS_55.(_col0 - 53)(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9","_col10","_col11","_col12","_col13","_col14","_col15"]
-              <-Reducer 5 [ONE_TO_ONE_EDGE]
-                FORWARD [RS_54]
-                  PartitionCols:_col0
-                  Merge Join Operator [MERGEJOIN_92] (rows=261355475 width=135)
-                    Conds:RS_113._col0=RS_119._col0(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                  <-Map 11 [SIMPLE_EDGE] vectorized
-                    SHUFFLE [RS_119]
+              <-Reducer 13 [SIMPLE_EDGE]
+                SHUFFLE [RS_55]
+                  PartitionCols:(_col0 - 53)
+                  Merge Join Operator [MERGEJOIN_142] (rows=261355475 width=135)
+                    Conds:RS_189._col0=RS_187._col0(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                  <-Map 15 [SIMPLE_EDGE] vectorized
+                    SHUFFLE [RS_187]
                       PartitionCols:_col0
-                      Select Operator [SEL_117] (rows=36524 width=1119)
+                      Select Operator [SEL_185] (rows=36524 width=1119)
                         Output:["_col0"]
-                        Filter Operator [FIL_115] (rows=36524 width=1119)
-                          predicate:((d_year = 2001) and d_week_seq is not null)
+                        Filter Operator [FIL_183] (rows=36524 width=1119)
+                          predicate:((d_year = 2002) and d_week_seq is not null)
                           TableScan [TS_20] (rows=73049 width=1119)
                             default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_week_seq","d_year"]
-                  <-Reducer 4 [ONE_TO_ONE_EDGE] vectorized
-                    FORWARD [RS_113]
+                  <-Reducer 12 [ONE_TO_ONE_EDGE] vectorized
+                    FORWARD [RS_189]
                       PartitionCols:_col0
-                      Group By Operator [GBY_112] (rows=237595882 width=135)
+                      Group By Operator [GBY_188] (rows=237595882 width=135)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)"],keys:KEY._col0
-                      <-Reducer 3 [SIMPLE_EDGE]
-                        SHUFFLE [RS_17]
+                      <-Reducer 11 [SIMPLE_EDGE]
+                        SHUFFLE [RS_44]
                           PartitionCols:_col0
-                          Group By Operator [GBY_16] (rows=475191764 width=135)
+                          Group By Operator [GBY_43] (rows=475191764 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col1)","sum(_col2)","sum(_col3)","sum(_col4)","sum(_col5)","sum(_col6)","sum(_col7)"],keys:_col0
-                            Select Operator [SEL_14] (rows=475191764 width=135)
+                            Select Operator [SEL_41] (rows=475191764 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                              Merge Join Operator [MERGEJOIN_91] (rows=475191764 width=135)
-                                Conds:Union 2._col0=RS_111._col0(Inner),Output:["_col1","_col3","_col4"]
-                              <-Map 10 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_111]
+                              Merge Join Operator [MERGEJOIN_141] (rows=475191764 width=135)
+                                Conds:Union 17._col0=RS_168._col0(Inner),Output:["_col1","_col3","_col4"]
+                              <-Map 9 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_168]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_110] (rows=73049 width=1119)
+                                  Select Operator [SEL_165] (rows=73049 width=1119)
                                     Output:["_col0","_col1","_col2"]
-                                    Filter Operator [FIL_109] (rows=73049 width=1119)
+                                    Filter Operator [FIL_164] (rows=73049 width=1119)
                                       predicate:(d_date_sk is not null and d_week_seq is not null)
                                       TableScan [TS_8] (rows=73049 width=1119)
                                         default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_week_seq","d_day_name"]
-                              <-Union 2 [SIMPLE_EDGE]
-                                <-Map 1 [CONTAINS] vectorized
-                                  Reduce Output Operator [RS_108]
+                              <-Union 17 [SIMPLE_EDGE]
+                                <-Map 16 [CONTAINS] vectorized
+                                  Reduce Output Operator [RS_200]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_107] (rows=144002668 width=135)
+                                    Select Operator [SEL_199] (rows=144002668 width=135)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_106] (rows=144002668 width=135)
-                                        predicate:ws_sold_date_sk is not null
-                                        TableScan [TS_96] (rows=144002668 width=135)
+                                      Filter Operator [FIL_198] (rows=144002668 width=135)
+                                        predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_39_date_dim_d_date_sk_min) AND DynamicValue(RS_39_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, DynamicValue(RS_39_date_dim_d_date_sk_bloom_filter))) and ws_sold_date_sk is not null)
+                                        TableScan [TS_154] (rows=144002668 width=135)
                                           Output:["ws_sold_date_sk","ws_ext_sales_price"]
-                                <-Map 9 [CONTAINS] vectorized
-                                  Reduce Output Operator [RS_125]
+                                        <-Reducer 14 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_196]
+                                            Group By Operator [GBY_195] (rows=1 width=12)
+                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                            <-Map 9 [CUSTOM_SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_173]
+                                                Group By Operator [GBY_171] (rows=1 width=12)
+                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                  Select Operator [SEL_169] (rows=73049 width=1119)
+                                                    Output:["_col0"]
+                                                     Please refer to the previous Select Operator [SEL_165]
+                                <-Map 18 [CONTAINS] vectorized
+                                  Reduce Output Operator [RS_203]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_124] (rows=287989836 width=135)
+                                    Select Operator [SEL_202] (rows=287989836 width=135)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_123] (rows=287989836 width=135)
-                                        predicate:cs_sold_date_sk is not null
-                                        TableScan [TS_101] (rows=287989836 width=135)
+                                      Filter Operator [FIL_201] (rows=287989836 width=135)
+                                        predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_39_date_dim_d_date_sk_min) AND DynamicValue(RS_39_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_39_date_dim_d_date_sk_bloom_filter))) and cs_sold_date_sk is not null)
+                                        TableScan [TS_159] (rows=287989836 width=135)
                                           Output:["cs_sold_date_sk","cs_ext_sales_price"]
-              <-Reducer 8 [SIMPLE_EDGE]
-                SHUFFLE [RS_55]
-                  PartitionCols:(_col0 - 53)
-                  Merge Join Operator [MERGEJOIN_94] (rows=261355475 width=135)
-                    Conds:RS_114._col0=RS_120._col0(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                  <-Map 11 [SIMPLE_EDGE] vectorized
-                    SHUFFLE [RS_120]
+                                        <-Reducer 14 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_197]
+                                             Please refer to the previous Group By Operator [GBY_195]
+              <-Reducer 5 [ONE_TO_ONE_EDGE]
+                FORWARD [RS_54]
+                  PartitionCols:_col0
+                  Merge Join Operator [MERGEJOIN_140] (rows=261355475 width=135)
+                    Conds:RS_181._col0=RS_186._col0(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                  <-Map 15 [SIMPLE_EDGE] vectorized
+                    SHUFFLE [RS_186]
                       PartitionCols:_col0
-                      Select Operator [SEL_118] (rows=36524 width=1119)
+                      Select Operator [SEL_184] (rows=36524 width=1119)
                         Output:["_col0"]
-                        Filter Operator [FIL_116] (rows=36524 width=1119)
-                          predicate:((d_year = 2002) and d_week_seq is not null)
+                        Filter Operator [FIL_182] (rows=36524 width=1119)
+                          predicate:((d_year = 2001) and d_week_seq is not null)
                            Please refer to the previous TableScan [TS_20]
                   <-Reducer 4 [ONE_TO_ONE_EDGE] vectorized
-                    FORWARD [RS_114]
+                    FORWARD [RS_181]
                       PartitionCols:_col0
-                       Please refer to the previous Group By Operator [GBY_112]
+                      Group By Operator [GBY_180] (rows=237595882 width=135)
+                        Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)"],keys:KEY._col0
+                      <-Reducer 3 [SIMPLE_EDGE]
+                        SHUFFLE [RS_17]
+                          PartitionCols:_col0
+                          Group By Operator [GBY_16] (rows=475191764 width=135)
+                            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"],aggregations:["sum(_col1)","sum(_col2)","sum(_col3)","sum(_col4)","sum(_col5)","sum(_col6)","sum(_col7)"],keys:_col0
+                            Select Operator [SEL_14] (rows=475191764 width=135)
+                              Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                              Merge Join Operator [MERGEJOIN_139] (rows=475191764 width=135)
+                                Conds:Union 2._col0=RS_166._col0(Inner),Output:["_col1","_col3","_col4"]
+                              <-Map 9 [SIMPLE_EDGE] vectorized
+                                SHUFFLE [RS_166]
+                                  PartitionCols:_col0
+                                   Please refer to the previous Select Operator [SEL_165]
+                              <-Union 2 [SIMPLE_EDGE]
+                                <-Map 1 [CONTAINS] vectorized
+                                  Reduce Output Operator [RS_179]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_178] (rows=144002668 width=135)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_177] (rows=144002668 width=135)
+                                        predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_12_date_dim_d_date_sk_min) AND DynamicValue(RS_12_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, DynamicValue(RS_12_date_dim_d_date_sk_bloom_filter))) and ws_sold_date_sk is not null)
+                                        TableScan [TS_144] (rows=144002668 width=135)
+                                          Output:["ws_sold_date_sk","ws_ext_sales_price"]
+                                        <-Reducer 10 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_175]
+                                            Group By Operator [GBY_174] (rows=1 width=12)
+                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                            <-Map 9 [CUSTOM_SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_172]
+                                                Group By Operator [GBY_170] (rows=1 width=12)
+                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                  Select Operator [SEL_167] (rows=73049 width=1119)
+                                                    Output:["_col0"]
+                                                     Please refer to the previous Select Operator [SEL_165]
+                                <-Map 8 [CONTAINS] vectorized
+                                  Reduce Output Operator [RS_194]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_193] (rows=287989836 width=135)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_192] (rows=287989836 width=135)
+                                        predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_12_date_dim_d_date_sk_min) AND DynamicValue(RS_12_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_12_date_dim_d_date_sk_bloom_filter))) and cs_sold_date_sk is not null)
+                                        TableScan [TS_149] (rows=287989836 width=135)
+                                          Output:["cs_sold_date_sk","cs_ext_sales_price"]
+                                        <-Reducer 10 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_176]
+                                             Please refer to the previous Group By Operator [GBY_174]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/f2c4f319/ql/src/test/results/clientpositive/perf/tez/query20.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query20.q.out b/ql/src/test/results/clientpositive/perf/tez/query20.q.out
index 632133e..da48c01 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query20.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query20.q.out
@@ -57,72 +57,97 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
+Map 1 <- Reducer 10 (BROADCAST_EDGE), Reducer 8 (BROADCAST_EDGE)
+Reducer 10 <- Map 9 (CUSTOM_SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 3 <- Map 8 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 3 <- Map 9 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
 Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
 Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 8 <- Map 7 (CUSTOM_SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:-1
     Stage-1
       Reducer 6 vectorized
-      File Output Operator [FS_56]
-        Limit [LIM_55] (rows=100 width=135)
+      File Output Operator [FS_86]
+        Limit [LIM_85] (rows=100 width=135)
           Number of rows:100
-          Select Operator [SEL_54] (rows=174233858 width=135)
+          Select Operator [SEL_84] (rows=174233858 width=135)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
           <-Reducer 5 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_53]
-              Select Operator [SEL_52] (rows=174233858 width=135)
+            SHUFFLE [RS_83]
+              Select Operator [SEL_82] (rows=174233858 width=135)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                PTF Operator [PTF_51] (rows=174233858 width=135)
+                PTF Operator [PTF_81] (rows=174233858 width=135)
                   Function definitions:[{},{"name:":"windowingtablefunction","order by:":"_col1 ASC NULLS FIRST","partition by:":"_col1"}]
-                  Select Operator [SEL_50] (rows=174233858 width=135)
+                  Select Operator [SEL_80] (rows=174233858 width=135)
                     Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
                   <-Reducer 4 [SIMPLE_EDGE] vectorized
-                    SHUFFLE [RS_49]
+                    SHUFFLE [RS_79]
                       PartitionCols:_col1
-                      Group By Operator [GBY_48] (rows=174233858 width=135)
+                      Group By Operator [GBY_78] (rows=174233858 width=135)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
                       <-Reducer 3 [SIMPLE_EDGE]
                         SHUFFLE [RS_17]
                           PartitionCols:_col0, _col1, _col2, _col3, _col4
                           Group By Operator [GBY_16] (rows=348467716 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(_col2)"],keys:_col10, _col9, _col6, _col7, _col8
-                            Merge Join Operator [MERGEJOIN_38] (rows=348467716 width=135)
-                              Conds:RS_12._col1=RS_47._col0(Inner),Output:["_col2","_col6","_col7","_col8","_col9","_col10"]
-                            <-Map 8 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_47]
+                            Merge Join Operator [MERGEJOIN_58] (rows=348467716 width=135)
+                              Conds:RS_12._col1=RS_69._col0(Inner),Output:["_col2","_col6","_col7","_col8","_col9","_col10"]
+                            <-Map 9 [SIMPLE_EDGE] vectorized
+                              SHUFFLE [RS_69]
                                 PartitionCols:_col0
-                                Select Operator [SEL_46] (rows=231000 width=1436)
+                                Select Operator [SEL_68] (rows=231000 width=1436)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                  Filter Operator [FIL_45] (rows=231000 width=1436)
+                                  Filter Operator [FIL_67] (rows=231000 width=1436)
                                     predicate:((i_category) IN ('Jewelry', 'Sports', 'Books') and i_item_sk is not null)
                                     TableScan [TS_6] (rows=462000 width=1436)
                                       default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc","i_current_price","i_class","i_category"]
                             <-Reducer 2 [SIMPLE_EDGE]
                               SHUFFLE [RS_12]
                                 PartitionCols:_col1
-                                Merge Join Operator [MERGEJOIN_37] (rows=316788826 width=135)
-                                  Conds:RS_41._col0=RS_44._col0(Inner),Output:["_col1","_col2"]
-                                <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_41]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_40] (rows=287989836 width=135)
-                                      Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_39] (rows=287989836 width=135)
-                                        predicate:(cs_item_sk is not null and cs_sold_date_sk is not null)
-                                        TableScan [TS_0] (rows=287989836 width=135)
-                                          default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_ext_sales_price"]
+                                Merge Join Operator [MERGEJOIN_57] (rows=316788826 width=135)
+                                  Conds:RS_77._col0=RS_61._col0(Inner),Output:["_col1","_col2"]
                                 <-Map 7 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_44]
+                                  PARTITION_ONLY_SHUFFLE [RS_61]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_43] (rows=8116 width=1119)
+                                    Select Operator [SEL_60] (rows=8116 width=1119)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_42] (rows=8116 width=1119)
+                                      Filter Operator [FIL_59] (rows=8116 width=1119)
                                         predicate:(CAST( d_date AS TIMESTAMP) BETWEEN TIMESTAMP'2001-01-12 00:00:00.0' AND TIMESTAMP'2001-02-11 00:00:00.0' 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_date"]
+                                <-Map 1 [SIMPLE_EDGE] vectorized
+                                  SHUFFLE [RS_77]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_76] (rows=287989836 width=135)
+                                      Output:["_col0","_col1","_col2"]
+                                      Filter Operator [FIL_75] (rows=287989836 width=135)
+                                        predicate:((cs_item_sk BETWEEN DynamicValue(RS_13_item_i_item_sk_min) AND DynamicValue(RS_13_item_i_item_sk_max) and in_bloom_filter(cs_item_sk, DynamicValue(RS_13_item_i_item_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN DynamicValue(RS_10_date_dim_d_date_sk_min) AND DynamicValue(RS_10_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_10_date_dim_d_date_sk_bloom_filter))) and cs_item_sk is not null and cs_sold_date_sk is not null)
+                                        TableScan [TS_0] (rows=287989836 width=135)
+                                          default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_ext_sales_price"]
+                                        <-Reducer 10 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_74]
+                                            Group By Operator [GBY_73] (rows=1 width=12)
+                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                            <-Map 9 [CUSTOM_SIMPLE_EDGE] vectorized
+                                              SHUFFLE [RS_72]
+                                                Group By Operator [GBY_71] (rows=1 width=12)
+                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                  Select Operator [SEL_70] (rows=231000 width=1436)
+                                                    Output:["_col0"]
+                                                     Please refer to the previous Select Operator [SEL_68]
+                                        <-Reducer 8 [BROADCAST_EDGE] vectorized
+                                          BROADCAST [RS_66]
+                                            Group By Operator [GBY_65] (rows=1 width=12)
+                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                            <-Map 7 [CUSTOM_SIMPLE_EDGE] vectorized
+                                              PARTITION_ONLY_SHUFFLE [RS_64]
+                                                Group By Operator [GBY_63] (rows=1 width=12)
+                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                  Select Operator [SEL_62] (rows=8116 width=1119)
+                                                    Output:["_col0"]
+                                                     Please refer to the previous Select Operator [SEL_60]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/f2c4f319/ql/src/test/results/clientpositive/perf/tez/query21.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query21.q.out b/ql/src/test/results/clientpositive/perf/tez/query21.q.out
index f741075..d4065c8 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query21.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query21.q.out
@@ -70,10 +70,10 @@ Stage-0
     limit:100
     Stage-1
       Reducer 6 vectorized
-      File Output Operator [FS_63]
-        Limit [LIM_62] (rows=100 width=15)
+      File Output Operator [FS_93]
+        Limit [LIM_92] (rows=100 width=15)
           Number of rows:100
-          Select Operator [SEL_61] (rows=12506076 width=15)
+          Select Operator [SEL_91] (rows=12506076 width=15)
             Output:["_col0","_col1","_col2","_col3"]
           <-Reducer 5 [SIMPLE_EDGE]
             SHUFFLE [RS_28]
@@ -88,51 +88,51 @@ Stage-0
                       Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col2)","sum(_col3)"],keys:_col0, _col1
                       Select Operator [SEL_21] (rows=50024305 width=15)
                         Output:["_col0","_col1","_col2","_col3"]
-                        Merge Join Operator [MERGEJOIN_47] (rows=50024305 width=15)
-                          Conds:RS_18._col2=RS_59._col0(Inner),Output:["_col3","_col5","_col7","_col10"]
+                        Merge Join Operator [MERGEJOIN_77] (rows=50024305 width=15)
+                          Conds:RS_18._col2=RS_89._col0(Inner),Output:["_col3","_col5","_col7","_col10"]
                         <-Map 9 [SIMPLE_EDGE] vectorized
-                          SHUFFLE [RS_59]
+                          SHUFFLE [RS_89]
                             PartitionCols:_col0
-                            Select Operator [SEL_58] (rows=27 width=1029)
+                            Select Operator [SEL_88] (rows=27 width=1029)
                               Output:["_col0","_col1"]
-                              Filter Operator [FIL_57] (rows=27 width=1029)
+                              Filter Operator [FIL_87] (rows=27 width=1029)
                                 predicate:w_warehouse_sk is not null
                                 TableScan [TS_9] (rows=27 width=1029)
                                   default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name"]
                         <-Reducer 3 [SIMPLE_EDGE]
                           SHUFFLE [RS_18]
                             PartitionCols:_col2
-                            Merge Join Operator [MERGEJOIN_46] (rows=45476640 width=15)
-                              Conds:RS_15._col1=RS_56._col0(Inner),Output:["_col2","_col3","_col5","_col7"]
+                            Merge Join Operator [MERGEJOIN_76] (rows=45476640 width=15)
+                              Conds:RS_15._col1=RS_86._col0(Inner),Output:["_col2","_col3","_col5","_col7"]
                             <-Map 8 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_56]
+                              SHUFFLE [RS_86]
                                 PartitionCols:_col0
-                                Select Operator [SEL_55] (rows=51333 width=1436)
+                                Select Operator [SEL_85] (rows=51333 width=1436)
                                   Output:["_col0","_col1"]
-                                  Filter Operator [FIL_54] (rows=51333 width=1436)
+                                  Filter Operator [FIL_84] (rows=51333 width=1436)
                                     predicate:(i_current_price BETWEEN 0.99 AND 1.49 and i_item_sk is not null)
                                     TableScan [TS_6] (rows=462000 width=1436)
                                       default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_current_price"]
                             <-Reducer 2 [SIMPLE_EDGE]
                               SHUFFLE [RS_15]
                                 PartitionCols:_col1
-                                Merge Join Operator [MERGEJOIN_45] (rows=41342400 width=15)
-                                  Conds:RS_50._col0=RS_53._col0(Inner),Output:["_col1","_col2","_col3","_col5"]
+                                Merge Join Operator [MERGEJOIN_75] (rows=41342400 width=15)
+                                  Conds:RS_80._col0=RS_83._col0(Inner),Output:["_col1","_col2","_col3","_col5"]
                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_50]
+                                  SHUFFLE [RS_80]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_49] (rows=37584000 width=15)
+                                    Select Operator [SEL_79] (rows=37584000 width=15)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_48] (rows=37584000 width=15)
+                                      Filter Operator [FIL_78] (rows=37584000 width=15)
                                         predicate:(inv_date_sk is not null and inv_item_sk is not null and inv_warehouse_sk is not null)
                                         TableScan [TS_0] (rows=37584000 width=15)
                                           default@inventory,inventory,Tbl:COMPLETE,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
                                 <-Map 7 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_53]
+                                  SHUFFLE [RS_83]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_52] (rows=8116 width=1119)
+                                    Select Operator [SEL_82] (rows=8116 width=1119)
                                       Output:["_col0","_col1"]
-                                      Filter Operator [FIL_51] (rows=8116 width=1119)
+                                      Filter Operator [FIL_81] (rows=8116 width=1119)
                                         predicate:(CAST( d_date AS TIMESTAMP) BETWEEN TIMESTAMP'1998-03-08 23:00:00.0' AND TIMESTAMP'1998-05-08 00:00:00.0' 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_date"]

http://git-wip-us.apache.org/repos/asf/hive/blob/f2c4f319/ql/src/test/results/clientpositive/perf/tez/query22.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query22.q.out b/ql/src/test/results/clientpositive/perf/tez/query22.q.out
index 73b6e8e..cfe780a 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query22.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query22.q.out
@@ -54,67 +54,67 @@ Stage-0
     limit:100
     Stage-1
       Reducer 6 vectorized
-      File Output Operator [FS_63]
-        Limit [LIM_62] (rows=100 width=15)
+      File Output Operator [FS_93]
+        Limit [LIM_92] (rows=100 width=15)
           Number of rows:100
-          Select Operator [SEL_61] (rows=125060762 width=15)
+          Select Operator [SEL_91] (rows=125060762 width=15)
             Output:["_col0","_col1","_col2","_col3","_col4"]
           <-Reducer 5 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_60]
-              Select Operator [SEL_59] (rows=125060762 width=15)
+            SHUFFLE [RS_90]
+              Select Operator [SEL_89] (rows=125060762 width=15)
                 Output:["_col0","_col1","_col2","_col3","_col4"]
-                Group By Operator [GBY_58] (rows=125060762 width=15)
+                Group By Operator [GBY_88] (rows=125060762 width=15)
                   Output:["_col0","_col1","_col2","_col3","_col5","_col6"],aggregations:["sum(VALUE._col0)","count(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
                 <-Reducer 4 [SIMPLE_EDGE]
                   SHUFFLE [RS_23]
                     PartitionCols:_col0, _col1, _col2, _col3, _col4
                     Group By Operator [GBY_22] (rows=250121525 width=15)
                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(_col3)","count(_col3)"],keys:_col8, _col9, _col10, _col11, 0L
-                      Merge Join Operator [MERGEJOIN_45] (rows=50024305 width=15)
-                        Conds:RS_18._col1=RS_57._col0(Inner),Output:["_col3","_col8","_col9","_col10","_col11"]
+                      Merge Join Operator [MERGEJOIN_75] (rows=50024305 width=15)
+                        Conds:RS_18._col1=RS_87._col0(Inner),Output:["_col3","_col8","_col9","_col10","_col11"]
                       <-Map 9 [SIMPLE_EDGE] vectorized
-                        SHUFFLE [RS_57]
+                        SHUFFLE [RS_87]
                           PartitionCols:_col0
-                          Select Operator [SEL_56] (rows=462000 width=1436)
+                          Select Operator [SEL_86] (rows=462000 width=1436)
                             Output:["_col0","_col1","_col2","_col3","_col4"]
-                            Filter Operator [FIL_55] (rows=462000 width=1436)
+                            Filter Operator [FIL_85] (rows=462000 width=1436)
                               predicate:i_item_sk is not null
                               TableScan [TS_9] (rows=462000 width=1436)
                                 default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand","i_class","i_category","i_product_name"]
                       <-Reducer 3 [SIMPLE_EDGE]
                         SHUFFLE [RS_18]
                           PartitionCols:_col1
-                          Merge Join Operator [MERGEJOIN_44] (rows=45476640 width=15)
-                            Conds:RS_15._col2=RS_54._col0(Inner),Output:["_col1","_col3"]
+                          Merge Join Operator [MERGEJOIN_74] (rows=45476640 width=15)
+                            Conds:RS_15._col2=RS_84._col0(Inner),Output:["_col1","_col3"]
                           <-Map 8 [SIMPLE_EDGE] vectorized
-                            SHUFFLE [RS_54]
+                            SHUFFLE [RS_84]
                               PartitionCols:_col0
-                              Select Operator [SEL_53] (rows=27 width=1029)
+                              Select Operator [SEL_83] (rows=27 width=1029)
                                 Output:["_col0"]
-                                Filter Operator [FIL_52] (rows=27 width=1029)
+                                Filter Operator [FIL_82] (rows=27 width=1029)
                                   predicate:w_warehouse_sk is not null
                                   TableScan [TS_6] (rows=27 width=1029)
                                     default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk"]
                           <-Reducer 2 [SIMPLE_EDGE]
                             SHUFFLE [RS_15]
                               PartitionCols:_col2
-                              Merge Join Operator [MERGEJOIN_43] (rows=41342400 width=15)
-                                Conds:RS_48._col0=RS_51._col0(Inner),Output:["_col1","_col2","_col3"]
+                              Merge Join Operator [MERGEJOIN_73] (rows=41342400 width=15)
+                                Conds:RS_78._col0=RS_81._col0(Inner),Output:["_col1","_col2","_col3"]
                               <-Map 1 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_48]
+                                SHUFFLE [RS_78]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_47] (rows=37584000 width=15)
+                                  Select Operator [SEL_77] (rows=37584000 width=15)
                                     Output:["_col0","_col1","_col2","_col3"]
-                                    Filter Operator [FIL_46] (rows=37584000 width=15)
+                                    Filter Operator [FIL_76] (rows=37584000 width=15)
                                       predicate:(inv_date_sk is not null and inv_item_sk is not null and inv_warehouse_sk is not null)
                                       TableScan [TS_0] (rows=37584000 width=15)
                                         default@inventory,inventory,Tbl:COMPLETE,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
                               <-Map 7 [SIMPLE_EDGE] vectorized
-                                SHUFFLE [RS_51]
+                                SHUFFLE [RS_81]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_50] (rows=8116 width=1119)
+                                  Select Operator [SEL_80] (rows=8116 width=1119)
                                     Output:["_col0"]
-                                    Filter Operator [FIL_49] (rows=8116 width=1119)
+                                    Filter Operator [FIL_79] (rows=8116 width=1119)
                                       predicate:(d_date_sk is not null and d_month_seq BETWEEN 1212 AND 1223)
                                       TableScan [TS_3] (rows=73049 width=1119)
                                         default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]