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 2016/05/06 20:56:03 UTC

[11/15] hive git commit: HIVE-13542 : Missing stats for tables in TPCDS performance regression suite (Hari Subramaniyan via Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query39.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query39.q.out b/ql/src/test/results/clientpositive/perf/query39.q.out
index 52c6b7c..04129c1 100644
--- a/ql/src/test/results/clientpositive/perf/query39.q.out
+++ b/ql/src/test/results/clientpositive/perf/query39.q.out
@@ -22,146 +22,146 @@ Stage-0
     Stage-1
       Reducer 7
       File Output Operator [FS_62]
-        Select Operator [SEL_61] (rows=169103 width=1436)
+        Select Operator [SEL_61] (rows=13756683 width=15)
           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
         <-Reducer 6 [SIMPLE_EDGE]
           SHUFFLE [RS_60]
-            Select Operator [SEL_59] (rows=169103 width=1436)
+            Select Operator [SEL_59] (rows=13756683 width=15)
               Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col8","_col9"]
-              Merge Join Operator [MERGEJOIN_105] (rows=169103 width=1436)
+              Merge Join Operator [MERGEJOIN_105] (rows=13756683 width=15)
                 Conds:RS_56._col2, _col1=RS_57._col2, _col1(Inner),Output:["_col1","_col2","_col4","_col5","_col7","_col8","_col10","_col11"]
               <-Reducer 15 [SIMPLE_EDGE]
                 SHUFFLE [RS_57]
                   PartitionCols:_col2, _col1
-                  Select Operator [SEL_55] (rows=153730 width=1436)
+                  Select Operator [SEL_55] (rows=12506076 width=15)
                     Output:["_col1","_col2","_col4","_col5"]
-                    Filter Operator [FIL_54] (rows=153730 width=1436)
+                    Filter Operator [FIL_54] (rows=12506076 width=15)
                       predicate:CASE WHEN ((_col4 = 0.0)) THEN (false) ELSE (((_col5 / _col4) > 1.0)) END
-                      Select Operator [SEL_97] (rows=307461 width=1436)
+                      Select Operator [SEL_97] (rows=25012152 width=15)
                         Output:["_col1","_col2","_col4","_col5"]
-                        Group By Operator [GBY_53] (rows=307461 width=1436)
+                        Group By Operator [GBY_53] (rows=25012152 width=15)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["avg(VALUE._col0)","stddev_samp(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, 4
                         <-Reducer 14 [SIMPLE_EDGE]
                           SHUFFLE [RS_52]
                             PartitionCols:_col0, _col1, _col2, 4
-                            Group By Operator [GBY_51] (rows=614922 width=1436)
+                            Group By Operator [GBY_51] (rows=50024305 width=15)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["avg(_col4)","stddev_samp(_col4)"],keys:_col0, _col1, _col2, 4
-                              Select Operator [SEL_49] (rows=614922 width=1436)
+                              Select Operator [SEL_49] (rows=50024305 width=15)
                                 Output:["_col0","_col1","_col2","_col4"]
-                                Merge Join Operator [MERGEJOIN_104] (rows=614922 width=1436)
-                                  Conds:RS_46._col0=RS_47._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
+                                Merge Join Operator [MERGEJOIN_104] (rows=50024305 width=15)
+                                  Conds:RS_46._col2=RS_47._col0(Inner),Output:["_col3","_col7","_col8","_col9"]
                                 <-Map 18 [SIMPLE_EDGE]
                                   SHUFFLE [RS_47]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_39] (rows=18262 width=1119)
-                                      Output:["_col0"]
-                                      Filter Operator [FIL_96] (rows=18262 width=1119)
-                                        predicate:((d_year = 1999) and (d_moy = 4) and d_date_sk is not null)
-                                        TableScan [TS_37] (rows=73049 width=1119)
-                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                    Select Operator [SEL_39] (rows=27 width=1029)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_96] (rows=27 width=1029)
+                                        predicate:w_warehouse_sk is not null
+                                        TableScan [TS_37] (rows=27 width=1029)
+                                          default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name"]
                                 <-Reducer 13 [SIMPLE_EDGE]
                                   SHUFFLE [RS_46]
-                                    PartitionCols:_col0
-                                    Merge Join Operator [MERGEJOIN_103] (rows=559020 width=1436)
-                                      Conds:RS_43._col2=RS_44._col0(Inner),Output:["_col0","_col3","_col4","_col5","_col6"]
+                                    PartitionCols:_col2
+                                    Merge Join Operator [MERGEJOIN_103] (rows=45476640 width=15)
+                                      Conds:RS_43._col1=RS_44._col0(Inner),Output:["_col2","_col3","_col7"]
                                     <-Map 17 [SIMPLE_EDGE]
                                       SHUFFLE [RS_44]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_36] (rows=27 width=1029)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_95] (rows=27 width=1029)
-                                            predicate:w_warehouse_sk is not null
-                                            TableScan [TS_34] (rows=27 width=1029)
-                                              default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name"]
+                                        Select Operator [SEL_36] (rows=462000 width=1436)
+                                          Output:["_col0"]
+                                          Filter Operator [FIL_95] (rows=462000 width=1436)
+                                            predicate:i_item_sk is not null
+                                            TableScan [TS_34] (rows=462000 width=1436)
+                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk"]
                                     <-Reducer 12 [SIMPLE_EDGE]
                                       SHUFFLE [RS_43]
-                                        PartitionCols:_col2
-                                        Merge Join Operator [MERGEJOIN_102] (rows=508200 width=1436)
-                                          Conds:RS_40._col1=RS_41._col0(Inner),Output:["_col0","_col2","_col3","_col4"]
+                                        PartitionCols:_col1
+                                        Merge Join Operator [MERGEJOIN_102] (rows=41342400 width=15)
+                                          Conds:RS_40._col0=RS_41._col0(Inner),Output:["_col1","_col2","_col3"]
                                         <-Map 11 [SIMPLE_EDGE]
                                           SHUFFLE [RS_40]
-                                            PartitionCols:_col1
-                                            Select Operator [SEL_30] (rows=1 width=0)
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_30] (rows=37584000 width=15)
                                               Output:["_col0","_col1","_col2","_col3"]
-                                              Filter Operator [FIL_93] (rows=1 width=0)
+                                              Filter Operator [FIL_93] (rows=37584000 width=15)
                                                 predicate:(inv_item_sk is not null and inv_warehouse_sk is not null and inv_date_sk is not null)
-                                                TableScan [TS_28] (rows=1 width=0)
-                                                  default@inventory,inventory,Tbl:PARTIAL,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
+                                                TableScan [TS_28] (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 16 [SIMPLE_EDGE]
                                           SHUFFLE [RS_41]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_33] (rows=462000 width=1436)
+                                            Select Operator [SEL_33] (rows=18262 width=1119)
                                               Output:["_col0"]
-                                              Filter Operator [FIL_94] (rows=462000 width=1436)
-                                                predicate:i_item_sk is not null
-                                                TableScan [TS_31] (rows=462000 width=1436)
-                                                  default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk"]
+                                              Filter Operator [FIL_94] (rows=18262 width=1119)
+                                                predicate:((d_year = 1999) and (d_moy = 4) and d_date_sk is not null)
+                                                TableScan [TS_31] (rows=73049 width=1119)
+                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_56]
                   PartitionCols:_col2, _col1
-                  Select Operator [SEL_27] (rows=153730 width=1436)
+                  Select Operator [SEL_27] (rows=12506076 width=15)
                     Output:["_col1","_col2","_col4","_col5"]
-                    Filter Operator [FIL_26] (rows=153730 width=1436)
+                    Filter Operator [FIL_26] (rows=12506076 width=15)
                       predicate:CASE WHEN ((_col4 = 0.0)) THEN (false) ELSE (((_col5 / _col4) > 1.0)) END
