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:55:59 UTC

[07/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/query65.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query65.q.out b/ql/src/test/results/clientpositive/perf/query65.q.out
index 15b2615..41f52de 100644
--- a/ql/src/test/results/clientpositive/perf/query65.q.out
+++ b/ql/src/test/results/clientpositive/perf/query65.q.out
@@ -1,4 +1,3 @@
-Warning: Shuffle Join MERGEJOIN[71][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in Stage 'Reducer 2' is a cross product
 PREHOOK: query: explain select 
     s_store_name,
     i_item_desc,
@@ -78,122 +77,127 @@ POSTHOOK: type: QUERY
 Plan optimized by CBO.
 
 Vertex dependency in root stage
-Reducer 12 <- Map 11 (SIMPLE_EDGE), Map 14 (SIMPLE_EDGE)
-Reducer 13 <- Reducer 12 (SIMPLE_EDGE)
-Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 5 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
-Reducer 3 <- Reducer 13 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
-Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
-Reducer 7 <- Map 10 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
-Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
-Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
+Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
+Reducer 11 <- Reducer 10 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 7 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 14 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 9 <- Map 12 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
 
 Stage-0
   Fetch Operator
     limit:100
     Stage-1
-      Reducer 4
-      File Output Operator [FS_53]
-        Limit [LIM_52] (rows=100 width=1436)
+      Reducer 6
+      File Output Operator [FS_52]
+        Limit [LIM_51] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_51] (rows=372680 width=1436)
+          Select Operator [SEL_50] (rows=255550079 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-          <-Reducer 3 [SIMPLE_EDGE]
-            SHUFFLE [RS_50]
-              Select Operator [SEL_49] (rows=372680 width=1436)
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_49]
+              Select Operator [SEL_48] (rows=255550079 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                Filter Operator [FIL_48] (rows=372680 width=1436)
+                Filter Operator [FIL_47] (rows=255550079 width=88)
                   predicate:(UDFToDouble(_col11) <= (0.1 * UDFToDouble(_col8)))
-                  Merge Join Operator [MERGEJOIN_73] (rows=1118040 width=1436)
-                    Conds:RS_45._col7, _col0, _col2=RS_46._col0, _col0, _col1(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col8","_col11"]
-                  <-Reducer 13 [SIMPLE_EDGE]
-                    SHUFFLE [RS_46]
-                      PartitionCols:_col0, _col0, _col1
-                      Select Operator [SEL_38] (rows=20088 width=1119)
-                        Output:["_col0","_col1","_col2"]
-                        Group By Operator [GBY_37] (rows=20088 width=1119)
-                          Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
-                        <-Reducer 12 [SIMPLE_EDGE]
-                          SHUFFLE [RS_36]
-                            PartitionCols:_col0, _col1
-                            Group By Operator [GBY_35] (rows=40176 width=1119)
-                              Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col1, _col2
-                              Merge Join Operator [MERGEJOIN_72] (rows=40176 width=1119)
-                                Conds:RS_31._col0=RS_32._col0(Inner),Output:["_col1","_col2","_col3"]
-                              <-Map 11 [SIMPLE_EDGE]
-                                SHUFFLE [RS_31]
-                                  PartitionCols:_col0
-                                  Select Operator [SEL_27] (rows=1 width=0)
-                                    Output:["_col0","_col1","_col2","_col3"]
-                                    Filter Operator [FIL_68] (rows=1 width=0)
-                                      predicate:(ss_sold_date_sk is not null and ss_store_sk is not null and ss_item_sk is not null)
-                                      TableScan [TS_25] (rows=1 width=0)
-                                        default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_store_sk","ss_sales_price"]
-                              <-Map 14 [SIMPLE_EDGE]
-                                SHUFFLE [RS_32]
-                                  PartitionCols:_col0
-                                  Select Operator [SEL_30] (rows=36524 width=1119)
-                                    Output:["_col0"]
-                                    Filter Operator [FIL_69] (rows=36524 width=1119)
-                                      predicate:(d_month_seq BETWEEN 1212 AND 1223 and d_date_sk is not null)
-                                      TableScan [TS_28] (rows=73049 width=1119)
-                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]
-                  <-Reducer 2 [SIMPLE_EDGE]
-                    SHUFFLE [RS_45]
-                      PartitionCols:_col7, _col0, _col2
-                      Merge Join Operator [MERGEJOIN_71] (rows=1016400 width=1436)
-                        Conds:(Inner),(Inner),Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                      <-Map 1 [SIMPLE_EDGE]
-                        SHUFFLE [RS_41]
-                          Select Operator [SEL_2] (rows=1704 width=1910)
-                            Output:["_col0","_col1"]
-                            Filter Operator [FIL_64] (rows=1704 width=1910)
-                              predicate:s_store_sk is not null
-                              TableScan [TS_0] (rows=1704 width=1910)
-                                default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_name"]
-                      <-Map 5 [SIMPLE_EDGE]
-                        SHUFFLE [RS_42]
-                          Select Operator [SEL_5] (rows=462000 width=1436)
-                            Output:["_col0","_col1","_col2","_col3","_col4"]
-                            Filter Operator [FIL_65] (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","i_item_desc","i_current_price","i_wholesale_cost","i_brand"]
-                      <-Reducer 9 [SIMPLE_EDGE]
-                        SHUFFLE [RS_43]
-                          Group By Operator [GBY_23] (rows=10044 width=1119)
-                            Output:["_col0","_col1"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0
-                          <-Reducer 8 [SIMPLE_EDGE]
-                            SHUFFLE [RS_22]
-                              PartitionCols:_col0
-                              Group By Operator [GBY_21] (rows=20088 width=1119)
-                                Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col1
-                                Select Operator [SEL_19] (rows=20088 width=1119)
-                                  Output:["_col1","_col2"]
-                                  Group By Operator [GBY_18] (rows=20088 width=1119)
-                                    Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
-                                  <-Reducer 7 [SIMPLE_EDGE]
-                                    SHUFFLE [RS_17]
-                                      PartitionCols:_col0, _col1
-                                      Group By Operator [GBY_16] (rows=40176 width=1119)
-                                        Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col1, _col2
-                                        Merge Join Operator [MERGEJOIN_70] (rows=40176 width=1119)
-                                          Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3"]
-                                        <-Map 10 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_13]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_11] (rows=36524 width=1119)
-                                              Output:["_col0"]
-                                              Filter Operator [FIL_67] (rows=36524 width=1119)
-                                                predicate:(d_month_seq BETWEEN 1212 AND 1223 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_month_seq"]
-                                        <-Map 6 [SIMPLE_EDGE]
-                                          SHUFFLE [RS_12]
-                                            PartitionCols:_col0
-                                            Select Operator [SEL_8] (rows=1 width=0)
-                                              Output:["_col0","_col1","_col2","_col3"]
-                                              Filter Operator [FIL_66] (rows=1 width=0)
-                                                predicate:(ss_sold_date_sk is not null and ss_store_sk is not null)
-                                                TableScan [TS_6] (rows=1 width=0)
-                                                  default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_store_sk","ss_sales_price"]
+                  Select Operator [SEL_46] (rows=766650239 width=88)
+                    Output:["_col1","_col3","_col4","_col5","_col6","_col8","_col11"]
+                    Merge Join Operator [MERGEJOIN_82] (rows=766650239 width=88)
+                      Conds:RS_43._col1=RS_44._col0(Inner),Output:["_col2","_col4","_col6","_col8","_col9","_col10","_col11"]
+                    <-Map 14 [SIMPLE_EDGE]
+                      SHUFFLE [RS_44]
+                        PartitionCols:_col0
+                        Select Operator [SEL_38] (rows=462000 width=1436)
+                          Output:["_col0","_col1","_col2","_col3","_col4"]
+                          Filter Operator [FIL_78] (rows=462000 width=1436)
+                            predicate:i_item_sk is not null
+                            TableScan [TS_36] (rows=462000 width=1436)
+                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_desc","i_current_price","i_wholesale_cost","i_brand"]
+                    <-Reducer 4 [SIMPLE_EDGE]
+                      SHUFFLE [RS_43]
+                        PartitionCols:_col1
+                        Merge Join Operator [MERGEJOIN_81] (rows=696954748 width=88)
+                          Conds:RS_39._col0=RS_40._col0(Inner),RS_39._col0=RS_41._col0(Inner),Output:["_col1","_col2","_col4","_col6"]
+                        <-Map 13 [SIMPLE_EDGE]
+                          SHUFFLE [RS_41]
+                            PartitionCols:_col0
+                            Select Operator [SEL_35] (rows=1704 width=1910)
+                              Output:["_col0","_col1"]
+                              Filter Operator [FIL_77] (rows=1704 width=1910)
+                                predicate:s_store_sk is not null
+                                TableScan [TS_33] (rows=1704 width=1910)
+                                  default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_store_name"]
+                        <-Reducer 11 [SIMPLE_EDGE]
+                          SHUFFLE [RS_40]
+                            PartitionCols:_col0
+                            Group By Operator [GBY_31] (rows=158398803 width=88)
+                              Output:["_col0","_col1"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0
+                            <-Reducer 10 [SIMPLE_EDGE]
+                              SHUFFLE [RS_30]
+                                PartitionCols:_col0
+                                Group By Operator [GBY_29] (rows=316797606 width=88)
+                                  Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col1
+                                  Select Operator [SEL_27] (rows=316797606 width=88)
+                                    Output:["_col1","_col2"]
+                                    Group By Operator [GBY_26] (rows=316797606 width=88)
+                                      Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
+                                    <-Reducer 9 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_25]
+                                        PartitionCols:_col0, _col1
+                                        Group By Operator [GBY_24] (rows=633595212 width=88)
+                                          Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col1, _col2
+                                          Merge Join Operator [MERGEJOIN_80] (rows=633595212 width=88)
+                                            Conds:RS_20._col0=RS_21._col0(Inner),Output:["_col1","_col2","_col3"]
+                                          <-Map 12 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_21]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_19] (rows=36524 width=1119)
+                                                Output:["_col0"]
+                                                Filter Operator [FIL_76] (rows=36524 width=1119)
+                                                  predicate:(d_month_seq BETWEEN 1212 AND 1223 and d_date_sk is not null)
+                                                  TableScan [TS_17] (rows=73049 width=1119)
+                                                    default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_month_seq"]
+                                          <-Map 8 [SIMPLE_EDGE]
+                                            SHUFFLE [RS_20]
+                                              PartitionCols:_col0
+                                              Select Operator [SEL_16] (rows=575995635 width=88)
+                                                Output:["_col0","_col1","_col2","_col3"]
+                                                Filter Operator [FIL_75] (rows=575995635 width=88)
+                                                  predicate:(ss_sold_date_sk is not null and ss_store_sk is not null)
+                                                  TableScan [TS_14] (rows=575995635 width=88)
+                                                    default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_store_sk","ss_sales_price"]
+                        <-Reducer 3 [SIMPLE_EDGE]
+                          SHUFFLE [RS_39]
+                            PartitionCols:_col0
+                            Select Operator [SEL_13] (rows=316797606 width=88)
+                              Output:["_col0","_col1","_col2"]
+                              Group By Operator [GBY_12] (rows=316797606 width=88)
+                                Output:["_col0","_col1","_col2"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1
+                              <-Reducer 2 [SIMPLE_EDGE]
+                                SHUFFLE [RS_11]
+                                  PartitionCols:_col0, _col1
+                                  Group By Operator [GBY_10] (rows=633595212 width=88)
+                                    Output:["_col0","_col1","_col2"],aggregations:["sum(_col3)"],keys:_col1, _col2
+                                    Merge Join Operator [MERGEJOIN_79] (rows=633595212 width=88)
+                                      Conds:RS_6._col0=RS_7._col0(Inner),Output:["_col1","_col2","_col3"]
+                                    <-Map 1 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_6]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_2] (rows=575995635 width=88)
+                                          Output:["_col0","_col1","_col2","_col3"]
+                                          Filter Operator [FIL_73] (rows=575995635 width=88)
+                                            predicate:(ss_sold_date_sk is not null and ss_store_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_store_sk","ss_sales_price"]
+                                    <-Map 7 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_7]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_5] (rows=36524 width=1119)
+                                          Output:["_col0"]
+                                          Filter Operator [FIL_74] (rows=36524 width=1119)
+                                            predicate:(d_month_seq BETWEEN 1212 AND 1223 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_month_seq"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query66.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query66.q.out b/ql/src/test/results/clientpositive/perf/query66.q.out
index a606946..b19cc77 100644
--- a/ql/src/test/results/clientpositive/perf/query66.q.out
+++ b/ql/src/test/results/clientpositive/perf/query66.q.out
@@ -458,65 +458,65 @@ Stage-0
     Stage-1
       Reducer 9
       File Output Operator [FS_76]
-        Limit [LIM_75] (rows=100 width=471)
+        Limit [LIM_75] (rows=100 width=135)
           Number of rows:100
-          Select Operator [SEL_74] (rows=26136 width=471)
+          Select Operator [SEL_74] (rows=158120068 width=135)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"]
           <-Reducer 8 [SIMPLE_EDGE]
             SHUFFLE [RS_73]
-              Select Operator [SEL_72] (rows=26136 width=471)
+              Select Operator [SEL_72] (rows=158120068 width=135)
                 Output:["_col0","_col1","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col2","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col3","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col4","_col40","_col41","_col42","_col43","_col5","_col8","_col9"]
-                Group By Operator [GBY_71] (rows=26136 width=471)
+                Group By Operator [GBY_71] (rows=158120068 width=135)
                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)","sum(VALUE._col24)","sum(VALUE._col25)","sum(VALUE._col26)","sum(VALUE._col27)","sum(VALUE._col28)",
 "sum(VALUE._col29)","sum(VALUE._col30)","sum(VALUE._col31)","sum(VALUE._col32)","sum(VALUE._col33)","sum(VALUE._col34)","sum(VALUE._col35)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, 'DIAMOND,AIRBORNE', 2002
                 <-Union 7 [SIMPLE_EDGE]
                   <-Reducer 19 [CONTAINS]
                     Reduce Output Operator [RS_70]
                       PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, 'DIAMOND,AIRBORNE', 2002
