You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2018/11/26 23:32:24 UTC

[06/37] hive git commit: HIVE-20775: Factor cost of each SJ reduction when costing a follow-up reduction (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/e986fc56/ql/src/test/results/clientpositive/perf/tez/query69.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query69.q.out b/ql/src/test/results/clientpositive/perf/tez/query69.q.out
index 4da7a69..21e5523 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query69.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query69.q.out
@@ -109,24 +109,21 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 14 <- Reducer 11 (BROADCAST_EDGE), Reducer 17 (BROADCAST_EDGE)
-Map 24 <- Reducer 10 (BROADCAST_EDGE), Reducer 20 (BROADCAST_EDGE)
-Map 25 <- Reducer 23 (BROADCAST_EDGE), Reducer 9 (BROADCAST_EDGE)
+Map 13 <- Reducer 16 (BROADCAST_EDGE)
+Map 21 <- Reducer 10 (BROADCAST_EDGE)
+Map 22 <- Reducer 9 (BROADCAST_EDGE)
 Reducer 10 <- Reducer 4 (CUSTOM_SIMPLE_EDGE)
-Reducer 11 <- Reducer 3 (CUSTOM_SIMPLE_EDGE)
-Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 16 (SIMPLE_EDGE)
-Reducer 17 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 18 <- Map 16 (SIMPLE_EDGE), Map 24 (SIMPLE_EDGE)
-Reducer 19 <- Reducer 18 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 12 (SIMPLE_EDGE)
-Reducer 20 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 21 <- Map 16 (SIMPLE_EDGE), Map 25 (SIMPLE_EDGE)
-Reducer 22 <- Reducer 21 (SIMPLE_EDGE)
-Reducer 23 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 3 <- Map 13 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 15 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 19 (ONE_TO_ONE_EDGE), Reducer 4 (ONE_TO_ONE_EDGE)
-Reducer 6 <- Reducer 22 (ONE_TO_ONE_EDGE), Reducer 5 (ONE_TO_ONE_EDGE)
+Reducer 14 <- Map 13 (SIMPLE_EDGE), Map 15 (SIMPLE_EDGE)
+Reducer 16 <- Map 15 (CUSTOM_SIMPLE_EDGE)
+Reducer 17 <- Map 15 (SIMPLE_EDGE), Map 21 (SIMPLE_EDGE)
+Reducer 18 <- Reducer 17 (SIMPLE_EDGE)
+Reducer 19 <- Map 15 (SIMPLE_EDGE), Map 22 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 11 (SIMPLE_EDGE)
+Reducer 20 <- Reducer 19 (SIMPLE_EDGE)
+Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 14 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 18 (ONE_TO_ONE_EDGE), Reducer 4 (ONE_TO_ONE_EDGE)
+Reducer 6 <- Reducer 20 (ONE_TO_ONE_EDGE), Reducer 5 (ONE_TO_ONE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Reducer 5 (CUSTOM_SIMPLE_EDGE)
@@ -136,16 +133,16 @@ Stage-0
     limit:100
     Stage-1
       Reducer 8 vectorized
-      File Output Operator [FS_240]
-        Limit [LIM_239] (rows=1 width=383)
+      File Output Operator [FS_228]
+        Limit [LIM_227] (rows=1 width=383)
           Number of rows:100
-          Select Operator [SEL_238] (rows=1 width=383)
+          Select Operator [SEL_226] (rows=1 width=383)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
           <-Reducer 7 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_237]
-              Select Operator [SEL_236] (rows=1 width=383)
+            SHUFFLE [RS_225]
+              Select Operator [SEL_224] (rows=1 width=383)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col6"]
-                Group By Operator [GBY_235] (rows=1 width=367)
+                Group By Operator [GBY_223] (rows=1 width=367)
                   Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["count(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
                 <-Reducer 6 [SIMPLE_EDGE]
                   SHUFFLE [RS_69]
@@ -159,7 +156,7 @@ Stage-0
                           Filter Operator [FIL_66] (rows=1 width=363)
                             predicate:_col14 is null
                             Merge Join Operator [MERGEJOIN_184] (rows=1 width=363)
-                              Conds:RS_63._col0=RS_234._col0(Left Outer),Output:["_col6","_col7","_col8","_col9","_col10","_col14"]
+                              Conds:RS_63._col0=RS_222._col0(Left Outer),Output:["_col6","_col7","_col8","_col9","_col10","_col14"]
                             <-Reducer 5 [ONE_TO_ONE_EDGE]
                               PARTITION_ONLY_SHUFFLE [RS_63]
                                 PartitionCols:_col0
@@ -168,18 +165,56 @@ Stage-0
                                   Filter Operator [FIL_47] (rows=1 width=367)
                                     predicate:_col12 is null
                                     Merge Join Operator [MERGEJOIN_183] (rows=33 width=367)
-                                      Conds:RS_44._col0=RS_224._col0(Left Outer),Output:["_col0","_col6","_col7","_col8","_col9","_col10","_col12"]
+                                      Conds:RS_44._col0=RS_214._col0(Left Outer),Output:["_col0","_col6","_col7","_col8","_col9","_col10","_col12"]
                                     <-Reducer 4 [ONE_TO_ONE_EDGE]
                                       FORWARD [RS_44]
                                         PartitionCols:_col0
                                         Merge Join Operator [MERGEJOIN_182] (rows=6841 width=363)
                                           Conds:RS_41._col0=RS_42._col0(Left Semi),Output:["_col0","_col6","_col7","_col8","_col9","_col10"]
+                                        <-Reducer 14 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_42]
+                                            PartitionCols:_col0
+                                            Group By Operator [GBY_40] (rows=116289 width=1)
+                                              Output:["_col0"],keys:_col0
+                                              Select Operator [SEL_18] (rows=43153353 width=1)
+                                                Output:["_col0"]
+                                                Merge Join Operator [MERGEJOIN_179] (rows=43153353 width=1)
+                                                  Conds:RS_206._col0=RS_196._col0(Inner),Output:["_col1"]
+                                                <-Map 15 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_196]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_195] (rows=150 width=4)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_194] (rows=150 width=12)
+                                                        predicate:((d_year = 1999) and d_date_sk is not null and d_moy BETWEEN 1 AND 3)
+                                                        TableScan [TS_12] (rows=73049 width=12)
+                                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
+                                                <-Map 13 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_206]
+                                                    PartitionCols:_col0
+                                                    Select Operator [SEL_205] (rows=525327388 width=7)
+                                                      Output:["_col0","_col1"]
+                                                      Filter Operator [FIL_204] (rows=525327388 width=7)
+                                                        predicate:((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_customer_sk is not null and ss_sold_date_sk is not null)
+                                                        TableScan [TS_9] (rows=575995635 width=7)
+                                                          default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_customer_sk"]
+                                                        <-Reducer 16 [BROADCAST_EDGE] vectorized
+                                                          BROADCAST [RS_203]
+                                                            Group By Operator [GBY_202] (rows=1 width=12)
+                                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
+                                                            <-Map 15 [CUSTOM_SIMPLE_EDGE] vectorized
+                                                              SHUFFLE [RS_201]
+                                                                Group By Operator [GBY_200] (rows=1 width=12)
+                                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
+                                                                  Select Operator [SEL_197] (rows=150 width=4)
+                                                                    Output:["_col0"]
+                                                                     Please refer to the previous Select Operator [SEL_195]
                                         <-Reducer 3 [SIMPLE_EDGE]
                                           SHUFFLE [RS_41]
                                             PartitionCols:_col0
                                             Merge Join Operator [MERGEJOIN_178] (rows=4605476 width=363)
                                               Conds:RS_36._col1=RS_193._col0(Inner),Output:["_col0","_col6","_col7","_col8","_col9","_col10"]
-                                            <-Map 13 [SIMPLE_EDGE] vectorized
+                                            <-Map 12 [SIMPLE_EDGE] vectorized
                                               SHUFFLE [RS_193]
                                                 PartitionCols:_col0
                                                 Select Operator [SEL_192] (rows=1861800 width=363)
@@ -202,7 +237,7 @@ Stage-0
                                                         predicate:(c_current_addr_sk is not null and c_current_cdemo_sk is not null and c_customer_sk is not null)
                                                         TableScan [TS_0] (rows=80000000 width=11)
                                                           default@customer,c,Tbl:COMPLETE,Col:COMPLETE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk"]
-                                                <-Map 12 [SIMPLE_EDGE] vectorized
+                                                <-Map 11 [SIMPLE_EDGE] vectorized
                                                   SHUFFLE [RS_190]
                                                     PartitionCols:_col0
                                                     Select Operator [SEL_189] (rows=2352941 width=90)
@@ -211,85 +246,36 @@ Stage-0
                                                         predicate:((ca_state) IN ('CO', 'IL', 'MN') and ca_address_sk is not null)
                                                         TableScan [TS_3] (rows=40000000 width=90)
                                                           default@customer_address,ca,Tbl:COMPLETE,Col:COMPLETE,Output:["ca_address_sk","ca_state"]
-                                        <-Reducer 15 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_42]
-                                            PartitionCols:_col0
-                                            Group By Operator [GBY_40] (rows=116289 width=1)
-                                              Output:["_col0"],keys:_col0
-                                              Select Operator [SEL_18] (rows=43153353 width=1)
-                                                Output:["_col0"]
-                                                Merge Join Operator [MERGEJOIN_179] (rows=43153353 width=1)
-                                                  Conds:RS_214._col0=RS_196._col0(Inner),Output:["_col1"]
-                                                <-Map 16 [SIMPLE_EDGE] vectorized
-                                                  PARTITION_ONLY_SHUFFLE [RS_196]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_195] (rows=150 width=4)
-                                                      Output:["_col0"]
-                                                      Filter Operator [FIL_194] (rows=150 width=12)
-                                                        predicate:((d_year = 1999) and d_date_sk is not null and d_moy BETWEEN 1 AND 3)
-                                                        TableScan [TS_12] (rows=73049 width=12)
-                                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
-                                                <-Map 14 [SIMPLE_EDGE] vectorized
-                                                  SHUFFLE [RS_214]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_213] (rows=525327388 width=7)
-                                                      Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_212] (rows=525327388 width=7)
-                                                        predicate:((ss_customer_sk BETWEEN DynamicValue(RS_41_c_c_customer_sk_min) AND DynamicValue(RS_41_c_c_customer_sk_max) and in_bloom_filter(ss_customer_sk, DynamicValue(RS_41_c_c_customer_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_customer_sk is not null and ss_sold_date_sk is not null)
-                                                        TableScan [TS_9] (rows=575995635 width=7)
-                                                          default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_customer_sk"]
-                                                        <-Reducer 11 [BROADCAST_EDGE] vectorized
-                                                          BROADCAST [RS_211]
-                                                            Group By Operator [GBY_210] (rows=1 width=12)
-                                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=4291485)"]
-                                                            <-Reducer 3 [CUSTOM_SIMPLE_EDGE]
-                                                              SHUFFLE [RS_138]
-                                                                Group By Operator [GBY_137] (rows=1 width=12)
-                                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=4291485)"]
-                                                                  Select Operator [SEL_136] (rows=4605476 width=4)
-                                                                    Output:["_col0"]
-                                                                     Please refer to the previous Merge Join Operator [MERGEJOIN_178]
-                                                        <-Reducer 17 [BROADCAST_EDGE] vectorized
-                                                          BROADCAST [RS_209]
-                                                            Group By Operator [GBY_208] (rows=1 width=12)
-                                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                                            <-Map 16 [CUSTOM_SIMPLE_EDGE] vectorized
-                                                              PARTITION_ONLY_SHUFFLE [RS_205]
-                                                                Group By Operator [GBY_202] (rows=1 width=12)
-                                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                                  Select Operator [SEL_197] (rows=150 width=4)
-                                                                    Output:["_col0"]
-                                                                     Please refer to the previous Select Operator [SEL_195]
-                                    <-Reducer 19 [ONE_TO_ONE_EDGE] vectorized
-                                      FORWARD [RS_224]
+                                    <-Reducer 18 [ONE_TO_ONE_EDGE] vectorized
+                                      FORWARD [RS_214]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_223] (rows=116289 width=7)
+                                        Select Operator [SEL_213] (rows=116289 width=7)
                                           Output:["_col0","_col1"]