-                      Select Operator [SEL_98] (rows=307461 width=1436)
+                      Select Operator [SEL_98] (rows=25012152 width=15)
                         Output:["_col1","_col2","_col4","_col5"]
-                        Group By Operator [GBY_25] (rows=307461 width=1436)
+                        Group By Operator [GBY_25] (rows=25012152 width=15)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["avg(VALUE._col0)","stddev_samp(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, 3
                         <-Reducer 4 [SIMPLE_EDGE]
                           SHUFFLE [RS_24]
                             PartitionCols:_col0, _col1, _col2, 3
-                            Group By Operator [GBY_23] (rows=614922 width=1436)
+                            Group By Operator [GBY_23] (rows=50024305 width=15)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["avg(_col4)","stddev_samp(_col4)"],keys:_col0, _col1, _col2, 3
-                              Select Operator [SEL_21] (rows=614922 width=1436)
+                              Select Operator [SEL_21] (rows=50024305 width=15)
                                 Output:["_col0","_col1","_col2","_col4"]
-                                Merge Join Operator [MERGEJOIN_101] (rows=614922 width=1436)
-                                  Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col3","_col4","_col5","_col6"]
+                                Merge Join Operator [MERGEJOIN_101] (rows=50024305 width=15)
+                                  Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col3","_col7","_col8","_col9"]
                                 <-Map 10 [SIMPLE_EDGE]
                                   SHUFFLE [RS_19]
                                     PartitionCols:_col0
-                                    Select Operator [SEL_11] (rows=18262 width=1119)
-                                      Output:["_col0"]
-                                      Filter Operator [FIL_92] (rows=18262 width=1119)
-                                        predicate:((d_year = 1999) and (d_moy = 3) 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"]
+                                    Select Operator [SEL_11] (rows=27 width=1029)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_92] (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:_col0
-                                    Merge Join Operator [MERGEJOIN_100] (rows=559020 width=1436)
-                                      Conds:RS_15._col2=RS_16._col0(Inner),Output:["_col0","_col3","_col4","_col5","_col6"]
+                                    PartitionCols:_col2
+                                    Merge Join Operator [MERGEJOIN_100] (rows=45476640 width=15)
+                                      Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col2","_col3","_col7"]
                                     <-Map 9 [SIMPLE_EDGE]
                                       SHUFFLE [RS_16]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_8] (rows=27 width=1029)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_91] (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","w_warehouse_name"]
+                                        Select Operator [SEL_8] (rows=462000 width=1436)
+                                          Output:["_col0"]
+                                          Filter Operator [FIL_91] (rows=462000 width=1436)
+                                            predicate:i_item_sk is not null
+                                            TableScan [TS_6] (rows=462000 width=1436)
+                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk"]
                                     <-Reducer 2 [SIMPLE_EDGE]
                                       SHUFFLE [RS_15]
-                                        PartitionCols:_col2
-                                        Merge Join Operator [MERGEJOIN_99] (rows=508200 width=1436)
-                                          Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col0","_col2","_col3","_col4"]
+                                        PartitionCols:_col1
+                                        Merge Join Operator [MERGEJOIN_99] (rows=41342400 width=15)
+                                          Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3"]
                                         <-Map 1 [SIMPLE_EDGE]
                                           SHUFFLE [RS_12]
-                                            PartitionCols:_col1
-                                            Select Operator [SEL_2] (rows=1 width=0)
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_2] (rows=37584000 width=15)
                                               Output:["_col0","_col1","_col2","_col3"]
-                                              Filter Operator [FIL_89] (rows=1 width=0)
+                                              Filter Operator [FIL_89] (rows=37584000 width=15)
                                                 predicate:(inv_item_sk is not null and inv_warehouse_sk is not null and inv_date_sk is not null)
-                                                TableScan [TS_0] (rows=1 width=0)
-                                                  default@inventory,inventory,Tbl:PARTIAL,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
+                                                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 8 [SIMPLE_EDGE]
                                           SHUFFLE [RS_13]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_5] (rows=462000 width=1436)
+                                            Select Operator [SEL_5] (rows=18262 width=1119)
                                               Output:["_col0"]
-                                              Filter Operator [FIL_90] (rows=462000 width=1436)
-                                                predicate:i_item_sk is not null
-                                                TableScan [TS_3] (rows=462000 width=1436)
-                                                  default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk"]
+                                              Filter Operator [FIL_90] (rows=18262 width=1119)
+                                                predicate:((d_year = 1999) and (d_moy = 3) and d_date_sk is not null)
+                                                TableScan [TS_3] (rows=73049 width=1119)
+                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
 
 PREHOOK: query: with inv as (select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stdev,mean, case mean when 0 then null else stdev/mean end cov from(select w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy ,stddev_samp(inv_quantity_on_hand) stdev,avg(inv_quantity_on_hand) mean from inventory ,item ,warehouse ,date_dim where inv_item_sk = i_item_sk and inv_warehouse_sk = w_warehouse_sk and inv_date_sk = d_date_sk and d_year =1999 group by w_warehouse_name,w_warehouse_sk,i_item_sk,d_moy) foo where case mean when 0 then 0 else stdev/mean end > 1) select inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean, inv1.cov ,inv2.w_warehouse_sk,inv2.i_item_sk,inv2.d_moy,inv2.mean, inv2.cov from inv inv1,inv inv2 where inv1.i_item_sk = inv2.i_item_sk and inv1.w_warehouse_sk = inv2.w_warehouse_sk and inv1.d_moy=3 and inv2.d_moy=3+1 and inv1.cov > 1.5 order by inv1.w_warehouse_sk,inv1.i_item_sk,inv1.d_moy,inv1.mean,inv1.cov ,inv2.d_moy,inv2.mean, inv2.cov
 PREHOOK: type: QUERY

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query40.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query40.q.out b/ql/src/test/results/clientpositive/perf/query40.q.out
index 34ceb71..c3c746b 100644
--- a/ql/src/test/results/clientpositive/perf/query40.q.out
+++ b/ql/src/test/results/clientpositive/perf/query40.q.out
@@ -18,37 +18,37 @@ Stage-0
     Stage-1
       Reducer 7
       File Output Operator [FS_36]
-        Limit [LIM_35] (rows=100 width=1436)
+        Limit [LIM_35] (rows=100 width=135)
           Number of rows:100
-          Select Operator [SEL_34] (rows=139755 width=1436)
+          Select Operator [SEL_34] (rows=210822976 width=135)
             Output:["_col0","_col1","_col2","_col3"]
           <-Reducer 6 [SIMPLE_EDGE]
             SHUFFLE [RS_33]
-              Group By Operator [GBY_31] (rows=139755 width=1436)
+              Group By Operator [GBY_31] (rows=210822976 width=135)
                 Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_30]
                   PartitionCols:_col0, _col1
-                  Group By Operator [GBY_29] (rows=279510 width=1436)
+                  Group By Operator [GBY_29] (rows=421645953 width=135)
                     Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col2)","sum(_col3)"],keys:_col0, _col1
-                    Select Operator [SEL_27] (rows=279510 width=1436)
+                    Select Operator [SEL_27] (rows=421645953 width=135)
                       Output:["_col0","_col1","_col2","_col3"]
-                      Merge Join Operator [MERGEJOIN_58] (rows=279510 width=1436)
-                        Conds:RS_24._col0=RS_25._col0(Inner),Output:["_col4","_col7","_col9","_col11","_col14"]
+                      Merge Join Operator [MERGEJOIN_58] (rows=421645953 width=135)
+                        Conds:RS_24._col1=RS_25._col0(Inner),Output:["_col4","_col7","_col9","_col11","_col14"]
                       <-Map 11 [SIMPLE_EDGE]
                         SHUFFLE [RS_25]
                           PartitionCols:_col0