-                      Group By Operator [GBY_69] (rows=52272 width=471)
+                      Group By Operator [GBY_69] (rows=316240137 width=135)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"],aggregations:["sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)","sum(_col31)","sum(_col32)","sum(_col33)","sum(_col34)","sum(_col35)","sum(_col36)","sum(_col37)","sum(_col38)","sum(_col39)","sum(_col40)","sum(_col41)","sum(_col42)","sum(_col43)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, 'DIAMOND,AIRBO
 RNE', 2002
-                        Select Operator [SEL_67] (rows=52272 width=471)
+                        Select Operator [SEL_67] (rows=316240137 width=135)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"]
-                          Select Operator [SEL_65] (rows=26136 width=471)
+                          Select Operator [SEL_65] (rows=210822976 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"]
-                            Group By Operator [GBY_64] (rows=26136 width=471)
+                            Group By Operator [GBY_64] (rows=210822976 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, 2002
                             <-Reducer 18 [SIMPLE_EDGE]
                               SHUFFLE [RS_63]
                                 PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, 2002
-                                Group By Operator [GBY_62] (rows=52272 width=471)
+                                Group By Operator [GBY_62] (rows=421645953 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"],aggregations:["sum(_col7)","sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, 2002
-                                  Select Operator [SEL_60] (rows=52272 width=471)
+                                  Select Operator [SEL_60] (rows=421645953 width=135)
                                     Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"]
-                                    Merge Join Operator [MERGEJOIN_122] (rows=52272 width=471)
-                                      Conds:RS_57._col2=RS_58._col0(Inner),Output:["_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                    Merge Join Operator [MERGEJOIN_122] (rows=421645953 width=135)
+                                      Conds:RS_57._col3=RS_58._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
                                     <-Map 23 [SIMPLE_EDGE]
                                       SHUFFLE [RS_58]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_47] (rows=1 width=0)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_114] (rows=1 width=0)
-                                            predicate:((sm_carrier) IN ('DIAMOND', 'AIRBORNE') and sm_ship_mode_sk is not null)
-                                            TableScan [TS_45] (rows=1 width=0)
-                                              default@ship_mode,ship_mode,Tbl:PARTIAL,Col:NONE,Output:["sm_ship_mode_sk","sm_carrier"]
+                                        Select Operator [SEL_47] (rows=27 width=1029)
+                                          Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                                          Filter Operator [FIL_114] (rows=27 width=1029)
+                                            predicate:w_warehouse_sk is not null
+                                            TableScan [TS_45] (rows=27 width=1029)
+                                              default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name","w_warehouse_sq_ft","w_city","w_county","w_state","w_country"]
                                     <-Reducer 17 [SIMPLE_EDGE]
                                       SHUFFLE [RS_57]
-                                        PartitionCols:_col2
-                                        Merge Join Operator [MERGEJOIN_121] (rows=47520 width=471)
-                                          Conds:RS_54._col1=RS_55._col0(Inner),Output:["_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                        PartitionCols:_col3
+                                        Merge Join Operator [MERGEJOIN_121] (rows=383314495 width=135)
+                                          Conds:RS_54._col2=RS_55._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
                                         <-Map 22 [SIMPLE_EDGE]
                                           SHUFFLE [RS_55]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_44] (rows=43200 width=471)
+                                            Select Operator [SEL_44] (rows=1 width=0)
                                               Output:["_col0"]
-                                              Filter Operator [FIL_113] (rows=43200 width=471)
-                                                predicate:(t_time BETWEEN 49530 AND 78330 and t_time_sk is not null)
-                                                TableScan [TS_42] (rows=86400 width=471)
-                                                  default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_time"]
+                                              Filter Operator [FIL_113] (rows=1 width=0)
+                                                predicate:((sm_carrier) IN ('DIAMOND', 'AIRBORNE') and sm_ship_mode_sk is not null)
+                                                TableScan [TS_42] (rows=1 width=0)
+                                                  default@ship_mode,ship_mode,Tbl:PARTIAL,Col:NONE,Output:["sm_ship_mode_sk","sm_carrier"]
                                         <-Reducer 16 [SIMPLE_EDGE]
                                           SHUFFLE [RS_54]
-                                            PartitionCols:_col1
-                                            Merge Join Operator [MERGEJOIN_120] (rows=40176 width=1119)
-                                              Conds:RS_51._col0=RS_52._col0(Inner),Output:["_col1","_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                            PartitionCols:_col2
+                                            Merge Join Operator [MERGEJOIN_120] (rows=348467716 width=135)
+                                              Conds:RS_51._col0=RS_52._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
                                             <-Map 21 [SIMPLE_EDGE]
                                               SHUFFLE [RS_52]
                                                 PartitionCols:_col0
@@ -529,74 +529,74 @@ Stage-0
                                             <-Reducer 15 [SIMPLE_EDGE]
                                               SHUFFLE [RS_51]
                                                 PartitionCols:_col0
-                                                Merge Join Operator [MERGEJOIN_119] (rows=29 width=1054)
-                                                  Conds:RS_48._col3=RS_49._col0(Inner),Output:["_col0","_col1","_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13"]
+                                                Merge Join Operator [MERGEJOIN_119] (rows=316788826 width=135)
+                                                  Conds:RS_48._col1=RS_49._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
                                                 <-Map 14 [SIMPLE_EDGE]
                                                   SHUFFLE [RS_48]
-                                                    PartitionCols:_col3
-                                                    Select Operator [SEL_35] (rows=1 width=0)
+                                                    PartitionCols:_col1
+                                                    Select Operator [SEL_35] (rows=287989836 width=135)
                                                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                      Filter Operator [FIL_110] (rows=1 width=0)
+                                                      Filter Operator [FIL_110] (rows=287989836 width=135)
                                                         predicate:(cs_warehouse_sk is not null and cs_sold_date_sk is not null and cs_sold_time_sk is not null and cs_ship_mode_sk is not null)
-                                                        TableScan [TS_33] (rows=1 width=0)
-                                                          default@catalog_sales,catalog_sales,Tbl:PARTIAL,Col:NONE,Output:["cs_sold_date_sk","cs_sold_time_sk","cs_ship_mode_sk","cs_warehouse_sk","cs_quantity","cs_ext_sales_price","cs_net_paid_inc_ship_tax"]
+                                                        TableScan [TS_33] (rows=287989836 width=135)
+                                                          default@catalog_sales,catalog_sales,Tbl:COMPLETE,Col:NONE,Output:["cs_sold_date_sk","cs_sold_time_sk","cs_ship_mode_sk","cs_warehouse_sk","cs_quantity","cs_ext_sales_price","cs_net_paid_inc_ship_tax"]
                                                 <-Map 20 [SIMPLE_EDGE]
                                                   SHUFFLE [RS_49]
                                                     PartitionCols:_col0
-                                                    Select Operator [SEL_38] (rows=27 width=1029)
-                                                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                      Filter Operator [FIL_111] (rows=27 width=1029)
-                                                        predicate:w_warehouse_sk is not null
-                                                        TableScan [TS_36] (rows=27 width=1029)
-                                                          default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name","w_warehouse_sq_ft","w_city","w_county","w_state","w_country"]
+                                                    Select Operator [SEL_38] (rows=43200 width=471)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_111] (rows=43200 width=471)
+                                                        predicate:(t_time BETWEEN 49530 AND 78330 and t_time_sk is not null)
+                                                        TableScan [TS_36] (rows=86400 width=471)
+                                                          default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_time"]
                   <-Reducer 6 [CONTAINS]
                     Reduce Output Operator [RS_70]
                       PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, 'DIAMOND,AIRBORNE', 2002
-                      Group By Operator [GBY_69] (rows=52272 width=471)
+                      Group By Operator [GBY_69] (rows=316240137 width=135)
                         Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"],aggregations:["sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)","sum(_col31)","sum(_col32)","sum(_col33)","sum(_col34)","sum(_col35)","sum(_col36)","sum(_col37)","sum(_col38)","sum(_col39)","sum(_col40)","sum(_col41)","sum(_col42)","sum(_col43)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, 'DIAMOND,AIRBO
 RNE', 2002
-                        Select Operator [SEL_67] (rows=52272 width=471)
+                        Select Operator [SEL_67] (rows=316240137 width=135)
                           Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30","_col31","_col32","_col33","_col34","_col35","_col36","_col37","_col38","_col39","_col40","_col41","_col42","_col43"]
-                          Select Operator [SEL_32] (rows=26136 width=471)
+                          Select Operator [SEL_32] (rows=105417161 width=135)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29"]
-                            Group By Operator [GBY_31] (rows=26136 width=471)
+                            Group By Operator [GBY_31] (rows=105417161 width=135)
                               Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)","sum(VALUE._col3)","sum(VALUE._col4)","sum(VALUE._col5)","sum(VALUE._col6)","sum(VALUE._col7)","sum(VALUE._col8)","sum(VALUE._col9)","sum(VALUE._col10)","sum(VALUE._col11)","sum(VALUE._col12)","sum(VALUE._col13)","sum(VALUE._col14)","sum(VALUE._col15)","sum(VALUE._col16)","sum(VALUE._col17)","sum(VALUE._col18)","sum(VALUE._col19)","sum(VALUE._col20)","sum(VALUE._col21)","sum(VALUE._col22)","sum(VALUE._col23)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, 2002
                             <-Reducer 5 [SIMPLE_EDGE]
                               SHUFFLE [RS_30]
                                 PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, 2002