-                                          Group By Operator [GBY_222] (rows=116289 width=3)
+                                          Group By Operator [GBY_212] (rows=116289 width=3)
                                             Output:["_col0"],keys:KEY._col0
-                                          <-Reducer 18 [SIMPLE_EDGE]
+                                          <-Reducer 17 [SIMPLE_EDGE]
                                             SHUFFLE [RS_30]
                                               PartitionCols:_col0
                                               Group By Operator [GBY_29] (rows=116289 width=3)
                                                 Output:["_col0"],keys:_col1
                                                 Merge Join Operator [MERGEJOIN_180] (rows=11823304 width=3)
-                                                  Conds:RS_221._col0=RS_198._col0(Inner),Output:["_col1"]
-                                                <-Map 16 [SIMPLE_EDGE] vectorized
-                                                  PARTITION_ONLY_SHUFFLE [RS_198]
+                                                  Conds:RS_211._col0=RS_198._col0(Inner),Output:["_col1"]
+                                                <-Map 15 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_198]
                                                     PartitionCols:_col0
                                                      Please refer to the previous Select Operator [SEL_195]
-                                                <-Map 24 [SIMPLE_EDGE] vectorized
-                                                  SHUFFLE [RS_221]
+                                                <-Map 21 [SIMPLE_EDGE] vectorized
+                                                  SHUFFLE [RS_211]
                                                     PartitionCols:_col0
-                                                    Select Operator [SEL_220] (rows=143930993 width=7)
+                                                    Select Operator [SEL_210] (rows=143930993 width=7)
                                                       Output:["_col0","_col1"]