-                          Select Operator [SEL_14] (rows=36524 width=1119)
+                          Select Operator [SEL_14] (rows=27 width=1029)
                             Output:["_col0","_col1"]
-                            Filter Operator [FIL_54] (rows=36524 width=1119)
-                              predicate:(d_date BETWEEN '1998-03-09' AND '1998-05-08' and d_date_sk is not null)
-                              TableScan [TS_12] (rows=73049 width=1119)
-                                default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                            Filter Operator [FIL_54] (rows=27 width=1029)
+                              predicate:w_warehouse_sk is not null
+                              TableScan [TS_12] (rows=27 width=1029)
+                                default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_state"]
                       <-Reducer 4 [SIMPLE_EDGE]
                         SHUFFLE [RS_24]
-                          PartitionCols:_col0
-                          Merge Join Operator [MERGEJOIN_57] (rows=254100 width=1436)
-                            Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col0","_col4","_col7","_col9","_col11"]
+                          PartitionCols:_col1
+                          Merge Join Operator [MERGEJOIN_57] (rows=383314495 width=135)
+                            Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col1","_col4","_col7","_col9","_col11"]
                           <-Map 10 [SIMPLE_EDGE]
                             SHUFFLE [RS_22]
                               PartitionCols:_col0
@@ -61,38 +61,38 @@ Stage-0
                           <-Reducer 3 [SIMPLE_EDGE]
                             SHUFFLE [RS_21]
                               PartitionCols:_col2
-                              Merge Join Operator [MERGEJOIN_56] (rows=29 width=1054)
-                                Conds:RS_18._col1=RS_19._col0(Inner),Output:["_col0","_col2","_col4","_col7","_col9"]
+                              Merge Join Operator [MERGEJOIN_56] (rows=348467716 width=135)
+                                Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col2","_col4","_col7","_col9"]
                               <-Map 9 [SIMPLE_EDGE]
                                 SHUFFLE [RS_19]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_8] (rows=27 width=1029)
+                                  Select Operator [SEL_8] (rows=36524 width=1119)
                                     Output:["_col0","_col1"]
-                                    Filter Operator [FIL_52] (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","w_state"]
+                                    Filter Operator [FIL_52] (rows=36524 width=1119)
+                                      predicate:(d_date BETWEEN '1998-03-09' AND '1998-05-08' and d_date_sk is not null)
+                                      TableScan [TS_6] (rows=73049 width=1119)
+                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
                               <-Reducer 2 [SIMPLE_EDGE]
                                 SHUFFLE [RS_18]
-                                  PartitionCols:_col1
-                                  Merge Join Operator [MERGEJOIN_55] (rows=1 width=0)
+                                  PartitionCols:_col0
+                                  Merge Join Operator [MERGEJOIN_55] (rows=316788826 width=135)
                                     Conds:RS_15._col3, _col2=RS_16._col1, _col0(Left Outer),Output:["_col0","_col1","_col2","_col4","_col7"]
                                   <-Map 1 [SIMPLE_EDGE]
                                     SHUFFLE [RS_15]
                                       PartitionCols:_col3, _col2
-                                      Select Operator [SEL_2] (rows=1 width=0)
+                                      Select Operator [SEL_2] (rows=287989836 width=135)
                                         Output:["_col0","_col1","_col2","_col3","_col4"]
-                                        Filter Operator [FIL_50] (rows=1 width=0)
+                                        Filter Operator [FIL_50] (rows=287989836 width=135)
                                           predicate:(cs_warehouse_sk is not null and cs_item_sk is not null and cs_sold_date_sk is not null)
-                                          TableScan [TS_0] (rows=1 width=0)
-                                            default@catalog_sales,catalog_sales,Tbl:PARTIAL,Col:NONE,Output:["cs_sold_date_sk","cs_warehouse_sk","cs_item_sk","cs_order_number","cs_sales_price"]
+                                          TableScan [TS_0] (rows=287989836 width=135)
+                                            default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_warehouse_sk","cs_item_sk","cs_order_number","cs_sales_price"]
                                   <-Map 8 [SIMPLE_EDGE]
                                     SHUFFLE [RS_16]
                                       PartitionCols:_col1, _col0
-                                      Select Operator [SEL_5] (rows=1 width=0)
+                                      Select Operator [SEL_5] (rows=28798881 width=106)
                                         Output:["_col0","_col1","_col2"]
-                                        Filter Operator [FIL_51] (rows=1 width=0)
+                                        Filter Operator [FIL_51] (rows=28798881 width=106)
                                           predicate:cr_item_sk is not null
-                                          TableScan [TS_3] (rows=1 width=0)
-                                            default@catalog_returns,catalog_returns,Tbl:PARTIAL,Col:NONE,Output:["cr_item_sk","cr_order_number","cr_refunded_cash"]
+                                          TableScan [TS_3] (rows=28798881 width=106)
+                                            default@catalog_returns,catalog_returns,Tbl:COMPLETE,Col:NONE,Output:["cr_item_sk","cr_order_number","cr_refunded_cash"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query42.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query42.q.out b/ql/src/test/results/clientpositive/perf/query42.q.out
index 1640d4e..c6c4a3c 100644
--- a/ql/src/test/results/clientpositive/perf/query42.q.out
+++ b/ql/src/test/results/clientpositive/perf/query42.q.out
@@ -16,25 +16,25 @@ Stage-0
     Stage-1
       Reducer 5
       File Output Operator [FS_24]
-        Limit [LIM_23] (rows=100 width=1436)
+        Limit [LIM_23] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_22] (rows=127050 width=1436)
+          Select Operator [SEL_22] (rows=348477374 width=88)
             Output:["_col0","_col1","_col2","_col3"]
           <-Reducer 4 [SIMPLE_EDGE]
             SHUFFLE [RS_21]
-              Select Operator [SEL_20] (rows=127050 width=1436)
+              Select Operator [SEL_20] (rows=348477374 width=88)
                 Output:["_col1","_col2","_col3"]
-                Group By Operator [GBY_19] (rows=127050 width=1436)
+                Group By Operator [GBY_19] (rows=348477374 width=88)
                   Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)"],keys:1998, KEY._col1, KEY._col2
                 <-Reducer 3 [SIMPLE_EDGE]
                   SHUFFLE [RS_18]
                     PartitionCols:1998, _col1, _col2
-                    Group By Operator [GBY_17] (rows=254100 width=1436)
+                    Group By Operator [GBY_17] (rows=696954748 width=88)
                       Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col3)"],keys:1998, _col1, _col2
-                      Select Operator [SEL_15] (rows=254100 width=1436)
+                      Select Operator [SEL_15] (rows=696954748 width=88)
                         Output:["_col1","_col2","_col3"]
-                        Merge Join Operator [MERGEJOIN_34] (rows=254100 width=1436)
-                          Conds:RS_12._col4=RS_13._col0(Inner),Output:["_col5","_col7","_col8"]
+                        Merge Join Operator [MERGEJOIN_34] (rows=696954748 width=88)
+                          Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col2","_col7","_col8"]
                         <-Map 7 [SIMPLE_EDGE]
                           SHUFFLE [RS_13]
                             PartitionCols:_col0
@@ -46,25 +46,25 @@ Stage-0
                                   default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_category_id","i_category","i_manager_id"]
                         <-Reducer 2 [SIMPLE_EDGE]
                           SHUFFLE [RS_12]
-                            PartitionCols:_col4
-                            Merge Join Operator [MERGEJOIN_33] (rows=20088 width=1119)
-                              Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col4","_col5"]
+                            PartitionCols:_col1
+                            Merge Join Operator [MERGEJOIN_33] (rows=633595212 width=88)
+                              Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col1","_col2"]
                             <-Map 1 [SIMPLE_EDGE]
                               SHUFFLE [RS_9]
                                 PartitionCols:_col0