-                                Group By Operator [GBY_29] (rows=52272 width=471)
+                                Group By Operator [GBY_29] (rows=210834322 width=135)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"],aggregations:["sum(_col7)","sum(_col8)","sum(_col9)","sum(_col10)","sum(_col11)","sum(_col12)","sum(_col13)","sum(_col14)","sum(_col15)","sum(_col16)","sum(_col17)","sum(_col18)","sum(_col19)","sum(_col20)","sum(_col21)","sum(_col22)","sum(_col23)","sum(_col24)","sum(_col25)","sum(_col26)","sum(_col27)","sum(_col28)","sum(_col29)","sum(_col30)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, 2002
-                                  Select Operator [SEL_27] (rows=52272 width=471)
+                                  Select Operator [SEL_27] (rows=210834322 width=135)
                                     Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17","_col18","_col19","_col20","_col21","_col22","_col23","_col24","_col25","_col26","_col27","_col28","_col29","_col30"]
-                                    Merge Join Operator [MERGEJOIN_118] (rows=52272 width=471)
-                                      Conds:RS_24._col2=RS_25._col0(Inner),Output:["_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                    Merge Join Operator [MERGEJOIN_118] (rows=210834322 width=135)
+                                      Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col4","_col5","_col6","_col11","_col15","_col16","_col17","_col18","_col19","_col20"]
                                     <-Map 13 [SIMPLE_EDGE]
                                       SHUFFLE [RS_25]
                                         PartitionCols:_col0
-                                        Select Operator [SEL_14] (rows=1 width=0)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_109] (rows=1 width=0)
-                                            predicate:((sm_carrier) IN ('DIAMOND', 'AIRBORNE') and sm_ship_mode_sk is not null)
-                                            TableScan [TS_12] (rows=1 width=0)
-                                              default@ship_mode,ship_mode,Tbl:PARTIAL,Col:NONE,Output:["sm_ship_mode_sk","sm_carrier"]
+                                        Select Operator [SEL_14] (rows=27 width=1029)
+                                          Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                                          Filter Operator [FIL_109] (rows=27 width=1029)
+                                            predicate:w_warehouse_sk is not null
+                                            TableScan [TS_12] (rows=27 width=1029)
+                                              default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name","w_warehouse_sq_ft","w_city","w_county","w_state","w_country"]
                                     <-Reducer 4 [SIMPLE_EDGE]
                                       SHUFFLE [RS_24]