-                                                      Filter Operator [FIL_219] (rows=143930993 width=7)
-                                                        predicate:((ws_bill_customer_sk BETWEEN DynamicValue(RS_44_c_c_customer_sk_min) AND DynamicValue(RS_44_c_c_customer_sk_max) and in_bloom_filter(ws_bill_customer_sk, DynamicValue(RS_44_c_c_customer_sk_bloom_filter))) and (ws_sold_date_sk BETWEEN DynamicValue(RS_26_date_dim_d_date_sk_min) AND DynamicValue(RS_26_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, DynamicValue(RS_26_date_dim_d_date_sk_bloom_filter))) and ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
+                                                      Filter Operator [FIL_209] (rows=143930993 width=7)
+                                                        predicate:((ws_bill_customer_sk BETWEEN DynamicValue(RS_44_c_c_customer_sk_min) AND DynamicValue(RS_44_c_c_customer_sk_max) and in_bloom_filter(ws_bill_customer_sk, DynamicValue(RS_44_c_c_customer_sk_bloom_filter))) and ws_bill_customer_sk is not null and ws_sold_date_sk is not null)
                                                         TableScan [TS_19] (rows=144002668 width=7)
                                                           default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_bill_customer_sk"]
                                                         <-Reducer 10 [BROADCAST_EDGE] vectorized
-                                                          BROADCAST [RS_218]
-                                                            Group By Operator [GBY_217] (rows=1 width=12)
+                                                          BROADCAST [RS_208]
+                                                            Group By Operator [GBY_207] (rows=1 width=12)
                                                               Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
                                                             <-Reducer 4 [CUSTOM_SIMPLE_EDGE]
                                                               FORWARD [RS_153]
@@ -298,58 +284,36 @@ Stage-0
                                                                   Select Operator [SEL_151] (rows=6841 width=4)
                                                                     Output:["_col0"]
                                                                      Please refer to the previous Merge Join Operator [MERGEJOIN_182]
-                                                        <-Reducer 20 [BROADCAST_EDGE] vectorized
-                                                          BROADCAST [RS_216]
-                                                            Group By Operator [GBY_215] (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
-                                                              PARTITION_ONLY_SHUFFLE [RS_206]
-                                                                Group By Operator [GBY_203] (rows=1 width=12)
-                                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                                  Select Operator [SEL_199] (rows=150 width=4)
-                                                                    Output:["_col0"]
-                                                                     Please refer to the previous Select Operator [SEL_195]
-                            <-Reducer 22 [ONE_TO_ONE_EDGE] vectorized
-                              FORWARD [RS_234]
+                            <-Reducer 20 [ONE_TO_ONE_EDGE] vectorized
+                              FORWARD [RS_222]
                                 PartitionCols:_col0
-                                Select Operator [SEL_233] (rows=115467 width=7)
+                                Select Operator [SEL_221] (rows=115467 width=7)
                                   Output:["_col0","_col1"]
-                                  Group By Operator [GBY_232] (rows=115467 width=3)
+                                  Group By Operator [GBY_220] (rows=115467 width=3)
                                     Output:["_col0"],keys:KEY._col0
-                                  <-Reducer 21 [SIMPLE_EDGE]
+                                  <-Reducer 19 [SIMPLE_EDGE]
                                     SHUFFLE [RS_60]
                                       PartitionCols:_col0
                                       Group By Operator [GBY_59] (rows=115467 width=3)
                                         Output:["_col0"],keys:_col1
                                         Merge Join Operator [MERGEJOIN_181] (rows=23255411 width=3)
-                                          Conds:RS_231._col0=RS_200._col0(Inner),Output:["_col1"]
-                                        <-Map 16 [SIMPLE_EDGE] vectorized
-                                          PARTITION_ONLY_SHUFFLE [RS_200]
+                                          Conds:RS_219._col0=RS_199._col0(Inner),Output:["_col1"]
+                                        <-Map 15 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_199]
                                             PartitionCols:_col0
                                              Please refer to the previous Select Operator [SEL_195]
-                                        <-Map 25 [SIMPLE_EDGE] vectorized
-                                          SHUFFLE [RS_231]
+                                        <-Map 22 [SIMPLE_EDGE] vectorized
+                                          SHUFFLE [RS_219]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_230] (rows=285115246 width=7)
+                                            Select Operator [SEL_218] (rows=285115246 width=7)
                                               Output:["_col0","_col1"]
-                                              Filter Operator [FIL_229] (rows=285115246 width=7)
-                                                predicate:((cs_ship_customer_sk BETWEEN DynamicValue(RS_63_c_c_customer_sk_min) AND DynamicValue(RS_63_c_c_customer_sk_max) and in_bloom_filter(cs_ship_customer_sk, DynamicValue(RS_63_c_c_customer_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN DynamicValue(RS_56_date_dim_d_date_sk_min) AND DynamicValue(RS_56_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_56_date_dim_d_date_sk_bloom_filter))) and cs_ship_customer_sk is not null and cs_sold_date_sk is not null)
+                                              Filter Operator [FIL_217] (rows=285115246 width=7)
+                                                predicate:((cs_ship_customer_sk BETWEEN DynamicValue(RS_63_c_c_customer_sk_min) AND DynamicValue(RS_63_c_c_customer_sk_max) and in_bloom_filter(cs_ship_customer_sk, DynamicValue(RS_63_c_c_customer_sk_bloom_filter))) and cs_ship_customer_sk is not null and cs_sold_date_sk is not null)
                                                 TableScan [TS_49] (rows=287989836 width=7)
                                                   default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_ship_customer_sk"]
-                                                <-Reducer 23 [BROADCAST_EDGE] vectorized
-                                                  BROADCAST [RS_226]
-                                                    Group By Operator [GBY_225] (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
-                                                      PARTITION_ONLY_SHUFFLE [RS_207]
-                                                        Group By Operator [GBY_204] (rows=1 width=12)
-                                                          Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                          Select Operator [SEL_201] (rows=150 width=4)
-                                                            Output:["_col0"]
-                                                             Please refer to the previous Select Operator [SEL_195]
                                                 <-Reducer 9 [BROADCAST_EDGE] vectorized
-                                                  BROADCAST [RS_228]
-                                                    Group By Operator [GBY_227] (rows=1 width=12)
+                                                  BROADCAST [RS_216]
+                                                    Group By Operator [GBY_215] (rows=1 width=12)
                                                       Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
                                                     <-Reducer 5 [CUSTOM_SIMPLE_EDGE]
                                                       PARTITION_ONLY_SHUFFLE [RS_168]

http://git-wip-us.apache.org/repos/asf/hive/blob/e986fc56/ql/src/test/results/clientpositive/perf/tez/query7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query7.q.out b/ql/src/test/results/clientpositive/perf/tez/query7.q.out
index fece637..7f1576a 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query7.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query7.q.out
@@ -53,12 +53,11 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Reducer 11 (BROADCAST_EDGE), Reducer 9 (BROADCAST_EDGE)
-Reducer 11 <- Map 10 (CUSTOM_SIMPLE_EDGE)
+Map 1 <- Reducer 9 (BROADCAST_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 Reducer 3 <- Map 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 12 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 13 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 4 <- Map 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 12 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 9 <- Map 8 (CUSTOM_SIMPLE_EDGE)
@@ -68,16 +67,16 @@ Stage-0
     limit:100
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_130]
-        Limit [LIM_129] (rows=100 width=444)
+      File Output Operator [FS_125]
+        Limit [LIM_124] (rows=100 width=444)
           Number of rows:100
-          Select Operator [SEL_128] (rows=310774 width=444)
+          Select Operator [SEL_123] (rows=310774 width=444)
             Output:["_col0","_col1","_col2","_col3","_col4"]
           <-Reducer 6 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_127]
-              Select Operator [SEL_126] (rows=310774 width=444)
+            SHUFFLE [RS_122]
+              Select Operator [SEL_121] (rows=310774 width=444)
                 Output:["_col0","_col1","_col2","_col3","_col4"]
-                Group By Operator [GBY_125] (rows=310774 width=476)
+                Group By Operator [GBY_120] (rows=310774 width=476)
                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"],aggregations:["sum(VALUE._col0)","count(VALUE._col1)","sum(VALUE._col2)","count(VALUE._col3)","sum(VALUE._col4)","count(VALUE._col5)","sum(VALUE._col6)","count(VALUE._col7)"],keys:KEY._col0
                 <-Reducer 5 [SIMPLE_EDGE]
                   SHUFFLE [RS_29]
@@ -87,13 +86,13 @@ Stage-0
                       Top N Key Operator [TNK_55] (rows=1441769 width=100)
                         keys:_col12,sort order:+,top n:100
                         Merge Join Operator [MERGEJOIN_99] (rows=1441769 width=100)
-                          Conds:RS_24._col1=RS_124._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col12"]
-                        <-Map 13 [SIMPLE_EDGE] vectorized
-                          SHUFFLE [RS_124]
+                          Conds:RS_24._col1=RS_119._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col12"]
+                        <-Map 12 [SIMPLE_EDGE] vectorized
+                          SHUFFLE [RS_119]
                             PartitionCols:_col0
-                            Select Operator [SEL_123] (rows=462000 width=104)
+                            Select Operator [SEL_118] (rows=462000 width=104)
                               Output:["_col0","_col1"]
-                              Filter Operator [FIL_122] (rows=462000 width=104)
+                              Filter Operator [FIL_117] (rows=462000 width=104)
                                 predicate:i_item_sk is not null
                                 TableScan [TS_12] (rows=462000 width=104)
                                   default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_id"]
@@ -101,13 +100,13 @@ Stage-0
                           SHUFFLE [RS_24]
                             PartitionCols:_col1
                             Merge Join Operator [MERGEJOIN_98] (rows=1441769 width=4)
-                              Conds:RS_21._col3=RS_121._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7"]
-                            <-Map 12 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_121]
+                              Conds:RS_21._col3=RS_116._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7"]
+                            <-Map 11 [SIMPLE_EDGE] vectorized
+                              SHUFFLE [RS_116]
                                 PartitionCols:_col0