-                                Select Operator [SEL_2] (rows=18262 width=1119)
-                                  Output:["_col0"]
-                                  Filter Operator [FIL_30] (rows=18262 width=1119)
-                                    predicate:((d_moy = 12) and (d_year = 1998) and d_date_sk is not null)
-                                    TableScan [TS_0] (rows=73049 width=1119)
-                                      default@date_dim,dt,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                Select Operator [SEL_2] (rows=575995635 width=88)
+                                  Output:["_col0","_col1","_col2"]
+                                  Filter Operator [FIL_30] (rows=575995635 width=88)
+                                    predicate:(ss_sold_date_sk is not null and ss_item_sk is not null)
+                                    TableScan [TS_0] (rows=575995635 width=88)
+                                      default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ext_sales_price"]
                             <-Map 6 [SIMPLE_EDGE]
                               SHUFFLE [RS_10]
                                 PartitionCols:_col0
-                                Select Operator [SEL_5] (rows=1 width=0)
-                                  Output:["_col0","_col1","_col2"]
-                                  Filter Operator [FIL_31] (rows=1 width=0)
-                                    predicate:(ss_sold_date_sk is not null and ss_item_sk is not null)
-                                    TableScan [TS_3] (rows=1 width=0)
-                                      default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_ext_sales_price"]
+                                Select Operator [SEL_5] (rows=18262 width=1119)
+                                  Output:["_col0"]
+                                  Filter Operator [FIL_31] (rows=18262 width=1119)
+                                    predicate:((d_moy = 12) and (d_year = 1998) and d_date_sk is not null)
+                                    TableScan [TS_3] (rows=73049 width=1119)
+                                      default@date_dim,dt,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query43.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query43.q.out b/ql/src/test/results/clientpositive/perf/query43.q.out
index 6262c1f..72712e8 100644
--- a/ql/src/test/results/clientpositive/perf/query43.q.out
+++ b/ql/src/test/results/clientpositive/perf/query43.q.out
@@ -16,23 +16,23 @@ Stage-0
     Stage-1
       Reducer 5
       File Output Operator [FS_24]