-                                        PartitionCols:_col2
-                                        Merge Join Operator [MERGEJOIN_117] (rows=47520 width=471)
-                                          Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                        PartitionCols:_col3
+                                        Merge Join Operator [MERGEJOIN_117] (rows=191667562 width=135)
+                                          Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col11"]
                                         <-Map 12 [SIMPLE_EDGE]
                                           SHUFFLE [RS_22]
                                             PartitionCols:_col0
-                                            Select Operator [SEL_11] (rows=43200 width=471)
+                                            Select Operator [SEL_11] (rows=1 width=0)
                                               Output:["_col0"]
-                                              Filter Operator [FIL_108] (rows=43200 width=471)
-                                                predicate:(t_time BETWEEN 49530 AND 78330 and t_time_sk is not null)
-                                                TableScan [TS_9] (rows=86400 width=471)
-                                                  default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_time"]
+                                              Filter Operator [FIL_108] (rows=1 width=0)
+                                                predicate:((sm_carrier) IN ('DIAMOND', 'AIRBORNE') and sm_ship_mode_sk is not null)
+                                                TableScan [TS_9] (rows=1 width=0)
+                                                  default@ship_mode,ship_mode,Tbl:PARTIAL,Col:NONE,Output:["sm_ship_mode_sk","sm_carrier"]
                                         <-Reducer 3 [SIMPLE_EDGE]
                                           SHUFFLE [RS_21]