-                                Select Operator [SEL_120] (rows=2300 width=4)
+                                Select Operator [SEL_115] (rows=2300 width=4)
                                   Output:["_col0"]
-                                  Filter Operator [FIL_119] (rows=2300 width=174)
+                                  Filter Operator [FIL_114] (rows=2300 width=174)
                                     predicate:(((p_channel_email = 'N') or (p_channel_event = 'N')) and p_promo_sk is not null)
                                     TableScan [TS_9] (rows=2300 width=174)
                                       default@promotion,promotion,Tbl:COMPLETE,Col:COMPLETE,Output:["p_promo_sk","p_channel_email","p_channel_event"]
@@ -115,13 +114,13 @@ Stage-0
                               SHUFFLE [RS_21]
                                 PartitionCols:_col3
                                 Merge Join Operator [MERGEJOIN_97] (rows=1441769 width=4)
-                                  Conds:RS_18._col0=RS_110._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7"]
+                                  Conds:RS_18._col0=RS_113._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7"]
                                 <-Map 10 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_110]
+                                  SHUFFLE [RS_113]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_109] (rows=652 width=4)
+                                    Select Operator [SEL_112] (rows=652 width=4)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_108] (rows=652 width=8)
+                                      Filter Operator [FIL_111] (rows=652 width=8)
                                         predicate:((d_year = 1998) and d_date_sk is not null)
                                         TableScan [TS_6] (rows=73049 width=8)
                                           default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year"]
@@ -129,7 +128,7 @@ Stage-0
                                   SHUFFLE [RS_18]
                                     PartitionCols:_col0
                                     Merge Join Operator [MERGEJOIN_96] (rows=4037893 width=4)
-                                      Conds:RS_118._col2=RS_102._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
+                                      Conds:RS_110._col2=RS_102._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
                                     <-Map 8 [SIMPLE_EDGE] vectorized
                                       PARTITION_ONLY_SHUFFLE [RS_102]
                                         PartitionCols:_col0
@@ -140,25 +139,14 @@ Stage-0
                                             TableScan [TS_3] (rows=1861800 width=268)
                                               default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_education_status"]
                                     <-Map 1 [SIMPLE_EDGE] vectorized
-                                      SHUFFLE [RS_118]
+                                      SHUFFLE [RS_110]
                                         PartitionCols:_col2
-                                        Select Operator [SEL_117] (rows=501686735 width=340)
+                                        Select Operator [SEL_109] (rows=501686735 width=340)
                                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                          Filter Operator [FIL_116] (rows=501686735 width=340)
-                                            predicate:((ss_cdemo_sk BETWEEN DynamicValue(RS_16_customer_demographics_cd_demo_sk_min) AND DynamicValue(RS_16_customer_demographics_cd_demo_sk_max) and in_bloom_filter(ss_cdemo_sk, DynamicValue(RS_16_customer_demographics_cd_demo_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN DynamicValue(RS_19_date_dim_d_date_sk_min) AND DynamicValue(RS_19_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, DynamicValue(RS_19_date_dim_d_date_sk_bloom_filter))) and ss_cdemo_sk is not null and ss_item_sk is not null and ss_promo_sk is not null and ss_sold_date_sk is not null)
+                                          Filter Operator [FIL_108] (rows=501686735 width=340)
+                                            predicate:((ss_cdemo_sk BETWEEN DynamicValue(RS_16_customer_demographics_cd_demo_sk_min) AND DynamicValue(RS_16_customer_demographics_cd_demo_sk_max) and in_bloom_filter(ss_cdemo_sk, DynamicValue(RS_16_customer_demographics_cd_demo_sk_bloom_filter))) and ss_cdemo_sk is not null and ss_item_sk is not null and ss_promo_sk is not null and ss_sold_date_sk is not null)
                                             TableScan [TS_0] (rows=575995635 width=340)
                                               default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_item_sk","ss_cdemo_sk","ss_promo_sk","ss_quantity","ss_list_price","ss_sales_price","ss_coupon_amt"]
-                                            <-Reducer 11 [BROADCAST_EDGE] vectorized
-                                              BROADCAST [RS_115]
-                                                Group By Operator [GBY_114] (rows=1 width=12)
-                                                  Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                                <-Map 10 [CUSTOM_SIMPLE_EDGE] vectorized
-                                                  SHUFFLE [RS_113]
-                                                    Group By Operator [GBY_112] (rows=1 width=12)
-                                                      Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                      Select Operator [SEL_111] (rows=652 width=4)
-                                                        Output:["_col0"]
-                                                         Please refer to the previous Select Operator [SEL_109]
                                             <-Reducer 9 [BROADCAST_EDGE] vectorized
                                               BROADCAST [RS_107]
                                                 Group By Operator [GBY_106] (rows=1 width=12)

http://git-wip-us.apache.org/repos/asf/hive/blob/e986fc56/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 3654e99..43a2319 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query71.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query71.q.out
@@ -91,18 +91,16 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 1 <- Reducer 19 (BROADCAST_EDGE), Reducer 21 (BROADCAST_EDGE), Reducer 9 (BROADCAST_EDGE)
-Map 10 <- Reducer 13 (BROADCAST_EDGE), Reducer 19 (BROADCAST_EDGE), Reducer 21 (BROADCAST_EDGE)
-Map 14 <- Reducer 17 (BROADCAST_EDGE), Reducer 19 (BROADCAST_EDGE), Reducer 21 (BROADCAST_EDGE)
+Map 1 <- Reducer 9 (BROADCAST_EDGE)
+Map 10 <- Reducer 13 (BROADCAST_EDGE)
+Map 14 <- Reducer 17 (BROADCAST_EDGE)
 Reducer 11 <- Map 10 (SIMPLE_EDGE), Map 12 (SIMPLE_EDGE), Union 3 (CONTAINS)
 Reducer 13 <- Map 12 (CUSTOM_SIMPLE_EDGE)
 Reducer 15 <- Map 14 (SIMPLE_EDGE), Map 16 (SIMPLE_EDGE), Union 3 (CONTAINS)
 Reducer 17 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 19 <- Map 18 (CUSTOM_SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE), Union 3 (CONTAINS)
-Reducer 21 <- Map 20 (CUSTOM_SIMPLE_EDGE)
 Reducer 4 <- Map 18 (SIMPLE_EDGE), Union 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 20 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 5 <- Map 19 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 9 <- Map 8 (CUSTOM_SIMPLE_EDGE)
@@ -112,14 +110,14 @@ Stage-0
     limit:-1
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_188]
-        Select Operator [SEL_187] (rows=1991967 width=223)
+      File Output Operator [FS_174]
+        Select Operator [SEL_173] (rows=1991967 width=223)
           Output:["_col0","_col1","_col2","_col3","_col4"]
         <-Reducer 6 [SIMPLE_EDGE] vectorized
-          SHUFFLE [RS_186]
-            Select Operator [SEL_185] (rows=1991967 width=227)
+          SHUFFLE [RS_172]
+            Select Operator [SEL_171] (rows=1991967 width=227)
               Output:["_col1","_col2","_col3","_col4","_col5"]
-              Group By Operator [GBY_184] (rows=1991967 width=223)
+              Group By Operator [GBY_170] (rows=1991967 width=223)
                 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]