-        Limit [LIM_23] (rows=100 width=1119)
+        Limit [LIM_23] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_22] (rows=22096 width=1119)
+          Select Operator [SEL_22] (rows=348477374 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
           <-Reducer 4 [SIMPLE_EDGE]
             SHUFFLE [RS_21]
-              Group By Operator [GBY_19] (rows=22096 width=1119)
+              Group By Operator [GBY_19] (rows=348477374 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"],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, KEY._col1
               <-Reducer 3 [SIMPLE_EDGE]
                 SHUFFLE [RS_18]
                   PartitionCols:_col0, _col1
-                  Group By Operator [GBY_17] (rows=44193 width=1119)
+                  Group By Operator [GBY_17] (rows=696954748 width=88)
                     Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"],aggregations:["sum(_col2)","sum(_col3)","sum(_col4)","sum(_col5)","sum(_col6)","sum(_col7)","sum(_col8)"],keys:_col0, _col1
-                    Select Operator [SEL_15] (rows=44193 width=1119)
+                    Select Operator [SEL_15] (rows=696954748 width=88)
                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                      Merge Join Operator [MERGEJOIN_34] (rows=44193 width=1119)
-                        Conds:RS_12._col4=RS_13._col0(Inner),Output:["_col2","_col5","_col7","_col8"]
+                      Merge Join Operator [MERGEJOIN_34] (rows=696954748 width=88)
+                        Conds:RS_12._col1=RS_13._col0(Inner),Output:["_col2","_col5","_col7","_col8"]
                       <-Map 7 [SIMPLE_EDGE]
                         SHUFFLE [RS_13]
                           PartitionCols:_col0
@@ -44,25 +44,25 @@ Stage-0
                                 default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_id","s_store_name","s_gmt_offset"]
                       <-Reducer 2 [SIMPLE_EDGE]
                         SHUFFLE [RS_12]
-                          PartitionCols:_col4
-                          Merge Join Operator [MERGEJOIN_33] (rows=40176 width=1119)
-                            Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col2","_col4","_col5"]
+                          PartitionCols:_col1
+                          Merge Join Operator [MERGEJOIN_33] (rows=633595212 width=88)
+                            Conds:RS_9._col0=RS_10._col0(Inner),Output:["_col1","_col2","_col5"]
                           <-Map 1 [SIMPLE_EDGE]
                             SHUFFLE [RS_9]
                               PartitionCols:_col0
-                              Select Operator [SEL_2] (rows=36524 width=1119)
-                                Output:["_col0","_col2"]
-                                Filter Operator [FIL_30] (rows=36524 width=1119)
-                                  predicate:((d_year = 1998) and d_date_sk is not null)
-                                  TableScan [TS_0] (rows=73049 width=1119)
-                                    default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_day_name"]
+                              Select Operator [SEL_2] (rows=575995635 width=88)
+                                Output:["_col0","_col1","_col2"]
+                                Filter Operator [FIL_30] (rows=575995635 width=88)
+                                  predicate:(ss_sold_date_sk is not null and ss_store_sk is not null)
+                                  TableScan [TS_0] (rows=575995635 width=88)
+                                    default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_store_sk","ss_sales_price"]
                           <-Map 6 [SIMPLE_EDGE]
                             SHUFFLE [RS_10]
                               PartitionCols:_col0
-                              Select Operator [SEL_5] (rows=1 width=0)
-                                Output:["_col0","_col1","_col2"]
-                                Filter Operator [FIL_31] (rows=1 width=0)
-                                  predicate:(ss_sold_date_sk is not null and ss_store_sk is not null)
-                                  TableScan [TS_3] (rows=1 width=0)
-                                    default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_store_sk","ss_sales_price"]
+                              Select Operator [SEL_5] (rows=36524 width=1119)
+                                Output:["_col0","_col2"]
+                                Filter Operator [FIL_31] (rows=36524 width=1119)
+                                  predicate:((d_year = 1998) and d_date_sk is not null)
+                                  TableScan [TS_3] (rows=73049 width=1119)
+                                    default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_day_name"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query45.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query45.q.out b/ql/src/test/results/clientpositive/perf/query45.q.out
index 17bc5ee..04f9b02 100644
--- a/ql/src/test/results/clientpositive/perf/query45.q.out
+++ b/ql/src/test/results/clientpositive/perf/query45.q.out
@@ -6,112 +6,110 @@ Plan optimized by CBO.
 
 Vertex dependency in root stage
 Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 13 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
-Reducer 3 <- Map 9 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 10 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Reducer 12 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
+Reducer 8 <- Map 10 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
+Reducer 9 <- Reducer 12 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 7
-      File Output Operator [FS_44]
-        Limit [LIM_43] (rows=100 width=860)
+      Reducer 5
+      File Output Operator [FS_45]
+        Limit [LIM_44] (rows=100 width=135)
           Number of rows:100
-          Select Operator [SEL_42] (rows=58564004 width=860)
+          Select Operator [SEL_43] (rows=95833781 width=135)
             Output:["_col0","_col1","_col2"]
-          <-Reducer 6 [SIMPLE_EDGE]
-            SHUFFLE [RS_41]
-              Select Operator [SEL_40] (rows=58564004 width=860)
+          <-Reducer 4 [SIMPLE_EDGE]
+            SHUFFLE [RS_42]
+              Select Operator [SEL_41] (rows=95833781 width=135)
                 Output:["_col0","_col1","_col2"]
-                Group By Operator [GBY_39] (rows=58564004 width=860)
+                Group By Operator [GBY_40] (rows=95833781 width=135)
                   Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
-                <-Reducer 5 [SIMPLE_EDGE]
-                  SHUFFLE [RS_38]
+                <-Reducer 3 [SIMPLE_EDGE]
+                  SHUFFLE [RS_39]
                     PartitionCols:_col0, _col1
-                    Group By Operator [GBY_37] (rows=117128008 width=860)
-                      Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col7, _col8
-                      Select Operator [SEL_36] (rows=117128008 width=860)
-                        Output:["_col7","_col8","_col3"]
-                        Merge Join Operator [MERGEJOIN_72] (rows=117128008 width=860)
-                          Conds:RS_33._col1=RS_34._col0(Inner),Output:["_col3","_col7","_col8"]
-                        <-Reducer 12 [SIMPLE_EDGE]
-                          SHUFFLE [RS_34]
-                            PartitionCols:_col0
-                            Merge Join Operator [MERGEJOIN_71] (rows=508200 width=1436)
-                              Conds:RS_20._col1=RS_21._col0(Left Semi),Output:["_col0"]
-                            <-Map 11 [SIMPLE_EDGE]
-                              SHUFFLE [RS_20]
-                                PartitionCols:_col1
-                                Select Operator [SEL_14] (rows=462000 width=1436)
-                                  Output:["_col0","_col1"]
-                                  Filter Operator [FIL_66] (rows=462000 width=1436)
-                                    predicate:(i_item_sk is not null and i_item_id is not null)
-                                    TableScan [TS_12] (rows=462000 width=1436)
-                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
-                            <-Map 13 [SIMPLE_EDGE]
-                              SHUFFLE [RS_21]
-                                PartitionCols:_col0
-                                Group By Operator [GBY_19] (rows=231000 width=1436)
-                                  Output:["_col0"],keys:_col0
-                                  Select Operator [SEL_17] (rows=231000 width=1436)
+                    Group By Operator [GBY_38] (rows=191667562 width=135)
+                      Output:["_col0","_col1","_col2"],aggregations:["sum(_col10)"],keys:_col3, _col4
+                      Merge Join Operator [MERGEJOIN_72] (rows=191667562 width=135)
+                        Conds:RS_34._col0=RS_35._col4(Inner),Output:["_col3","_col4","_col10"]
+                      <-Reducer 2 [SIMPLE_EDGE]
+                        SHUFFLE [RS_34]
+                          PartitionCols:_col0
+                          Merge Join Operator [MERGEJOIN_68] (rows=88000001 width=860)
+                            Conds:RS_31._col1=RS_32._col0(Inner),Output:["_col0","_col3","_col4"]
+                          <-Map 1 [SIMPLE_EDGE]
+                            SHUFFLE [RS_31]
+                              PartitionCols:_col1
+                              Select Operator [SEL_2] (rows=80000000 width=860)
+                                Output:["_col0","_col1"]
+                                Filter Operator [FIL_62] (rows=80000000 width=860)
+                                  predicate:(c_customer_sk is not null and c_current_addr_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 6 [SIMPLE_EDGE]
+                            SHUFFLE [RS_32]
+                              PartitionCols:_col0
+                              Select Operator [SEL_5] (rows=40000000 width=1014)
+                                Output:["_col0","_col1","_col2"]
+                                Filter Operator [FIL_63] (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_county","ca_zip"]
+                      <-Reducer 9 [SIMPLE_EDGE]
+                        SHUFFLE [RS_35]
+                          PartitionCols:_col4
+                          Merge Join Operator [MERGEJOIN_71] (rows=174243235 width=135)
+                            Conds:RS_27._col0=RS_28._col1(Inner),Output:["_col4","_col5"]
+                          <-Reducer 12 [SIMPLE_EDGE]
+                            SHUFFLE [RS_28]
+                              PartitionCols:_col1
+                              Merge Join Operator [MERGEJOIN_70] (rows=158402938 width=135)
+                                Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col2","_col3"]
+                              <-Map 11 [SIMPLE_EDGE]
+                                SHUFFLE [RS_18]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_14] (rows=144002668 width=135)
+                                    Output:["_col0","_col1","_col2","_col3"]
+                                    Filter Operator [FIL_66] (rows=144002668 width=135)
+                                      predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null and ws_item_sk is not null)
+                                      TableScan [TS_12] (rows=144002668 width=135)
+                                        default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk","ws_sales_price"]
+                              <-Map 13 [SIMPLE_EDGE]
+                                SHUFFLE [RS_19]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_17] (rows=18262 width=1119)
                                     Output:["_col0"]
-                                    Filter Operator [FIL_67] (rows=231000 width=1436)
-                                      predicate:((i_item_sk) IN (2, 3, 5, 7, 11, 13, 17, 19, 23, 29) and i_item_id is not null)
-                                      TableScan [TS_15] (rows=462000 width=1436)
+                                    Filter Operator [FIL_67] (rows=18262 width=1119)
+                                      predicate:((d_qoy = 2) and (d_year = 2000) and d_date_sk is not null)
+                                      TableScan [TS_15] (rows=73049 width=1119)
+                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_qoy"]
+                          <-Reducer 8 [SIMPLE_EDGE]
+                            SHUFFLE [RS_27]
+                              PartitionCols:_col0
+                              Merge Join Operator [MERGEJOIN_69] (rows=508200 width=1436)
+                                Conds:RS_24._col1=RS_25._col0(Left Semi),Output:["_col0"]
+                              <-Map 10 [SIMPLE_EDGE]
+                                SHUFFLE [RS_25]
+                                  PartitionCols:_col0
+                                  Group By Operator [GBY_23] (rows=231000 width=1436)
+                                    Output:["_col0"],keys:_col0
+                                    Select Operator [SEL_11] (rows=231000 width=1436)
+                                      Output:["_col0"]
+                                      Filter Operator [FIL_65] (rows=231000 width=1436)
+                                        predicate:((i_item_sk) IN (2, 3, 5, 7, 11, 13, 17, 19, 23, 29) and i_item_id is not null)
+                                        TableScan [TS_9] (rows=462000 width=1436)
+                                          default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
+                              <-Map 7 [SIMPLE_EDGE]
+                                SHUFFLE [RS_24]
+                                  PartitionCols:_col1
+                                  Select Operator [SEL_8] (rows=462000 width=1436)
+                                    Output:["_col0","_col1"]
+                                    Filter Operator [FIL_64] (rows=462000 width=1436)
+                                      predicate:(i_item_sk is not null and i_item_id is not null)
+                                      TableScan [TS_6] (rows=462000 width=1436)
                                         default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
-                        <-Reducer 4 [SIMPLE_EDGE]
-                          SHUFFLE [RS_33]
-                            PartitionCols:_col1
-                            Merge Join Operator [MERGEJOIN_70] (rows=106480005 width=860)
-                              Conds:RS_30._col0=RS_31._col0(Inner),Output:["_col1","_col3","_col7","_col8"]
-                            <-Map 10 [SIMPLE_EDGE]
-                              SHUFFLE [RS_31]
-                                PartitionCols:_col0
-                                Select Operator [SEL_11] (rows=18262 width=1119)
-                                  Output:["_col0"]
-                                  Filter Operator [FIL_65] (rows=18262 width=1119)
-                                    predicate:((d_qoy = 2) and (d_year = 2000) 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_qoy"]
-                            <-Reducer 3 [SIMPLE_EDGE]
-                              SHUFFLE [RS_30]
-                                PartitionCols:_col0
-                                Merge Join Operator [MERGEJOIN_69] (rows=96800003 width=860)
-                                  Conds:RS_27._col5=RS_28._col0(Inner),Output:["_col0","_col1","_col3","_col7","_col8"]
-                                <-Map 9 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_28]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_8] (rows=40000000 width=1014)
-                                      Output:["_col0","_col1","_col2"]
-                                      Filter Operator [FIL_64] (rows=40000000 width=1014)
-                                        predicate:ca_address_sk is not null
-                                        TableScan [TS_6] (rows=40000000 width=1014)
-                                          default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_county","ca_zip"]
-                                <-Reducer 2 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_27]
-                                    PartitionCols:_col5
-                                    Merge Join Operator [MERGEJOIN_68] (rows=88000001 width=860)
-                                      Conds:RS_24._col2=RS_25._col0(Inner),Output:["_col0","_col1","_col3","_col5"]
-                                    <-Map 1 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_24]
-                                        PartitionCols:_col2
-                                        Select Operator [SEL_2] (rows=1 width=0)
-                                          Output:["_col0","_col1","_col2","_col3"]
-                                          Filter Operator [FIL_62] (rows=1 width=0)
-                                            predicate:(ws_bill_customer_sk is not null and ws_sold_date_sk is not null and ws_item_sk is not null)
-                                            TableScan [TS_0] (rows=1 width=0)
-                                              default@web_sales,web_sales,Tbl:PARTIAL,Col:NONE,Output:["ws_sold_date_sk","ws_item_sk","ws_bill_customer_sk","ws_sales_price"]
-                                    <-Map 8 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_25]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_5] (rows=80000000 width=860)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_63] (rows=80000000 width=860)
-                                            predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
-                                            TableScan [TS_3] (rows=80000000 width=860)
-                                              default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query46.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query46.q.out b/ql/src/test/results/clientpositive/perf/query46.q.out
index 11804c9..22bf29b 100644
--- a/ql/src/test/results/clientpositive/perf/query46.q.out
+++ b/ql/src/test/results/clientpositive/perf/query46.q.out
@@ -5,130 +5,130 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 10 (SIMPLE_EDGE)
-Reducer 3 <- Map 11 (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 6 <- Reducer 5 (SIMPLE_EDGE)
-Reducer 7 <- Map 14 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
-Reducer 8 <- Map 15 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
-Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
+Reducer 10 <- Map 15 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 11 <- Reducer 10 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 5 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 11 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
+Reducer 7 <- Map 12 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 8 <- Map 13 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
+Reducer 9 <- Map 14 (SIMPLE_EDGE), Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 9
+      Reducer 4
       File Output Operator [FS_50]
-        Limit [LIM_49] (rows=100 width=860)
+        Limit [LIM_49] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_48] (rows=96800003 width=860)
+          Select Operator [SEL_48] (rows=463823414 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-          <-Reducer 8 [SIMPLE_EDGE]
+          <-Reducer 3 [SIMPLE_EDGE]
             SHUFFLE [RS_47]
-              Select Operator [SEL_46] (rows=96800003 width=860)
+              Select Operator [SEL_46] (rows=463823414 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                Filter Operator [FIL_45] (rows=96800003 width=860)
-                  predicate:(_col10 <> _col2)
-                  Merge Join Operator [MERGEJOIN_90] (rows=96800003 width=860)
-                    Conds:RS_42._col6=RS_43._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col7","_col8","_col10"]
-                  <-Map 15 [SIMPLE_EDGE]
+                Filter Operator [FIL_45] (rows=463823414 width=88)
+                  predicate:(_col5 <> _col8)
+                  Merge Join Operator [MERGEJOIN_86] (rows=463823414 width=88)
+                    Conds:RS_42._col0=RS_43._col1(Inner),Output:["_col2","_col3","_col5","_col6","_col8","_col9","_col10"]
+                  <-Reducer 11 [SIMPLE_EDGE]
                     SHUFFLE [RS_43]
-                      PartitionCols:_col0
-                      Select Operator [SEL_38] (rows=40000000 width=1014)
-                        Output:["_col0","_col1"]
-                        Filter Operator [FIL_84] (rows=40000000 width=1014)
-                          predicate:ca_address_sk is not null
-                          TableScan [TS_36] (rows=40000000 width=1014)
-                            default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_city"]
-                  <-Reducer 7 [SIMPLE_EDGE]
-                    SHUFFLE [RS_42]
-                      PartitionCols:_col6
-                      Merge Join Operator [MERGEJOIN_89] (rows=88000001 width=860)
-                        Conds:RS_39._col1=RS_40._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col6","_col7","_col8"]
-                      <-Map 14 [SIMPLE_EDGE]
-                        SHUFFLE [RS_40]
-                          PartitionCols:_col0
-                          Select Operator [SEL_35] (rows=80000000 width=860)
-                            Output:["_col0","_col1","_col2","_col3"]
-                            Filter Operator [FIL_83] (rows=80000000 width=860)
-                              predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
-                              TableScan [TS_33] (rows=80000000 width=860)
-                                default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk","c_first_name","c_last_name"]
-                      <-Reducer 6 [SIMPLE_EDGE]
-                        SHUFFLE [RS_39]
-                          PartitionCols:_col1
-                          Select Operator [SEL_31] (rows=22000000 width=1014)
-                            Output:["_col0","_col1","_col2","_col3","_col4"]
-                            Group By Operator [GBY_30] (rows=22000000 width=1014)
-                              Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
-                            <-Reducer 5 [SIMPLE_EDGE]
-                              SHUFFLE [RS_29]
-                                PartitionCols:_col0, _col1, _col2, _col3
-                                Group By Operator [GBY_28] (rows=44000000 width=1014)
-                                  Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(_col6)","sum(_col7)"],keys:_col1, _col3, _col5, _col17
-                                  Select Operator [SEL_27] (rows=44000000 width=1014)
-                                    Output:["_col1","_col3","_col5","_col17","_col6","_col7"]
-                                    Merge Join Operator [MERGEJOIN_88] (rows=44000000 width=1014)
-                                      Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col17"]
-                                    <-Map 13 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_25]
+                      PartitionCols:_col1
+                      Select Operator [SEL_37] (rows=421657640 width=88)
+                        Output:["_col0","_col1","_col2","_col3","_col4"]
+                        Group By Operator [GBY_36] (rows=421657640 width=88)
+                          Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
+                        <-Reducer 10 [SIMPLE_EDGE]
+                          SHUFFLE [RS_35]
+                            PartitionCols:_col0, _col1, _col2, _col3
+                            Group By Operator [GBY_34] (rows=843315281 width=88)
+                              Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(_col6)","sum(_col7)"],keys:_col17, _col1, _col3, _col5
+                              Select Operator [SEL_33] (rows=843315281 width=88)
+                                Output:["_col17","_col1","_col3","_col5","_col6","_col7"]
+                                Merge Join Operator [MERGEJOIN_85] (rows=843315281 width=88)
+                                  Conds:RS_30._col3=RS_31._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col17"]
+                                <-Map 15 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_31]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_20] (rows=40000000 width=1014)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_80] (rows=40000000 width=1014)
+                                        predicate:ca_address_sk is not null
+                                        TableScan [TS_18] (rows=40000000 width=1014)
+                                          default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_city"]
+                                <-Reducer 9 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_30]
+                                    PartitionCols:_col3
+                                    Merge Join Operator [MERGEJOIN_84] (rows=766650239 width=88)
+                                      Conds:RS_27._col2=RS_28._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7"]
+                                    <-Map 14 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_28]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_14] (rows=40000000 width=1014)
-                                          Output:["_col0","_col1"]
-                                          Filter Operator [FIL_82] (rows=40000000 width=1014)
-                                            predicate:ca_address_sk is not null
-                                            TableScan [TS_12] (rows=40000000 width=1014)
-                                              default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_city"]
-                                    <-Reducer 4 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_24]
-                                        PartitionCols:_col3
-                                        Merge Join Operator [MERGEJOIN_87] (rows=24306 width=1119)
-                                          Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7"]
-                                        <-Map 12 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_22]
+                                        Select Operator [SEL_17] (rows=7200 width=107)
+                                          Output:["_col0"]
+                                          Filter Operator [FIL_79] (rows=7200 width=107)
+                                            predicate:(((hd_dep_count = 4) or (hd_vehicle_count = 2)) and hd_demo_sk is not null)
+                                            TableScan [TS_15] (rows=7200 width=107)
+                                              default@household_demographics,household_demographics,Tbl:COMPLETE,Col:NONE,Output:["hd_demo_sk","hd_dep_count","hd_vehicle_count"]
+                                    <-Reducer 8 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_27]
+                                        PartitionCols:_col2
+                                        Merge Join Operator [MERGEJOIN_83] (rows=696954748 width=88)
+                                          Conds:RS_24._col4=RS_25._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col7"]
+                                        <-Map 13 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_25]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_11] (rows=7200 width=107)
+                                            Select Operator [SEL_14] (rows=852 width=1910)
                                               Output:["_col0"]