-                                            PartitionCols:_col1
-                                            Merge Join Operator [MERGEJOIN_116] (rows=40176 width=1119)
-                                              Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13","_col16"]
+                                            PartitionCols:_col2
+                                            Merge Join Operator [MERGEJOIN_116] (rows=174243235 width=135)
+                                              Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col2","_col3","_col4","_col5","_col6","_col11"]
                                             <-Map 11 [SIMPLE_EDGE]
                                               SHUFFLE [RS_19]
                                                 PartitionCols:_col0
@@ -609,24 +609,24 @@ Stage-0
                                             <-Reducer 2 [SIMPLE_EDGE]
                                               SHUFFLE [RS_18]
                                                 PartitionCols:_col0
-                                                Merge Join Operator [MERGEJOIN_115] (rows=29 width=1054)
-                                                  Conds:RS_15._col3=RS_16._col0(Inner),Output:["_col0","_col1","_col2","_col4","_col5","_col6","_col8","_col9","_col10","_col11","_col12","_col13"]
+                                                Merge Join Operator [MERGEJOIN_115] (rows=158402938 width=135)
+                                                  Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col6"]
                                                 <-Map 1 [SIMPLE_EDGE]
                                                   SHUFFLE [RS_15]
-                                                    PartitionCols:_col3
-                                                    Select Operator [SEL_2] (rows=1 width=0)
+                                                    PartitionCols:_col1
+                                                    Select Operator [SEL_2] (rows=144002668 width=135)
                                                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                      Filter Operator [FIL_105] (rows=1 width=0)