@@ -127,13 +125,13 @@ Stage-0
                   Group By Operator [GBY_45] (rows=1991967 width=223)
                     Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(_col0)"],keys:_col4, _col7, _col8, _col5
                     Merge Join Operator [MERGEJOIN_140] (rows=1991967 width=112)
-                      Conds:RS_41._col2=RS_173._col0(Inner),Output:["_col0","_col4","_col5","_col7","_col8"]
-                    <-Map 20 [SIMPLE_EDGE] vectorized
-                      SHUFFLE [RS_173]
+                      Conds:RS_41._col2=RS_169._col0(Inner),Output:["_col0","_col4","_col5","_col7","_col8"]
+                    <-Map 19 [SIMPLE_EDGE] vectorized
+                      SHUFFLE [RS_169]
                         PartitionCols:_col0
-                        Select Operator [SEL_172] (rows=43200 width=12)
+                        Select Operator [SEL_168] (rows=43200 width=12)
                           Output:["_col0","_col1","_col2"]
-                          Filter Operator [FIL_171] (rows=43200 width=99)
+                          Filter Operator [FIL_167] (rows=43200 width=99)
                             predicate:((t_meal_time) IN ('breakfast', 'dinner') and t_time_sk is not null)
                             TableScan [TS_35] (rows=86400 width=99)
                               default@time_dim,time_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["t_time_sk","t_hour","t_minute","t_meal_time"]
@@ -141,13 +139,13 @@ Stage-0
                       SHUFFLE [RS_41]
                         PartitionCols:_col2
                         Merge Join Operator [MERGEJOIN_139] (rows=3983933 width=104)
-                          Conds:Union 3._col1=RS_163._col0(Inner),Output:["_col0","_col2","_col4","_col5"]
+                          Conds:Union 3._col1=RS_166._col0(Inner),Output:["_col0","_col2","_col4","_col5"]
                         <-Map 18 [SIMPLE_EDGE] vectorized
-                          SHUFFLE [RS_163]
+                          SHUFFLE [RS_166]
                             PartitionCols:_col0
-                            Select Operator [SEL_162] (rows=7333 width=107)
+                            Select Operator [SEL_165] (rows=7333 width=107)
                               Output:["_col0","_col1","_col2"]
-                              Filter Operator [FIL_161] (rows=7333 width=111)
+                              Filter Operator [FIL_164] (rows=7333 width=111)
                                 predicate:((i_manager_id = 1) and i_item_sk is not null)
                                 TableScan [TS_32] (rows=462000 width=111)
                                   default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_brand_id","i_brand","i_manager_id"]
@@ -158,107 +156,79 @@ Stage-0
                               Select Operator [SEL_146] (rows=7751851 width=98)
                                 Output:["_col0","_col1","_col2"]
                                 Merge Join Operator [MERGEJOIN_145] (rows=7751851 width=98)
-                                  Conds:RS_199._col0=RS_191._col0(Inner),Output:["_col1","_col2","_col3"]
+                                  Conds:RS_185._col0=RS_177._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 12 [SIMPLE_EDGE] vectorized
-                                  PARTITION_ONLY_SHUFFLE [RS_191]
+                                  PARTITION_ONLY_SHUFFLE [RS_177]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_190] (rows=50 width=4)
+                                    Select Operator [SEL_176] (rows=50 width=4)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_189] (rows=50 width=12)
+                                      Filter Operator [FIL_175] (rows=50 width=12)
                                         predicate:((d_moy = 12) and (d_year = 2001) and d_date_sk is not null)
                                         TableScan [TS_13] (rows=73049 width=12)
                                           default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
                                 <-Map 10 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_199]
+                                  SHUFFLE [RS_185]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_198] (rows=285116947 width=123)
+                                    Select Operator [SEL_184] (rows=285116947 width=123)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_197] (rows=285116947 width=123)
-                                        predicate:((cs_item_sk BETWEEN DynamicValue(RS_39_item_i_item_sk_min) AND DynamicValue(RS_39_item_i_item_sk_max) and in_bloom_filter(cs_item_sk, DynamicValue(RS_39_item_i_item_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN DynamicValue(RS_17_date_dim_d_date_sk_min) AND DynamicValue(RS_17_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_17_date_dim_d_date_sk_bloom_filter))) and (cs_sold_time_sk BETWEEN DynamicValue(RS_42_time_dim_t_time_sk_min) AND DynamicValue(RS_42_time_dim_t_time_sk_max) and in_bloom_filter(cs_sold_time_sk, DynamicValue(RS_42_time_dim_t_time_sk_bloom_filter))) and cs_item_sk is not null and cs_sold_date_sk is not null and cs_sold_time_sk is not null)
+                                      Filter Operator [FIL_183] (rows=285116947 width=123)
+                                        predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_17_date_dim_d_date_sk_min) AND DynamicValue(RS_17_date_dim_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_17_date_dim_d_date_sk_bloom_filter))) and 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=123)
                                           default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_sold_time_sk","cs_item_sk","cs_ext_sales_price"]
-                                        <-Reducer 19 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_169]
-                                            Group By Operator [GBY_167] (rows=1 width=12)
-                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                            <-Map 18 [CUSTOM_SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_166]
-                                                Group By Operator [GBY_165] (rows=1 width=12)
-                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                  Select Operator [SEL_164] (rows=7333 width=4)
-                                                    Output:["_col0"]
-                                                     Please refer to the previous Select Operator [SEL_162]
-                                        <-Reducer 21 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_179]
-                                            Group By Operator [GBY_177] (rows=1 width=12)
-                                              Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                            <-Map 20 [CUSTOM_SIMPLE_EDGE] vectorized
-                                              SHUFFLE [RS_176]
-                                                Group By Operator [GBY_175] (rows=1 width=12)
-                                                  Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                  Select Operator [SEL_174] (rows=43200 width=4)
-                                                    Output:["_col0"]
-                                                     Please refer to the previous Select Operator [SEL_172]
                                         <-Reducer 13 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_196]
-                                            Group By Operator [GBY_195] (rows=1 width=12)
+                                          BROADCAST [RS_182]
+                                            Group By Operator [GBY_181] (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_194]
-                                                Group By Operator [GBY_193] (rows=1 width=12)
+                                              PARTITION_ONLY_SHUFFLE [RS_180]
+                                                Group By Operator [GBY_179] (rows=1 width=12)
                                                   Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                  Select Operator [SEL_192] (rows=50 width=4)
+                                                  Select Operator [SEL_178] (rows=50 width=4)
                                                     Output:["_col0"]
-                                                     Please refer to the previous Select Operator [SEL_190]
+                                                     Please refer to the previous Select Operator [SEL_176]
                           <-Reducer 15 [CONTAINS]
                             Reduce Output Operator [RS_152]
                               PartitionCols:_col1
                               Select Operator [SEL_150] (rows=14384397 width=4)
                                 Output:["_col0","_col1","_col2"]
                                 Merge Join Operator [MERGEJOIN_149] (rows=14384397 width=4)
-                                  Conds:RS_210._col0=RS_202._col0(Inner),Output:["_col1","_col2","_col3"]
+                                  Conds:RS_196._col0=RS_188._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 16 [SIMPLE_EDGE] vectorized
-                                  PARTITION_ONLY_SHUFFLE [RS_202]
+                                  PARTITION_ONLY_SHUFFLE [RS_188]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_201] (rows=50 width=4)
+                                    Select Operator [SEL_187] (rows=50 width=4)
                                       Output:["_col0"]
-                                      Filter Operator [FIL_200] (rows=50 width=12)
+                                      Filter Operator [FIL_186] (rows=50 width=12)
                                         predicate:((d_moy = 12) and (d_year = 2001) and d_date_sk is not null)
                                         TableScan [TS_24] (rows=73049 width=12)
                                           default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
                                 <-Map 14 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_210]