-                                              Filter Operator [FIL_81] (rows=7200 width=107)
-                                                predicate:(((hd_dep_count = 4) or (hd_vehicle_count = 2)) and hd_demo_sk is not null)
-                                                TableScan [TS_9] (rows=7200 width=107)
-                                                  default@household_demographics,household_demographics,Tbl:COMPLETE,Col:NONE,Output:["hd_demo_sk","hd_dep_count","hd_vehicle_count"]
-                                        <-Reducer 3 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_21]
-                                            PartitionCols:_col2
-                                            Merge Join Operator [MERGEJOIN_86] (rows=22097 width=1119)
-                                              Conds:RS_18._col4=RS_19._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col7"]
-                                            <-Map 11 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_19]
+                                              Filter Operator [FIL_78] (rows=852 width=1910)
+                                                predicate:((s_city) IN ('Rosedale', 'Bethlehem', 'Clinton', 'Clifton', 'Springfield') and s_store_sk is not null)
+                                                TableScan [TS_12] (rows=1704 width=1910)
+                                                  default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_city"]
+                                        <-Reducer 7 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_24]
+                                            PartitionCols:_col4
+                                            Merge Join Operator [MERGEJOIN_82] (rows=633595212 width=88)
+                                              Conds:RS_21._col0=RS_22._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                            <-Map 12 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_22]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_8] (rows=852 width=1910)
+                                                Select Operator [SEL_11] (rows=18263 width=1119)
                                                   Output:["_col0"]