+                                                      Filter Operator [FIL_105] (rows=144002668 width=135)
                                                         predicate:(ws_warehouse_sk is not null and ws_sold_date_sk is not null and ws_sold_time_sk is not null and ws_ship_mode_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_sold_time_sk","ws_ship_mode_sk","ws_warehouse_sk","ws_quantity","ws_sales_price","ws_net_paid_inc_tax"]
+                                                        TableScan [TS_0] (rows=144002668 width=135)
+                                                          default@web_sales,web_sales,Tbl:COMPLETE,Col:NONE,Output:["ws_sold_date_sk","ws_sold_time_sk","ws_ship_mode_sk","ws_warehouse_sk","ws_quantity","ws_sales_price","ws_net_paid_inc_tax"]
                                                 <-Map 10 [SIMPLE_EDGE]
                                                   SHUFFLE [RS_16]
                                                     PartitionCols:_col0
-                                                    Select Operator [SEL_5] (rows=27 width=1029)
-                                                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                                                      Filter Operator [FIL_106] (rows=27 width=1029)
-                                                        predicate:w_warehouse_sk is not null
-                                                        TableScan [TS_3] (rows=27 width=1029)
-                                                          default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk","w_warehouse_name","w_warehouse_sq_ft","w_city","w_county","w_state","w_country"]
+                                                    Select Operator [SEL_5] (rows=43200 width=471)
+                                                      Output:["_col0"]
+                                                      Filter Operator [FIL_106] (rows=43200 width=471)
+                                                        predicate:(t_time BETWEEN 49530 AND 78330 and t_time_sk is not null)
+                                                        TableScan [TS_3] (rows=86400 width=471)
+                                                          default@time_dim,time_dim,Tbl:COMPLETE,Col:NONE,Output:["t_time_sk","t_time"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query67.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query67.q.out b/ql/src/test/results/clientpositive/perf/query67.q.out
index 4a1e7a6..da84d4a 100644
--- a/ql/src/test/results/clientpositive/perf/query67.q.out
+++ b/ql/src/test/results/clientpositive/perf/query67.q.out
@@ -100,35 +100,35 @@ Stage-0
     Stage-1
       Reducer 7
       File Output Operator [FS_37]
-        Limit [LIM_36] (rows=100 width=1436)
+        Limit [LIM_36] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_35] (rows=762300 width=1436)
+          Select Operator [SEL_35] (rows=1149975358 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
           <-Reducer 6 [SIMPLE_EDGE]
             SHUFFLE [RS_34]
-              Select Operator [SEL_30] (rows=762300 width=1436)
+              Select Operator [SEL_30] (rows=1149975358 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-                Filter Operator [FIL_47] (rows=762300 width=1436)
+                Filter Operator [FIL_47] (rows=1149975358 width=88)
                   predicate:(rank_window_0 <= 100)
-                  PTF Operator [PTF_29] (rows=2286900 width=1436)
+                  PTF Operator [PTF_29] (rows=3449926075 width=88)
                     Function definitions:[{},{"name:":"windowingtablefunction","order by:":"_col16 DESC NULLS LAST","partition by:":"_col0"}]
-                    Select Operator [SEL_28] (rows=2286900 width=1436)
+                    Select Operator [SEL_28] (rows=3449926075 width=88)
                       Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col16"]
                     <-Reducer 5 [SIMPLE_EDGE]
                       SHUFFLE [RS_27]
                         PartitionCols:_col0
-                        Select Operator [SEL_26] (rows=2286900 width=1436)
+                        Select Operator [SEL_26] (rows=3449926075 width=88)
                           Output:["_col0","_col1","_col16","_col2","_col3","_col4","_col5","_col6","_col7"]
-                          Group By Operator [GBY_25] (rows=2286900 width=1436)
+                          Group By Operator [GBY_25] (rows=3449926075 width=88)
                             Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col9"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4, KEY._col5, KEY._col6, KEY._col7, KEY._col8
                           <-Reducer 4 [SIMPLE_EDGE]
                             SHUFFLE [RS_24]
                               PartitionCols:_col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8
-                              Group By Operator [GBY_23] (rows=4573800 width=1436)
+                              Group By Operator [GBY_23] (rows=6899852151 width=88)
                                 Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"],aggregations:["sum(_col8)"],keys:_col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, '0'
-                                Select Operator [SEL_21] (rows=508200 width=1436)
+                                Select Operator [SEL_21] (rows=766650239 width=88)
                                   Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                  Merge Join Operator [MERGEJOIN_54] (rows=508200 width=1436)
+                                  Merge Join Operator [MERGEJOIN_54] (rows=766650239 width=88)
                                     Conds:RS_18._col1=RS_19._col0(Inner),Output:["_col3","_col4","_col7","_col8","_col9","_col11","_col13","_col14","_col15","_col16"]
                                   <-Map 10 [SIMPLE_EDGE]
                                     SHUFFLE [RS_19]
@@ -142,7 +142,7 @@ Stage-0
                                   <-Reducer 3 [SIMPLE_EDGE]
                                     SHUFFLE [RS_18]
                                       PartitionCols:_col1
-                                      Merge Join Operator [MERGEJOIN_53] (rows=44193 width=1119)
+                                      Merge Join Operator [MERGEJOIN_53] (rows=696954748 width=88)
                                         Conds:RS_15._col2=RS_16._col0(Inner),Output:["_col1","_col3","_col4","_col7","_col8","_col9","_col11"]
                                       <-Map 9 [SIMPLE_EDGE]
                                         SHUFFLE [RS_16]
@@ -156,17 +156,17 @@ Stage-0
                                       <-Reducer 2 [SIMPLE_EDGE]
                                         SHUFFLE [RS_15]
                                           PartitionCols:_col2
-                                          Merge Join Operator [MERGEJOIN_52] (rows=40176 width=1119)
+                                          Merge Join Operator [MERGEJOIN_52] (rows=633595212 width=88)
                                             Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col7","_col8","_col9"]
                                           <-Map 1 [SIMPLE_EDGE]
                                             SHUFFLE [RS_12]
                                               PartitionCols:_col0
-                                              Select Operator [SEL_2] (rows=1 width=0)
+                                              Select Operator [SEL_2] (rows=575995635 width=88)
                                                 Output:["_col0","_col1","_col2","_col3","_col4"]
-                                                Filter Operator [FIL_48] (rows=1 width=0)
+                                                Filter Operator [FIL_48] (rows=575995635 width=88)
                                                   predicate:(ss_sold_date_sk is not null and ss_store_sk is not null and ss_item_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_item_sk","ss_store_sk","ss_quantity","ss_sales_price"]
+                                                  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_store_sk","ss_quantity","ss_sales_price"]
                                           <-Map 8 [SIMPLE_EDGE]
                                             SHUFFLE [RS_13]
                                               PartitionCols:_col0

http://git-wip-us.apache.org/repos/asf/hive/blob/db8a6db9/ql/src/test/results/clientpositive/perf/query68.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query68.q.out b/ql/src/test/results/clientpositive/perf/query68.q.out
index df253ae..8fcc147 100644
--- a/ql/src/test/results/clientpositive/perf/query68.q.out
+++ b/ql/src/test/results/clientpositive/perf/query68.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","_col7"]
-          <-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","_col7"]
-                Filter Operator [FIL_45] (rows=96800003 width=860)
-                  predicate:(_col11 <> _col2)
-                  Merge Join Operator [MERGEJOIN_90] (rows=96800003 width=860)
-                    Conds:RS_42._col7=RS_43._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col8","_col9","_col11"]
-                  <-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","_col11"]
+                  <-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:_col7
-                      Merge Join Operator [MERGEJOIN_89] (rows=88000001 width=860)
-                        Conds:RS_39._col1=RS_40._col0(Inner),Output:["_col0","_col2","_col3","_col4","_col5","_col7","_col8","_col9"]
-                      <-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","_col5"]
-                            Group By Operator [GBY_30] (rows=22000000 width=1014)
-                              Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],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","_col6"],aggregations:["sum(_col6)","sum(_col7)","sum(_col8)"],keys:_col1, _col3, _col5, _col18
-                                  Select Operator [SEL_27] (rows=44000000 width=1014)
-                                    Output:["_col1","_col3","_col5","_col18","_col6","_col7","_col8"]
-                                    Merge Join Operator [MERGEJOIN_88] (rows=44000000 width=1014)
-                                      Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col18"]
-                                    <-Map 13 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_25]
+                      PartitionCols:_col1
+                      Select Operator [SEL_37] (rows=421657640 width=88)
+                        Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        Group By Operator [GBY_36] (rows=421657640 width=88)
+                          Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"],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","_col6"],aggregations:["sum(_col6)","sum(_col7)","sum(_col8)"],keys:_col18, _col1, _col3, _col5
+                              Select Operator [SEL_33] (rows=843315281 width=88)
+                                Output:["_col18","_col1","_col3","_col5","_col6","_col7","_col8"]
+                                Merge Join Operator [MERGEJOIN_85] (rows=843315281 width=88)
+                                  Conds:RS_30._col3=RS_31._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8","_col18"]
+                                <-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","_col8"]
+                                    <-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=24305 width=1119)
-                                          Conds:RS_21._col2=RS_22._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col7","_col8"]
-                                        <-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","_col8"]
+                                        <-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=22096 width=1119)
-                                              Conds:RS_18._col4=RS_19._col0(Inner),Output:["_col1","_col2","_col3","_col5","_col6","_col7","_col8"]
-                                            <-Map 11 [SIMPLE_EDGE]
-                                              SHUFFLE [RS_19]
+                                              Filter Operator [FIL_78] (rows=852 width=1910)
+                                                predicate:((s_city) IN ('Rosedale', 'Bethlehem') 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","_col8"]
+                                            <-Map 12 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_22]
                                                 PartitionCols:_col0