+                                  SHUFFLE [RS_196]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_209] (rows=525325345 width=118)
+                                    Select Operator [SEL_195] (rows=525325345 width=118)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_208] (rows=525325345 width=118)
-                                        predicate:((ss_item_sk BETWEEN DynamicValue(RS_39_item_i_item_sk_min) AND DynamicValue(RS_39_item_i_item_sk_max) and in_bloom_filter(ss_item_sk, DynamicValue(RS_39_item_i_item_sk_bloom_filter))) and (ss_sold_date_sk BETWEEN DynamicValue(RS_28_date_dim_d_date_sk_min) AND DynamicValue(RS_28_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, DynamicValue(RS_28_date_dim_d_date_sk_bloom_filter))) and (ss_sold_time_sk BETWEEN DynamicValue(RS_42_time_dim_t_time_sk_min) AND DynamicValue(RS_42_time_dim_t_time_sk_max) and in_bloom_filter(ss_sold_time_sk, DynamicValue(RS_42_time_dim_t_time_sk_bloom_filter))) and ss_item_sk is not null and ss_sold_date_sk is not null and ss_sold_time_sk is not null)
+                                      Filter Operator [FIL_194] (rows=525325345 width=118)
+                                        predicate:((ss_sold_date_sk BETWEEN DynamicValue(RS_28_date_dim_d_date_sk_min) AND DynamicValue(RS_28_date_dim_d_date_sk_max) and in_bloom_filter(ss_sold_date_sk, DynamicValue(RS_28_date_dim_d_date_sk_bloom_filter))) and ss_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=118)
                                           default@store_sales,store_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ss_sold_date_sk","ss_sold_time_sk","ss_item_sk","ss_ext_sales_price"]
-                                        <-Reducer 19 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_170]
-                                             Please refer to the previous Group By Operator [GBY_167]
-                                        <-Reducer 21 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_180]
-                                             Please refer to the previous Group By Operator [GBY_177]
                                         <-Reducer 17 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_207]
-                                            Group By Operator [GBY_206] (rows=1 width=12)
+                                          BROADCAST [RS_193]
+                                            Group By Operator [GBY_192] (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
-                                              PARTITION_ONLY_SHUFFLE [RS_205]
-                                                Group By Operator [GBY_204] (rows=1 width=12)
+                                              PARTITION_ONLY_SHUFFLE [RS_191]
+                                                Group By Operator [GBY_190] (rows=1 width=12)
                                                   Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                  Select Operator [SEL_203] (rows=50 width=4)
+                                                  Select Operator [SEL_189] (rows=50 width=4)
                                                     Output:["_col0"]
-                                                     Please refer to the previous Select Operator [SEL_201]
+                                                     Please refer to the previous Select Operator [SEL_187]
                           <-Reducer 2 [CONTAINS]
                             Reduce Output Operator [RS_144]
                               PartitionCols:_col1
                               Select Operator [SEL_142] (rows=3941098 width=118)
                                 Output:["_col0","_col1","_col2"]
                                 Merge Join Operator [MERGEJOIN_141] (rows=3941098 width=118)
-                                  Conds:RS_183._col0=RS_155._col0(Inner),Output:["_col1","_col2","_col3"]
+                                  Conds:RS_163._col0=RS_155._col0(Inner),Output:["_col1","_col2","_col3"]
                                 <-Map 8 [SIMPLE_EDGE] vectorized
                                   PARTITION_ONLY_SHUFFLE [RS_155]
                                     PartitionCols:_col0
@@ -269,20 +239,14 @@ Stage-0
                                         TableScan [TS_3] (rows=73049 width=12)
                                           default@date_dim,date_dim,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_year","d_moy"]
                                 <-Map 1 [SIMPLE_EDGE] vectorized
-                                  SHUFFLE [RS_183]
+                                  SHUFFLE [RS_163]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_182] (rows=143930836 width=123)
+                                    Select Operator [SEL_162] (rows=143930836 width=123)
                                       Output:["_col0","_col1","_col2","_col3"]
-                                      Filter Operator [FIL_181] (rows=143930836 width=123)
-                                        predicate:((ws_item_sk BETWEEN DynamicValue(RS_39_item_i_item_sk_min) AND DynamicValue(RS_39_item_i_item_sk_max) and in_bloom_filter(ws_item_sk, DynamicValue(RS_39_item_i_item_sk_bloom_filter))) and (ws_sold_date_sk BETWEEN DynamicValue(RS_7_date_dim_d_date_sk_min) AND DynamicValue(RS_7_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, DynamicValue(RS_7_date_dim_d_date_sk_bloom_filter))) and (ws_sold_time_sk BETWEEN DynamicValue(RS_42_time_dim_t_time_sk_min) AND DynamicValue(RS_42_time_dim_t_time_sk_max) and in_bloom_filter(ws_sold_time_sk, DynamicValue(RS_42_time_dim_t_time_sk_bloom_filter))) and ws_item_sk is not null and ws_sold_date_sk is not null and ws_sold_time_sk is not null)
+                                      Filter Operator [FIL_161] (rows=143930836 width=123)
+                                        predicate:((ws_sold_date_sk BETWEEN DynamicValue(RS_7_date_dim_d_date_sk_min) AND DynamicValue(RS_7_date_dim_d_date_sk_max) and in_bloom_filter(ws_sold_date_sk, DynamicValue(RS_7_date_dim_d_date_sk_bloom_filter))) and 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=123)
                                           default@web_sales,web_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["ws_sold_date_sk","ws_sold_time_sk","ws_item_sk","ws_ext_sales_price"]
-                                        <-Reducer 19 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_168]
-                                             Please refer to the previous Group By Operator [GBY_167]
-                                        <-Reducer 21 [BROADCAST_EDGE] vectorized
-                                          BROADCAST [RS_178]
-                                             Please refer to the previous Group By Operator [GBY_177]
                                         <-Reducer 9 [BROADCAST_EDGE] vectorized
                                           BROADCAST [RS_160]
                                             Group By Operator [GBY_159] (rows=1 width=12)

http://git-wip-us.apache.org/repos/asf/hive/blob/e986fc56/ql/src/test/results/clientpositive/perf/tez/query72.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query72.q.out b/ql/src/test/results/clientpositive/perf/tez/query72.q.out
index cffb09b..f6a99a3 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query72.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query72.q.out
@@ -81,20 +81,18 @@ POSTHOOK: Output: hdfs://### HDFS PATH ###
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Map 9 <- Reducer 17 (BROADCAST_EDGE), Reducer 19 (BROADCAST_EDGE), Reducer 21 (BROADCAST_EDGE)
+Map 9 <- Reducer 17 (BROADCAST_EDGE)
 Reducer 10 <- Map 16 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
 Reducer 11 <- Map 18 (SIMPLE_EDGE), Reducer 10 (SIMPLE_EDGE)
-Reducer 12 <- Map 20 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
-Reducer 13 <- Map 22 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
-Reducer 14 <- Map 23 (SIMPLE_EDGE), Reducer 13 (SIMPLE_EDGE)
-Reducer 15 <- Map 24 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
+Reducer 12 <- Map 19 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE)
+Reducer 13 <- Map 20 (SIMPLE_EDGE), Reducer 12 (SIMPLE_EDGE)
+Reducer 14 <- Map 21 (SIMPLE_EDGE), Reducer 13 (SIMPLE_EDGE)
+Reducer 15 <- Map 22 (SIMPLE_EDGE), Reducer 14 (SIMPLE_EDGE)
 Reducer 17 <- Map 16 (CUSTOM_SIMPLE_EDGE)
-Reducer 19 <- Map 18 (CUSTOM_SIMPLE_EDGE)
 Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 21 <- Map 20 (CUSTOM_SIMPLE_EDGE)
 Reducer 3 <- Reducer 15 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 25 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 26 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 4 <- Map 23 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 24 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 