-                                                  Filter Operator [FIL_80] (rows=852 width=1910)
-                                                    predicate:((s_city) IN ('Rosedale', 'Bethlehem', 'Clinton', 'Clifton', 'Springfield') and s_store_sk is not null)
-                                                    TableScan [TS_6] (rows=1704 width=1910)
-                                                      default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_city"]
-                                            <-Reducer 2 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_18]
-                                                PartitionCols:_col4
-                                                Merge Join Operator [MERGEJOIN_85] (rows=20089 width=1119)
-                                                  Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                                <-Map 1 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_15]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_2] (rows=1 width=0)
-                                                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                                      Filter Operator [FIL_78] (rows=1 width=0)
-                                                        predicate:(ss_sold_date_sk is not null and ss_store_sk is not null and ss_hdemo_sk is not null and ss_addr_sk is not null and ss_customer_sk is not null)
-                                                        TableScan [TS_0] (rows=1 width=0)
-                                                          default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_customer_sk","ss_hdemo_sk","ss_addr_sk","ss_store_sk","ss_ticket_number","ss_coupon_amt","ss_net_profit"]
-                                                <-Map 10 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_16]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_5] (rows=18263 width=1119)
-                                                      Output:["_col0"]
-                                                      Filter Operator [FIL_79] (rows=18263 width=1119)
-                                                        predicate:((d_dow) IN (6, 0) and (d_year) IN (1998, 1999, 2000) and d_date_sk is not null)
-                                                        TableScan [TS_3] (rows=73049 width=1119)
-                                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_dow"]
+                                                  Filter Operator [FIL_77] (rows=18263 width=1119)
+                                                    predicate:((d_dow) IN (6, 0) and (d_year) IN (1998, 1999, 2000) 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_dow"]
+                                            <-Map 6 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_21]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_8] (rows=575995635 width=88)
+                                                  Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                                  Filter Operator [FIL_76] (rows=575995635 width=88)
+                                                    predicate:(ss_sold_date_sk is not null and ss_store_sk is not null and ss_hdemo_sk is not null and ss_addr_sk is not null and ss_customer_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_customer_sk","ss_hdemo_sk","ss_addr_sk","ss_store_sk","ss_ticket_number","ss_coupon_amt","ss_net_profit"]
+                  <-Reducer 2 [SIMPLE_EDGE]
+                    SHUFFLE [RS_42]
+                      PartitionCols:_col0
+                      Merge Join Operator [MERGEJOIN_81] (rows=88000001 width=860)
+                        Conds:RS_39._col1=RS_40._col0(Inner),Output:["_col0","_col2","_col3","_col5"]
+                      <-Map 1 [SIMPLE_EDGE]
+                        SHUFFLE [RS_39]
+                          PartitionCols:_col1
+                          Select Operator [SEL_2] (rows=80000000 width=860)
+                            Output:["_col0","_col1","_col2","_col3"]
+                            Filter Operator [FIL_74] (rows=80000000 width=860)
+                              predicate:(c_customer_sk is not null and c_current_addr_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","c_first_name","c_last_name"]
+                      <-Map 5 [SIMPLE_EDGE]
+                        SHUFFLE [RS_40]
+                          PartitionCols:_col0
+                          Select Operator [SEL_5] (rows=40000000 width=1014)
+                            Output:["_col0","_col1"]
+                            Filter Operator [FIL_75] (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_city"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query48.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query48.q.out b/ql/src/test/results/clientpositive/perf/query48.q.out
index d93fc07..0964564 100644
--- a/ql/src/test/results/clientpositive/perf/query48.q.out
+++ b/ql/src/test/results/clientpositive/perf/query48.q.out
@@ -5,88 +5,90 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
-Reducer 3 <- Map 8 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Map 9 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
-Reducer 5 <- Map 10 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
-Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 5 <- Map 4 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 6 <- Map 9 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Map 10 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:-1
     Stage-1
-      Reducer 6
-      File Output Operator [FS_34]
-        Group By Operator [GBY_32] (rows=1 width=8)
+      Reducer 3
+      File Output Operator [FS_35]
+        Group By Operator [GBY_33] (rows=1 width=8)
           Output:["_col0"],aggregations:["sum(VALUE._col0)"]
-        <-Reducer 5 [SIMPLE_EDGE]
-          SHUFFLE [RS_31]
-            Group By Operator [GBY_30] (rows=1 width=8)
-              Output:["_col0"],aggregations:["sum(_col4)"]
-              Merge Join Operator [MERGEJOIN_57] (rows=9075000 width=1014)
-                Conds:RS_26._col0=RS_27._col0(Inner),Output:["_col4"]
-              <-Map 10 [SIMPLE_EDGE]
+        <-Reducer 2 [SIMPLE_EDGE]
+          SHUFFLE [RS_32]
+            Group By Operator [GBY_31] (rows=1 width=8)
+              Output:["_col0"],aggregations:["sum(_col6)"]
+              Merge Join Operator [MERGEJOIN_58] (rows=632486461 width=88)
+                Conds:RS_27._col0=RS_28._col0(Inner),Output:["_col6"]
+              <-Map 1 [SIMPLE_EDGE]
                 SHUFFLE [RS_27]
                   PartitionCols:_col0
-                  Select Operator [SEL_25] (rows=36524 width=1119)
+                  Select Operator [SEL_2] (rows=36524 width=1119)
                     Output:["_col0"]
-                    Filter Operator [FIL_53] (rows=36524 width=1119)
+                    Filter Operator [FIL_50] (rows=36524 width=1119)
                       predicate:((d_year = 1998) and d_date_sk is not null)
-                      TableScan [TS_23] (rows=73049 width=1119)
+                      TableScan [TS_0] (rows=73049 width=1119)
                         default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-              <-Reducer 4 [SIMPLE_EDGE]
-                SHUFFLE [RS_26]
+              <-Reducer 7 [SIMPLE_EDGE]
+                SHUFFLE [RS_28]
                   PartitionCols:_col0
-                  Select Operator [SEL_22] (rows=8250000 width=1014)
+                  Select Operator [SEL_26] (rows=574987680 width=88)
                     Output:["_col0","_col4"]
-                    Filter Operator [FIL_21] (rows=8250000 width=1014)
+                    Filter Operator [FIL_25] (rows=574987680 width=88)
                       predicate:(((_col12) IN ('KY', 'GA', 'NM') and _col6 BETWEEN 0 AND 2000) or ((_col12) IN ('MT', 'OR', 'IN') and _col6 BETWEEN 150 AND 3000) or ((_col12) IN ('WI', 'MO', 'WV') and _col6 BETWEEN 50 AND 25000))
-                      Merge Join Operator [MERGEJOIN_56] (rows=11000000 width=1014)
-                        Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col0","_col4","_col6","_col12"]
-                      <-Map 9 [SIMPLE_EDGE]
-                        SHUFFLE [RS_19]
-                          PartitionCols:_col0
-                          Select Operator [SEL_11] (rows=10000000 width=1014)
-                            Output:["_col0","_col1"]
-                            Filter Operator [FIL_52] (rows=10000000 width=1014)
-                              predicate:((ca_state) IN ('KY', 'GA', 'NM', 'MT', 'OR', 'IN', 'WI', 'MO', 'WV') and (ca_country = 'United States') and ca_address_sk is not null)
-                              TableScan [TS_9] (rows=40000000 width=1014)
-                                default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_country"]
-                      <-Reducer 3 [SIMPLE_EDGE]
-                        SHUFFLE [RS_18]
-                          PartitionCols:_col2
-                          Merge Join Operator [MERGEJOIN_55] (rows=5445 width=362)
-                            Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col0","_col2","_col4","_col6"]
-                          <-Map 8 [SIMPLE_EDGE]
-                            SHUFFLE [RS_16]
-                              PartitionCols:_col0
-                              Select Operator [SEL_8] (rows=4950 width=362)
-                                Output:["_col0"]
-                                Filter Operator [FIL_51] (rows=4950 width=362)
-                                  predicate:((cd_marital_status = 'M') and (cd_education_status = '4 yr Degree') and cd_demo_sk is not null)
-                                  TableScan [TS_6] (rows=19800 width=362)
-                                    default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_marital_status","cd_education_status"]
-                          <-Reducer 2 [SIMPLE_EDGE]
-                            SHUFFLE [RS_15]
-                              PartitionCols:_col1
-                              Merge Join Operator [MERGEJOIN_54] (rows=1874 width=1911)
-                                Conds:RS_12._col3=RS_13._col0(Inner),Output:["_col0","_col1","_col2","_col4","_col6"]
-                              <-Map 1 [SIMPLE_EDGE]
-                                SHUFFLE [RS_12]
-                                  PartitionCols:_col3
-                                  Select Operator [SEL_2] (rows=1 width=0)
-                                    Output:["_col0","_col1","_col2","_col3","_col4","_col6"]
-                                    Filter Operator [FIL_49] (rows=1 width=0)
-                                      predicate:((ss_sales_price BETWEEN 100.0 AND 150.0 or ss_sales_price BETWEEN 50.0 AND 100.0 or ss_sales_price BETWEEN 150.0 AND 200.0) and (ss_net_profit BETWEEN 0 AND 2000 or ss_net_profit BETWEEN 150 AND 3000 or ss_net_profit BETWEEN 50 AND 25000) and ss_store_sk is not null and ss_cdemo_sk is not null and ss_addr_sk is not null and ss_sold_date_sk is not null)
-                                      TableScan [TS_0] (rows=1 width=0)
-                                        default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_cdemo_sk","ss_addr_sk","ss_store_sk","ss_quantity","ss_sales_price","ss_net_profit"]
-                              <-Map 7 [SIMPLE_EDGE]
-                                SHUFFLE [RS_13]
-                                  PartitionCols:_col0
-                                  Select Operator [SEL_5] (rows=1704 width=1910)
-                                    Output:["_col0"]
-                                    Filter Operator [FIL_50] (rows=1704 width=1910)
-                                      predicate:s_store_sk is not null
-                                      TableScan [TS_3] (rows=1704 width=1910)
-                                        default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk"]
+                      Select Operator [SEL_24] (rows=766650239 width=88)
+                        Output:["_col0","_col4","_col6","_col12"]
+                        Merge Join Operator [MERGEJOIN_57] (rows=766650239 width=88)
+                          Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col1","_col5","_col7","_col9"]
+                        <-Map 10 [SIMPLE_EDGE]
+                          SHUFFLE [RS_22]
+                            PartitionCols:_col0
+                            Select Operator [SEL_14] (rows=5047 width=16)
+                              Output:["_col0"]
+                              Filter Operator [FIL_54] (rows=5047 width=16)
+                                predicate:((cd_marital_status = 'M') and (cd_education_status = '4 yr Degree') and cd_demo_sk is not null)
+                                TableScan [TS_12] (rows=20191 width=16)
+                                  default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_marital_status","cd_education_status"]
+                        <-Reducer 6 [SIMPLE_EDGE]
+                          SHUFFLE [RS_21]
+                            PartitionCols:_col2
+                            Merge Join Operator [MERGEJOIN_56] (rows=696954748 width=88)
+                              Conds:RS_18._col3=RS_19._col0(Inner),Output:["_col1","_col2","_col5","_col7","_col9"]
+                            <-Map 9 [SIMPLE_EDGE]
+                              SHUFFLE [RS_19]
+                                PartitionCols:_col0
+                                Select Operator [SEL_11] (rows=10000000 width=1014)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_53] (rows=10000000 width=1014)
+                                    predicate:((ca_state) IN ('KY', 'GA', 'NM', 'MT', 'OR', 'IN', 'WI', 'MO', 'WV') and (ca_country = 'United States') and ca_address_sk is not null)
+                                    TableScan [TS_9] (rows=40000000 width=1014)
+                                      default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_country"]
+                            <-Reducer 5 [SIMPLE_EDGE]
+                              SHUFFLE [RS_18]
+                                PartitionCols:_col3
+                                Merge Join Operator [MERGEJOIN_55] (rows=633595212 width=88)
+                                  Conds:RS_15._col0=RS_16._col3(Inner),Output:["_col1","_col2","_col3","_col5","_col7"]
+                                <-Map 4 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_15]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_5] (rows=1704 width=1910)
+                                      Output:["_col0"]
+                                      Filter Operator [FIL_51] (rows=1704 width=1910)
+                                        predicate:s_store_sk is not null
+                                        TableScan [TS_3] (rows=1704 width=1910)
+                                          default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk"]
+                                <-Map 8 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_16]
+                                    PartitionCols:_col3
+                                    Select Operator [SEL_8] (rows=575995635 width=88)
+                                      Output:["_col0","_col1","_col2","_col3","_col4","_col6"]
+                                      Filter Operator [FIL_52] (rows=575995635 width=88)
+                                        predicate:((ss_sales_price BETWEEN 100.0 AND 150.0 or ss_sales_price BETWEEN 50.0 AND 100.0 or ss_sales_price BETWEEN 150.0 AND 200.0) and (ss_net_profit BETWEEN 0 AND 2000 or ss_net_profit BETWEEN 150 AND 3000 or ss_net_profit BETWEEN 50 AND 25000) and ss_store_sk is not null and ss_cdemo_sk is not null and ss_addr_sk is not null and ss_sold_date_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_cdemo_sk","ss_addr_sk","ss_store_sk","ss_quantity","ss_sales_price","ss_net_profit"]