-                                                Select Operator [SEL_8] (rows=852 width=1910)
+                                                Select Operator [SEL_11] (rows=18262 width=1119)
                                                   Output:["_col0"]
-                                                  Filter Operator [FIL_80] (rows=852 width=1910)
-                                                    predicate:((s_city) IN ('Rosedale', 'Bethlehem') 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=20088 width=1119)
-                                                  Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                <-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","_col8"]
-                                                      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_ext_sales_price","ss_ext_list_price","ss_ext_tax"]
-                                                <-Map 10 [SIMPLE_EDGE]
-                                                  SHUFFLE [RS_16]
-                                                    PartitionCols:_col0
-                                                    Select Operator [SEL_5] (rows=18262 width=1119)
-                                                      Output:["_col0"]
-                                                      Filter Operator [FIL_79] (rows=18262 width=1119)
-                                                        predicate:((d_year) IN (1998, 1999, 2000) and d_dom BETWEEN 1 AND 2 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_dom"]
+                                                  Filter Operator [FIL_77] (rows=18262 width=1119)
+                                                    predicate:((d_year) IN (1998, 1999, 2000) and d_dom BETWEEN 1 AND 2 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_dom"]
+                                            <-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","_col8"]
+                                                  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_ext_sales_price","ss_ext_list_price","ss_ext_tax"]
+                  <-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/query7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query7.q.out b/ql/src/test/results/clientpositive/perf/query7.q.out
index be336ac..749b361 100644
--- a/ql/src/test/results/clientpositive/perf/query7.q.out
+++ b/ql/src/test/results/clientpositive/perf/query7.q.out
@@ -18,37 +18,37 @@ Stage-0
     Stage-1
       Reducer 7
       File Output Operator [FS_35]
-        Limit [LIM_34] (rows=100 width=1436)
+        Limit [LIM_34] (rows=100 width=88)
           Number of rows:100
-          Select Operator [SEL_33] (rows=279510 width=1436)
+          Select Operator [SEL_33] (rows=421657640 width=88)
             Output:["_col0","_col1","_col2","_col3","_col4"]
           <-Reducer 6 [SIMPLE_EDGE]
             SHUFFLE [RS_32]
-              Group By Operator [GBY_30] (rows=279510 width=1436)
+              Group By Operator [GBY_30] (rows=421657640 width=88)
                 Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)"],keys:KEY._col0
               <-Reducer 5 [SIMPLE_EDGE]
                 SHUFFLE [RS_29]
                   PartitionCols:_col0
-                  Group By Operator [GBY_28] (rows=559020 width=1436)
-                    Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"],keys:_col15
-                    Select Operator [SEL_27] (rows=559020 width=1436)
-                      Output:["_col15","_col4","_col5","_col7","_col6"]
-                      Merge Join Operator [MERGEJOIN_58] (rows=559020 width=1436)
-                        Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col15"]
+                  Group By Operator [GBY_28] (rows=843315281 width=88)
+                    Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"],keys:_col14
+                    Select Operator [SEL_27] (rows=843315281 width=88)
+                      Output:["_col14","_col4","_col5","_col7","_col6"]
+                      Merge Join Operator [MERGEJOIN_58] (rows=843315281 width=88)
+                        Conds:RS_24._col2=RS_25._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col14"]
                       <-Map 11 [SIMPLE_EDGE]
                         SHUFFLE [RS_25]
                           PartitionCols:_col0
-                          Select Operator [SEL_14] (rows=2300 width=1179)
+                          Select Operator [SEL_14] (rows=3106 width=13)
                             Output:["_col0"]
-                            Filter Operator [FIL_54] (rows=2300 width=1179)
-                              predicate:(((p_channel_email = 'N') or (p_channel_event = 'N')) and p_promo_sk is not null)
-                              TableScan [TS_12] (rows=2300 width=1179)
-                                default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_email","p_channel_event"]
+                            Filter Operator [FIL_54] (rows=3106 width=13)
+                              predicate:((cd_gender = 'F') and (cd_marital_status = 'W') and (cd_education_status = 'Primary') and cd_demo_sk is not null)
+                              TableScan [TS_12] (rows=24850 width=13)
+                                default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_education_status"]
                       <-Reducer 4 [SIMPLE_EDGE]
                         SHUFFLE [RS_24]
-                          PartitionCols:_col3
-                          Merge Join Operator [MERGEJOIN_57] (rows=508200 width=1436)
-                            Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col3","_col4","_col5","_col6","_col7","_col15"]
+                          PartitionCols:_col2
+                          Merge Join Operator [MERGEJOIN_57] (rows=766650239 width=88)
+                            Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col2","_col4","_col5","_col6","_col7","_col14"]
                           <-Map 10 [SIMPLE_EDGE]
                             SHUFFLE [RS_22]
                               PartitionCols:_col0
@@ -61,38 +61,38 @@ Stage-0
                           <-Reducer 3 [SIMPLE_EDGE]
                             SHUFFLE [RS_21]
                               PartitionCols:_col1
-                              Merge Join Operator [MERGEJOIN_56] (rows=40176 width=1119)
-                                Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7"]
+                              Merge Join Operator [MERGEJOIN_56] (rows=696954748 width=88)
+                                Conds:RS_18._col3=RS_19._col0(Inner),Output:["_col1","_col2","_col4","_col5","_col6","_col7"]
                               <-Map 9 [SIMPLE_EDGE]
                                 SHUFFLE [RS_19]
                                   PartitionCols:_col0
-                                  Select Operator [SEL_8] (rows=36524 width=1119)
+                                  Select Operator [SEL_8] (rows=2300 width=1179)
                                     Output:["_col0"]
-                                    Filter Operator [FIL_52] (rows=36524 width=1119)
-                                      predicate:((d_year = 1998) and d_date_sk is not null)
-                                      TableScan [TS_6] (rows=73049 width=1119)
-                                        default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                    Filter Operator [FIL_52] (rows=2300 width=1179)
+                                      predicate:(((p_channel_email = 'N') or (p_channel_event = 'N')) and p_promo_sk is not null)
+                                      TableScan [TS_6] (rows=2300 width=1179)
+                                        default@promotion,promotion,Tbl:COMPLETE,Col:NONE,Output:["p_promo_sk","p_channel_email","p_channel_event"]
                               <-Reducer 2 [SIMPLE_EDGE]
                                 SHUFFLE [RS_18]
-                                  PartitionCols:_col0
-                                  Merge Join Operator [MERGEJOIN_55] (rows=2722 width=362)
-                                    Conds:RS_15._col2=RS_16._col0(Inner),Output:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
+                                  PartitionCols:_col3
+                                  Merge Join Operator [MERGEJOIN_55] (rows=633595212 width=88)
+                                    Conds:RS_15._col0=RS_16._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
                                   <-Map 1 [SIMPLE_EDGE]
                                     SHUFFLE [RS_15]
-                                      PartitionCols:_col2
-                                      Select Operator [SEL_2] (rows=1 width=0)
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_2] (rows=575995635 width=88)
                                         Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