@@ -103,14 +101,14 @@ Stage-0
     limit:100
     Stage-1
       Reducer 7 vectorized
-      File Output Operator [FS_303]
-        Limit [LIM_302] (rows=100 width=312)
+      File Output Operator [FS_293]
+        Limit [LIM_292] (rows=100 width=312)
           Number of rows:100
-          Select Operator [SEL_301] (rows=384313734 width=312)
+          Select Operator [SEL_291] (rows=384313734 width=312)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
           <-Reducer 6 [SIMPLE_EDGE] vectorized
-            SHUFFLE [RS_300]
-              Group By Operator [GBY_299] (rows=384313734 width=312)
+            SHUFFLE [RS_290]
+              Group By Operator [GBY_289] (rows=384313734 width=312)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["count(VALUE._col0)","count(VALUE._col1)","count(VALUE._col2)"],keys:KEY._col0, KEY._col1, KEY._col2
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_69]
@@ -120,13 +118,13 @@ Stage-0
                     Select Operator [SEL_66] (rows=1574305390 width=292)
                       Output:["_col0","_col1","_col2","_col3","_col4"]
                       Merge Join Operator [MERGEJOIN_251] (rows=1574305390 width=292)
-                        Conds:RS_63._col4, _col6=RS_298._col0, _col1(Left Outer),Output:["_col13","_col15","_col19","_col25"]
-                      <-Map 26 [SIMPLE_EDGE] vectorized
-                        SHUFFLE [RS_298]
+                        Conds:RS_63._col4, _col6=RS_288._col0, _col1(Left Outer),Output:["_col13","_col15","_col19","_col25"]
+                      <-Map 24 [SIMPLE_EDGE] vectorized
+                        SHUFFLE [RS_288]
                           PartitionCols:_col0, _col1
-                          Select Operator [SEL_297] (rows=28798881 width=8)
+                          Select Operator [SEL_287] (rows=28798881 width=8)
                             Output:["_col0","_col1"]
-                            Filter Operator [FIL_296] (rows=28798881 width=8)
+                            Filter Operator [FIL_286] (rows=28798881 width=8)
                               predicate:cr_item_sk is not null
                               TableScan [TS_60] (rows=28798881 width=8)
                                 default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:COMPLETE,Output:["cr_item_sk","cr_order_number"]
@@ -136,13 +134,13 @@ Stage-0
                           Select Operator [SEL_59] (rows=610435044 width=300)
                             Output:["_col4","_col6","_col13","_col15","_col19","_col25"]
                             Merge Join Operator [MERGEJOIN_250] (rows=610435044 width=300)
-                              Conds:RS_56._col0, _col19=RS_295._col0, _col1(Inner),Output:["_col5","_col9","_col14","_col16","_col19","_col23"]
-                            <-Map 25 [SIMPLE_EDGE] vectorized
-                              SHUFFLE [RS_295]
+                              Conds:RS_56._col0, _col19=RS_285._col0, _col1(Inner),Output:["_col5","_col9","_col14","_col16","_col19","_col23"]
+                            <-Map 23 [SIMPLE_EDGE] vectorized
+                              SHUFFLE [RS_285]
                                 PartitionCols:_col0, _col1
-                                Select Operator [SEL_294] (rows=73049 width=8)
+                                Select Operator [SEL_284] (rows=73049 width=8)
                                   Output:["_col0","_col1"]
-                                  Filter Operator [FIL_293] (rows=73049 width=8)
+                                  Filter Operator [FIL_283] (rows=73049 width=8)
                                     predicate:(d_date_sk is not null and d_week_seq is not null)
                                     TableScan [TS_46] (rows=73049 width=8)
                                       default@date_dim,d2,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_week_seq"]
@@ -161,13 +159,13 @@ Stage-0
                                         Filter Operator [FIL_44] (rows=2726340 width=219)
                                           predicate:(_col17 > _col10)
                                           Merge Join Operator [MERGEJOIN_248] (rows=8179022 width=219)
-                                            Conds:RS_41._col1=RS_292._col0(Inner),Output:["_col4","_col6","_col7","_col9","_col10","_col13","_col15","_col17"]
-                                          <-Map 24 [SIMPLE_EDGE] vectorized
-                                            SHUFFLE [RS_292]
+                                            Conds:RS_41._col1=RS_282._col0(Inner),Output:["_col4","_col6","_col7","_col9","_col10","_col13","_col15","_col17"]
+                                          <-Map 22 [SIMPLE_EDGE] vectorized
+                                            SHUFFLE [RS_282]
                                               PartitionCols:_col0
-                                              Select Operator [SEL_291] (rows=73049 width=12)
+                                              Select Operator [SEL_281] (rows=73049 width=12)
                                                 Output:["_col0","_col1"]
-                                                Filter Operator [FIL_290] (rows=73049 width=98)
+                                                Filter Operator [FIL_280] (rows=73049 width=98)
                                                   predicate:d_date_sk is not null
                                                   TableScan [TS_23] (rows=73049 width=98)
                                                     default@date_dim,d3,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_date"]
@@ -175,13 +173,13 @@ Stage-0
                                             SHUFFLE [RS_41]
                                               PartitionCols:_col1
                                               Merge Join Operator [MERGEJOIN_247] (rows=8179022 width=214)
-                                                Conds:RS_38._col4=RS_289._col0(Inner),Output:["_col1","_col4","_col6","_col7","_col9","_col10","_col13","_col15"]
-                                              <-Map 23 [SIMPLE_EDGE] vectorized
-                                                SHUFFLE [RS_289]
+                                                Conds:RS_38._col4=RS_279._col0(Inner),Output:["_col1","_col4","_col6","_col7","_col9","_col10","_col13","_col15"]
+                                              <-Map 21 [SIMPLE_EDGE] vectorized
+                                                SHUFFLE [RS_279]
                                                   PartitionCols:_col0
-                                                  Select Operator [SEL_288] (rows=462000 width=188)
+                                                  Select Operator [SEL_278] (rows=462000 width=188)
                                                     Output:["_col0","_col1"]
-                                                    Filter Operator [FIL_287] (rows=462000 width=188)
+                                                    Filter Operator [FIL_277] (rows=462000 width=188)
                                                       predicate:i_item_sk is not null
                                                       TableScan [TS_20] (rows=462000 width=188)
                                                         default@item,item,Tbl:COMPLETE,Col:COMPLETE,Output:["i_item_sk","i_item_desc"]
@@ -189,11 +187,11 @@ Stage-0
                                                 SHUFFLE [RS_38]
                                                   PartitionCols:_col4
                                                   Merge Join Operator [MERGEJOIN_246] (rows=8179022 width=30)
-                                                    Conds:RS_35._col5=RS_286._col0(Left Outer),Output:["_col1","_col4","_col6","_col7","_col9","_col10","_col13"]
-                                                  <-Map 22 [SIMPLE_EDGE] vectorized
-                                                    SHUFFLE [RS_286]
+                                                    Conds:RS_35._col5=RS_276._col0(Left Outer),Output:["_col1","_col4","_col6","_col7","_col9","_col10","_col13"]
+                                                  <-Map 20 [SIMPLE_EDGE] vectorized
+                                                    SHUFFLE [RS_276]
                                                       PartitionCols:_col0
-                                                      Select Operator [SEL_285] (rows=2300 width=4)
+                                                      Select Operator [SEL_275] (rows=2300 width=4)
                                                         Output:["_col0"]
                                                         TableScan [TS_18] (rows=2300 width=4)
                                                           default@promotion,promotion,Tbl:COMPLETE,Col:COMPLETE,Output:["p_promo_sk"]
@@ -201,13 +199,13 @@ Stage-0
                                                     SHUFFLE [RS_35]
                                                       PartitionCols:_col5
                                                       Merge Join Operator [MERGEJOIN_245] (rows=8179022 width=29)