-                                        Filter Operator [FIL_50] (rows=1 width=0)
+                                        Filter Operator [FIL_50] (rows=575995635 width=88)
                                           predicate:(ss_cdemo_sk is not null and ss_sold_date_sk is not null and ss_item_sk is not null and ss_promo_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_item_sk","ss_cdemo_sk","ss_promo_sk","ss_quantity","ss_list_price","ss_sales_price","ss_coupon_amt"]
+                                          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_cdemo_sk","ss_promo_sk","ss_quantity","ss_list_price","ss_sales_price","ss_coupon_amt"]
                                   <-Map 8 [SIMPLE_EDGE]
                                     SHUFFLE [RS_16]
                                       PartitionCols:_col0
-                                      Select Operator [SEL_5] (rows=2475 width=362)
+                                      Select Operator [SEL_5] (rows=36524 width=1119)
                                         Output:["_col0"]
-                                        Filter Operator [FIL_51] (rows=2475 width=362)
-                                          predicate:((cd_gender = 'F') and (cd_marital_status = 'W') and (cd_education_status = 'Primary') and cd_demo_sk is not null)
-                                          TableScan [TS_3] (rows=19800 width=362)
-                                            default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_gender","cd_marital_status","cd_education_status"]
+                                        Filter Operator [FIL_51] (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"]