-                                                        Conds:RS_32._col3=RS_276._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7","_col9","_col10"]
-                                                      <-Map 20 [SIMPLE_EDGE] vectorized
-                                                        PARTITION_ONLY_SHUFFLE [RS_276]
+                                                        Conds:RS_32._col3=RS_274._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7","_col9","_col10"]
+                                                      <-Map 19 [SIMPLE_EDGE] vectorized
+                                                        SHUFFLE [RS_274]
                                                           PartitionCols:_col0
-                                                          Select Operator [SEL_275] (rows=1440 width=4)
+                                                          Select Operator [SEL_273] (rows=1440 width=4)
                                                             Output:["_col0"]
-                                                            Filter Operator [FIL_274] (rows=1440 width=96)
+                                                            Filter Operator [FIL_272] (rows=1440 width=96)
                                                               predicate:((hd_buy_potential = '1001-5000') and hd_demo_sk is not null)
                                                               TableScan [TS_15] (rows=7200 width=96)
                                                                 default@household_demographics,household_demographics,Tbl:COMPLETE,Col:COMPLETE,Output:["hd_demo_sk","hd_buy_potential"]
@@ -215,13 +213,13 @@ Stage-0
                                                         SHUFFLE [RS_32]
                                                           PartitionCols:_col3
                                                           Merge Join Operator [MERGEJOIN_244] (rows=40895108 width=35)
-                                                            Conds:RS_29._col2=RS_268._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col9","_col10"]
+                                                            Conds:RS_29._col2=RS_271._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col9","_col10"]
                                                           <-Map 18 [SIMPLE_EDGE] vectorized
-                                                            PARTITION_ONLY_SHUFFLE [RS_268]
+                                                            SHUFFLE [RS_271]
                                                               PartitionCols:_col0
-                                                              Select Operator [SEL_267] (rows=265971 width=4)
+                                                              Select Operator [SEL_270] (rows=265971 width=4)
                                                                 Output:["_col0"]
-                                                                Filter Operator [FIL_266] (rows=265971 width=89)
+                                                                Filter Operator [FIL_269] (rows=265971 width=89)
                                                                   predicate:((cd_marital_status = 'M') and cd_demo_sk is not null)
                                                                   TableScan [TS_12] (rows=1861800 width=89)
                                                                     default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:COMPLETE,Output:["cd_demo_sk","cd_marital_status"]
@@ -229,7 +227,7 @@ Stage-0
                                                             SHUFFLE [RS_29]
                                                               PartitionCols:_col2
                                                               Merge Join Operator [MERGEJOIN_243] (rows=100076475 width=39)
-                                                                Conds:RS_284._col0=RS_260._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9","_col10"]
+                                                                Conds:RS_268._col0=RS_260._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9","_col10"]
                                                               <-Map 16 [SIMPLE_EDGE] vectorized
                                                                 PARTITION_ONLY_SHUFFLE [RS_260]
                                                                   PartitionCols:_col0
@@ -240,12 +238,12 @@ Stage-0
                                                                       TableScan [TS_9] (rows=73049 width=106)
                                                                         default@date_dim,d1,Tbl:COMPLETE,Col:COMPLETE,Output:["d_date_sk","d_date","d_week_seq","d_year"]
                                                               <-Map 9 [SIMPLE_EDGE] vectorized
-                                                                SHUFFLE [RS_284]
+                                                                SHUFFLE [RS_268]
                                                                   PartitionCols:_col0
-                                                                  Select Operator [SEL_283] (rows=282274763 width=31)
+                                                                  Select Operator [SEL_267] (rows=282274763 width=31)
                                                                     Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                                                    Filter Operator [FIL_282] (rows=282274763 width=31)
-                                                                      predicate:((cs_bill_cdemo_sk BETWEEN DynamicValue(RS_30_customer_demographics_cd_demo_sk_min) AND DynamicValue(RS_30_customer_demographics_cd_demo_sk_max) and in_bloom_filter(cs_bill_cdemo_sk, DynamicValue(RS_30_customer_demographics_cd_demo_sk_bloom_filter))) and (cs_bill_hdemo_sk BETWEEN DynamicValue(RS_33_household_demographics_hd_demo_sk_min) AND DynamicValue(RS_33_household_demographics_hd_demo_sk_max) and in_bloom_filter(cs_bill_hdemo_sk, DynamicValue(RS_33_household_demographics_hd_demo_sk_bloom_filter))) and (cs_sold_date_sk BETWEEN DynamicValue(RS_27_d1_d_date_sk_min) AND DynamicValue(RS_27_d1_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_27_d1_d_date_sk_bloom_filter))) and cs_bill_cdemo_sk is not null and cs_bill_hdemo_sk is not null and cs_item_sk is not null and cs_ship_date_sk is not null and cs_sold_date_sk is not null)
+                                                                    Filter Operator [FIL_266] (rows=282274763 width=31)
+                                                                      predicate:((cs_sold_date_sk BETWEEN DynamicValue(RS_27_d1_d_date_sk_min) AND DynamicValue(RS_27_d1_d_date_sk_max) and in_bloom_filter(cs_sold_date_sk, DynamicValue(RS_27_d1_d_date_sk_bloom_filter))) and cs_bill_cdemo_sk is not null and cs_bill_hdemo_sk is not null and cs_item_sk is not null and cs_ship_date_sk is not null and cs_sold_date_sk is not null)
                                                                       TableScan [TS_6] (rows=287989836 width=31)
                                                                         default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:COMPLETE,Output:["cs_sold_date_sk","cs_ship_date_sk","cs_bill_cdemo_sk","cs_bill_hdemo_sk","cs_item_sk","cs_promo_sk","cs_order_number","cs_quantity"]
                                                                       <-Reducer 17 [BROADCAST_EDGE] vectorized
@@ -259,28 +257,6 @@ Stage-0
                                                                                 Select Operator [SEL_261] (rows=652 width=4)
                                                                                   Output:["_col0"]
                                                                                    Please refer to the previous Select Operator [SEL_259]
-                                                                      <-Reducer 19 [BROADCAST_EDGE] vectorized
-                                                                        BROADCAST [RS_273]
-                                                                          Group By Operator [GBY_272] (rows=1 width=12)
-                                                                            Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                                                          <-Map 18 [CUSTOM_SIMPLE_EDGE] vectorized
-                                                                            PARTITION_ONLY_SHUFFLE [RS_271]
-                                                                              Group By Operator [GBY_270] (rows=1 width=12)
-                                                                                Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                                                Select Operator [SEL_269] (rows=265971 width=4)
-                                                                                  Output:["_col0"]
-                                                                                   Please refer to the previous Select Operator [SEL_267]
-                                                                      <-Reducer 21 [BROADCAST_EDGE] vectorized
-                                                                        BROADCAST [RS_281]
-                                                                          Group By Operator [GBY_280] (rows=1 width=12)
-                                                                            Output:["_col0","_col1","_col2"],aggregations:["min(VALUE._col0)","max(VALUE._col1)","bloom_filter(VALUE._col2, expectedEntries=1000000)"]
-                                                                          <-Map 20 [CUSTOM_SIMPLE_EDGE] vectorized
-                                                                            PARTITION_ONLY_SHUFFLE [RS_279]
-                                                                              Group By Operator [GBY_278] (rows=1 width=12)
-                                                                                Output:["_col0","_col1","_col2"],aggregations:["min(_col0)","max(_col0)","bloom_filter(_col0, expectedEntries=1000000)"]
-                                                                                Select Operator [SEL_277] (rows=1440 width=4)
-                                                                                  Output:["_col0"]
-                                                                                   Please refer to the previous Select Operator [SEL_275]
                                   <-Reducer 2 [SIMPLE_EDGE]
                                     SHUFFLE [RS_52]
                                       PartitionCols:_col1