You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by px...@apache.org on 2016/01/29 20:06:33 UTC

[31/33] hive git commit: HIVE-12709: further improve user level explain (Pengcheng Xiong, reviewed by Laljo John Pullokkaran)

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query17.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query17.q.out b/ql/src/test/results/clientpositive/perf/query17.q.out
index 1e468f5..f8805e7 100644
--- a/ql/src/test/results/clientpositive/perf/query17.q.out
+++ b/ql/src/test/results/clientpositive/perf/query17.q.out
@@ -16,249 +16,130 @@ Reducer 8 <- Map 17 (SIMPLE_EDGE), Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 10
-         File Output Operator [FS_54]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
-            table:{"input format:":"org.apache.hadoop.mapred.TextInputFormat","output format:":"org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat","serde:":"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe"}
-            Limit [LIM_53]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_52]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
-               |  Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 9 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_51]
-                     key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: string)
-                     sort order:+++
-                     Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col3 (type: bigint), _col4 (type: double), _col5 (type: double), _col6 (type: double), _col7 (type: bigint), _col8 (type: double), _col9 (type: double), _col10 (type: double), _col11 (type: bigint), _col12 (type: double), _col13 (type: double)
-                     Select Operator [SEL_49]
-                        outputColumnNames:["_col0","_col1","_col10","_col11","_col12","_col13","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-                        Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_48]
-                        |  aggregations:["count(VALUE._col0)","avg(VALUE._col1)","stddev_samp(VALUE._col2)","count(VALUE._col3)","avg(VALUE._col4)","stddev_samp(VALUE._col5)","count(VALUE._col6)","avg(VALUE._col7)","stddev_samp(VALUE._col8)"]
-                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: string)
-                        |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                        |  Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 8 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_47]
-                              key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: string)
-                              Map-reduce partition columns:_col0 (type: string), _col1 (type: string), _col2 (type: string)
-                              sort order:+++
-                              Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col3 (type: bigint), _col4 (type: struct<count:bigint,sum:double,input:int>), _col5 (type: struct<count:bigint,sum:double,variance:double>), _col6 (type: bigint), _col7 (type: struct<count:bigint,sum:double,input:int>), _col8 (type: struct<count:bigint,sum:double,variance:double>), _col9 (type: bigint), _col10 (type: struct<count:bigint,sum:double,input:int>), _col11 (type: struct<count:bigint,sum:double,variance:double>)
-                              Group By Operator [GBY_46]
-                                 aggregations:["count(_col5)","avg(_col5)","stddev_samp(_col5)","count(_col10)","avg(_col10)","stddev_samp(_col10)","count(_col14)","avg(_col14)","stddev_samp(_col14)"]
-                                 keys:_col22 (type: string), _col24 (type: string), _col25 (type: string)
-                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                                 Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_45]
-                                    outputColumnNames:["_col22","_col24","_col25","_col5","_col10","_col14"]
-                                    Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_104]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                    |  outputColumnNames:["_col5","_col10","_col14","_col22","_col24","_col25"]
-                                    |  Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Map 17 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_43]
-                                    |     key expressions:_col0 (type: int)
-                                    |     Map-reduce partition columns:_col0 (type: int)
-                                    |     sort order:+
-                                    |     Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                    |     value expressions:_col1 (type: string), _col2 (type: string)
-                                    |     Select Operator [SEL_23]
-                                    |        outputColumnNames:["_col0","_col1","_col2"]
-                                    |        Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_97]
-                                    |           predicate:i_item_sk is not null (type: boolean)
-                                    |           Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                    |           TableScan [TS_21]
-                                    |              alias:item
-                                    |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 7 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_42]
-                                          key expressions:_col1 (type: int)
-                                          Map-reduce partition columns:_col1 (type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 53473 Data size: 59838291 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col5 (type: int), _col10 (type: int), _col14 (type: int), _col22 (type: string)
-                                          Merge Join Operator [MERGEJOIN_103]
-                                          |  condition map:[{"":"Inner Join 0 to 1"}]
-                                          |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
-                                          |  outputColumnNames:["_col1","_col5","_col10","_col14","_col22"]
-                                          |  Statistics:Num rows: 53473 Data size: 59838291 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 16 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_40]
-                                          |     key expressions:_col0 (type: int)
-                                          |     Map-reduce partition columns:_col0 (type: int)
-                                          |     sort order:+
-                                          |     Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                          |     value expressions:_col1 (type: string)
-                                          |     Select Operator [SEL_20]
-                                          |        outputColumnNames:["_col0","_col1"]
-                                          |        Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_96]
-                                          |           predicate:s_store_sk is not null (type: boolean)
-                                          |           Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_18]
-                                          |              alias:store
-                                          |              Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 6 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_39]
-                                                key expressions:_col3 (type: int)
-                                                Map-reduce partition columns:_col3 (type: int)
-                                                sort order:+
-                                                Statistics:Num rows: 48612 Data size: 54398446 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col1 (type: int), _col5 (type: int), _col10 (type: int), _col14 (type: int)
-                                                Merge Join Operator [MERGEJOIN_102]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col11 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col1","_col3","_col5","_col10","_col14"]
-                                                |  Statistics:Num rows: 48612 Data size: 54398446 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Map 15 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator [RS_37]
-                                                |     key expressions:_col0 (type: int)
-                                                |     Map-reduce partition columns:_col0 (type: int)
-                                                |     sort order:+
-                                                |     Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                |     Select Operator [SEL_17]
-                                                |        outputColumnNames:["_col0"]
-                                                |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                |        Filter Operator [FIL_95]
-                                                |           predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                |           TableScan [TS_15]
-                                                |              alias:d1
-                                                |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Reducer 5 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_36]
-                                                      key expressions:_col11 (type: int)
-                                                      Map-reduce partition columns:_col11 (type: int)
-                                                      sort order:+
-                                                      Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col1 (type: int), _col3 (type: int), _col5 (type: int), _col10 (type: int), _col14 (type: int)
-                                                      Merge Join Operator [MERGEJOIN_101]
-                                                      |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                      |  keys:{"0":"_col6 (type: int)","1":"_col0 (type: int)"}
-                                                      |  outputColumnNames:["_col1","_col3","_col5","_col10","_col11","_col14"]
-                                                      |  Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Map 14 [SIMPLE_EDGE]
-                                                      |  Reduce Output Operator [RS_34]
-                                                      |     key expressions:_col0 (type: int)
-                                                      |     Map-reduce partition columns:_col0 (type: int)
-                                                      |     sort order:+
-                                                      |     Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                      |     Select Operator [SEL_14]
-                                                      |        outputColumnNames:["_col0"]
-                                                      |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                      |        Filter Operator [FIL_94]
-                                                      |           predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null) (type: boolean)
-                                                      |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                      |           TableScan [TS_12]
-                                                      |              alias:d1
-                                                      |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Reducer 4 [SIMPLE_EDGE]
-                                                         Reduce Output Operator [RS_33]
-                                                            key expressions:_col6 (type: int)
-                                                            Map-reduce partition columns:_col6 (type: int)
-                                                            sort order:+
-                                                            Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                            value expressions:_col1 (type: int), _col3 (type: int), _col5 (type: int), _col10 (type: int), _col11 (type: int), _col14 (type: int)
-                                                            Merge Join Operator [MERGEJOIN_100]
-                                                            |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                            |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                            |  outputColumnNames:["_col1","_col3","_col5","_col6","_col10","_col11","_col14"]
-                                                            |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 13 [SIMPLE_EDGE]
-                                                            |  Reduce Output Operator [RS_31]
-                                                            |     key expressions:_col0 (type: int)
-                                                            |     Map-reduce partition columns:_col0 (type: int)
-                                                            |     sort order:+
-                                                            |     Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                            |     Select Operator [SEL_11]
-                                                            |        outputColumnNames:["_col0"]
-                                                            |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                            |        Filter Operator [FIL_93]
-                                                            |           predicate:((d_quarter_name = '2000Q1') and d_date_sk is not null) (type: boolean)
-                                                            |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                            |           TableScan [TS_9]
-                                                            |              alias:d1
-                                                            |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Reducer 3 [SIMPLE_EDGE]
-                                                               Reduce Output Operator [RS_30]
-                                                                  key expressions:_col0 (type: int)
-                                                                  Map-reduce partition columns:_col0 (type: int)
-                                                                  sort order:+
-                                                                  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  value expressions:_col1 (type: int), _col3 (type: int), _col5 (type: int), _col6 (type: int), _col10 (type: int), _col11 (type: int), _col14 (type: int)
-                                                                  Merge Join Operator [MERGEJOIN_99]
-                                                                  |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                  |  keys:{"0":"_col8 (type: int), _col7 (type: int)","1":"_col1 (type: int), _col2 (type: int)"}
-                                                                  |  outputColumnNames:["_col0","_col1","_col3","_col5","_col6","_col10","_col11","_col14"]
-                                                                  |  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |<-Map 12 [SIMPLE_EDGE]
-                                                                  |  Reduce Output Operator [RS_28]
-                                                                  |     key expressions:_col1 (type: int), _col2 (type: int)
-                                                                  |     Map-reduce partition columns:_col1 (type: int), _col2 (type: int)
-                                                                  |     sort order:++
-                                                                  |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |     value expressions:_col0 (type: int), _col3 (type: int)
-                                                                  |     Select Operator [SEL_8]
-                                                                  |        outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                                                  |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |        Filter Operator [FIL_92]
-                                                                  |           predicate:((cs_bill_customer_sk is not null and cs_item_sk is not null) and cs_sold_date_sk is not null) (type: boolean)
-                                                                  |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |           TableScan [TS_6]
-                                                                  |              alias:catalog_sales
-                                                                  |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |<-Reducer 2 [SIMPLE_EDGE]
-                                                                     Reduce Output Operator [RS_27]
-                                                                        key expressions:_col8 (type: int), _col7 (type: int)
-                                                                        Map-reduce partition columns:_col8 (type: int), _col7 (type: int)
-                                                                        sort order:++
-                                                                        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        value expressions:_col0 (type: int), _col1 (type: int), _col3 (type: int), _col5 (type: int), _col6 (type: int), _col10 (type: int)
-                                                                        Merge Join Operator [MERGEJOIN_98]
-                                                                        |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                        |  keys:{"0":"_col2 (type: int), _col1 (type: int), _col4 (type: int)","1":"_col2 (type: int), _col1 (type: int), _col3 (type: int)"}
-                                                                        |  outputColumnNames:["_col0","_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
-                                                                        |  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |<-Map 1 [SIMPLE_EDGE]
-                                                                        |  Reduce Output Operator [RS_24]
-                                                                        |     key expressions:_col2 (type: int), _col1 (type: int), _col4 (type: int)
-                                                                        |     Map-reduce partition columns:_col2 (type: int), _col1 (type: int), _col4 (type: int)
-                                                                        |     sort order:+++
-                                                                        |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |     value expressions:_col0 (type: int), _col3 (type: int), _col5 (type: int)
-                                                                        |     Select Operator [SEL_2]
-                                                                        |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                                                        |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |        Filter Operator [FIL_90]
-                                                                        |           predicate:((((ss_item_sk is not null and ss_customer_sk is not null) and ss_ticket_number is not null) and ss_sold_date_sk is not null) and ss_store_sk is not null) (type: boolean)
-                                                                        |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |           TableScan [TS_0]
-                                                                        |              alias:store_sales
-                                                                        |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                        |<-Map 11 [SIMPLE_EDGE]
-                                                                           Reduce Output Operator [RS_25]
-                                                                              key expressions:_col2 (type: int), _col1 (type: int), _col3 (type: int)
-                                                                              Map-reduce partition columns:_col2 (type: int), _col1 (type: int), _col3 (type: int)
-                                                                              sort order:+++
-                                                                              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                              value expressions:_col0 (type: int), _col4 (type: int)
-                                                                              Select Operator [SEL_5]
-                                                                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                                                                                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                                 Filter Operator [FIL_91]
-                                                                                    predicate:(((sr_item_sk is not null and sr_customer_sk is not null) and sr_ticket_number is not null) and sr_returned_date_sk is not null) (type: boolean)
-                                                                                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                                    TableScan [TS_3]
-                                                                                       alias:store_returns
-                                                                                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 10
+      File Output Operator [FS_54]
+        Limit [LIM_53] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_52] (rows=254100 width=1436)
+            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
+          <-Reducer 9 [SIMPLE_EDGE]
+            SHUFFLE [RS_51]
+              Select Operator [SEL_49] (rows=254100 width=1436)
+                Output:["_col0","_col1","_col10","_col11","_col12","_col13","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
+                Group By Operator [GBY_48] (rows=254100 width=1436)
+                  Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"],aggregations:["count(VALUE._col0)","avg(VALUE._col1)","stddev_samp(VALUE._col2)","count(VALUE._col3)","avg(VALUE._col4)","stddev_samp(VALUE._col5)","count(VALUE._col6)","avg(VALUE._col7)","stddev_samp(VALUE._col8)"],keys:KEY._col0, KEY._col1, KEY._col2
+                <-Reducer 8 [SIMPLE_EDGE]
+                  SHUFFLE [RS_47]
+                    PartitionCols:_col0, _col1, _col2
+                    Group By Operator [GBY_46] (rows=508200 width=1436)
+                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"],aggregations:["count(_col5)","avg(_col5)","stddev_samp(_col5)","count(_col10)","avg(_col10)","stddev_samp(_col10)","count(_col14)","avg(_col14)","stddev_samp(_col14)"],keys:_col22, _col24, _col25
+                      Select Operator [SEL_45] (rows=508200 width=1436)
+                        Output:["_col22","_col24","_col25","_col5","_col10","_col14"]
+                        Merge Join Operator [MERGEJOIN_104] (rows=508200 width=1436)
+                          Conds:RS_42._col1=RS_43._col0(Inner),Output:["_col5","_col10","_col14","_col22","_col24","_col25"]
+                        <-Map 17 [SIMPLE_EDGE]
+                          SHUFFLE [RS_43]
+                            PartitionCols:_col0
+                            Select Operator [SEL_23] (rows=462000 width=1436)
+                              Output:["_col0","_col1","_col2"]
+                              Filter Operator [FIL_97] (rows=462000 width=1436)
+                                predicate:i_item_sk is not null
+                                TableScan [TS_21] (rows=462000 width=1436)
+                                  default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_item_desc"]
+                        <-Reducer 7 [SIMPLE_EDGE]
+                          SHUFFLE [RS_42]
+                            PartitionCols:_col1
+                            Merge Join Operator [MERGEJOIN_103] (rows=53473 width=1119)
+                              Conds:RS_39._col3=RS_40._col0(Inner),Output:["_col1","_col5","_col10","_col14","_col22"]
+                            <-Map 16 [SIMPLE_EDGE]
+                              SHUFFLE [RS_40]
+                                PartitionCols:_col0
+                                Select Operator [SEL_20] (rows=1704 width=1910)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_96] (rows=1704 width=1910)
+                                    predicate:s_store_sk is not null
+                                    TableScan [TS_18] (rows=1704 width=1910)
+                                      default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_state"]
+                            <-Reducer 6 [SIMPLE_EDGE]
+                              SHUFFLE [RS_39]
+                                PartitionCols:_col3
+                                Merge Join Operator [MERGEJOIN_102] (rows=48612 width=1119)
+                                  Conds:RS_36._col11=RS_37._col0(Inner),Output:["_col1","_col3","_col5","_col10","_col14"]
+                                <-Map 15 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_37]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_17] (rows=36524 width=1119)
+                                      Output:["_col0"]
+                                      Filter Operator [FIL_95] (rows=36524 width=1119)
+                                        predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null)
+                                        TableScan [TS_15] (rows=73049 width=1119)
+                                          default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_quarter_name"]
+                                <-Reducer 5 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_36]
+                                    PartitionCols:_col11
+                                    Merge Join Operator [MERGEJOIN_101] (rows=44193 width=1119)
+                                      Conds:RS_33._col6=RS_34._col0(Inner),Output:["_col1","_col3","_col5","_col10","_col11","_col14"]
+                                    <-Map 14 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_34]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_14] (rows=36524 width=1119)
+                                          Output:["_col0"]
+                                          Filter Operator [FIL_94] (rows=36524 width=1119)
+                                            predicate:((d_quarter_name) IN ('2000Q1', '2000Q2', '2000Q3') and d_date_sk is not null)
+                                            TableScan [TS_12] (rows=73049 width=1119)
+                                              default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_quarter_name"]
+                                    <-Reducer 4 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_33]
+                                        PartitionCols:_col6
+                                        Merge Join Operator [MERGEJOIN_100] (rows=40176 width=1119)
+                                          Conds:RS_30._col0=RS_31._col0(Inner),Output:["_col1","_col3","_col5","_col6","_col10","_col11","_col14"]
+                                        <-Map 13 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_31]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_11] (rows=36524 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_93] (rows=36524 width=1119)
+                                                predicate:((d_quarter_name = '2000Q1') and d_date_sk is not null)
+                                                TableScan [TS_9] (rows=73049 width=1119)
+                                                  default@date_dim,d1,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_quarter_name"]
+                                        <-Reducer 3 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_30]
+                                            PartitionCols:_col0
+                                            Merge Join Operator [MERGEJOIN_99] (rows=1 width=0)
+                                              Conds:RS_27._col8, _col7=RS_28._col1, _col2(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col10","_col11","_col14"]
+                                            <-Map 12 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_28]
+                                                PartitionCols:_col1, _col2
+                                                Select Operator [SEL_8] (rows=1 width=0)
+                                                  Output:["_col0","_col1","_col2","_col3"]
+                                                  Filter Operator [FIL_92] (rows=1 width=0)
+                                                    predicate:((cs_bill_customer_sk is not null and cs_item_sk is not null) and cs_sold_date_sk is not null)
+                                                    TableScan [TS_6] (rows=1 width=0)
+                                                      default@catalog_sales,catalog_sales,Tbl:PARTIAL,Col:NONE,Output:["cs_sold_date_sk","cs_bill_customer_sk","cs_item_sk","cs_quantity"]
+                                            <-Reducer 2 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_27]
+                                                PartitionCols:_col8, _col7
+                                                Merge Join Operator [MERGEJOIN_98] (rows=1 width=0)
+                                                  Conds:RS_24._col2, _col1, _col4=RS_25._col2, _col1, _col3(Inner),Output:["_col0","_col1","_col3","_col5","_col6","_col7","_col8","_col10"]
+                                                <-Map 1 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_24]
+                                                    PartitionCols:_col2, _col1, _col4
+                                                    Select Operator [SEL_2] (rows=1 width=0)
+                                                      Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                                      Filter Operator [FIL_90] (rows=1 width=0)
+                                                        predicate:((((ss_item_sk is not null and ss_customer_sk is not null) and ss_ticket_number is not null) and ss_sold_date_sk is not null) and ss_store_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_customer_sk","ss_store_sk","ss_ticket_number","ss_quantity"]
+                                                <-Map 11 [SIMPLE_EDGE]
+                                                  SHUFFLE [RS_25]
+                                                    PartitionCols:_col2, _col1, _col3
+                                                    Select Operator [SEL_5] (rows=1 width=0)
+                                                      Output:["_col0","_col1","_col2","_col3","_col4"]
+                                                      Filter Operator [FIL_91] (rows=1 width=0)
+                                                        predicate:(((sr_item_sk is not null and sr_customer_sk is not null) and sr_ticket_number is not null) and sr_returned_date_sk is not null)
+                                                        TableScan [TS_3] (rows=1 width=0)
+                                                          default@store_returns,store_returns,Tbl:PARTIAL,Col:NONE,Output:["sr_returned_date_sk","sr_item_sk","sr_customer_sk","sr_ticket_number","sr_return_quantity"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query18.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query18.q.out b/ql/src/test/results/clientpositive/perf/query18.q.out
index 9ab9043..276ed57 100644
--- a/ql/src/test/results/clientpositive/perf/query18.q.out
+++ b/ql/src/test/results/clientpositive/perf/query18.q.out
@@ -15,222 +15,116 @@ Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
 Reducer 9 <- Reducer 8 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 9
-         File Output Operator [FS_48]
-            compressed:false
-            Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE Column stats: NONE
-            table:{"input format:":"org.apache.hadoop.mapred.TextInputFormat","output format:":"org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat","serde:":"org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe"}
-            Limit [LIM_47]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_46]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
-               |  Statistics:Num rows: 133100005 Data size: 114468695810 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 8 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_45]
-                     key expressions:_col1 (type: string), _col2 (type: string), _col3 (type: string), _col0 (type: string)
-                     sort order:++++
-                     Statistics:Num rows: 133100005 Data size: 114468695810 Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col4 (type: decimal(16,6)), _col5 (type: decimal(16,6)), _col6 (type: decimal(16,6)), _col7 (type: decimal(16,6)), _col8 (type: decimal(16,6)), _col9 (type: decimal(16,6)), _col10 (type: decimal(16,6))
-                     Select Operator [SEL_44]
-                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
-                        Statistics:Num rows: 133100005 Data size: 114468695810 Basic stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_43]
-                        |  aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)","avg(VALUE._col4)","avg(VALUE._col5)","avg(VALUE._col6)"]
-                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: string), KEY._col3 (type: string), KEY._col4 (type: string)
-                        |  outputColumnNames:["_col0","_col1","_col2","_col3","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                        |  Statistics:Num rows: 133100005 Data size: 114468695810 Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 7 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_42]
-                              key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string)
-                              Map-reduce partition columns:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string)
-                              sort order:+++++
-                              Statistics:Num rows: 266200010 Data size: 228937391620 Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col5 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col6 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col7 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col8 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col9 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col10 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>), _col11 (type: struct<count:bigint,sum:decimal(22,2),input:decimal(12,2)>)
-                              Group By Operator [GBY_41]
-                                 aggregations:["avg(_col4)","avg(_col5)","avg(_col6)","avg(_col7)","avg(_col8)","avg(_col9)","avg(_col10)"]
-                                 keys:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), '0' (type: string)
-                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
-                                 Statistics:Num rows: 266200010 Data size: 228937391620 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_39]
-                                    outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
-                                    Statistics:Num rows: 53240002 Data size: 45787478324 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_88]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col18 (type: int)","1":"_col0 (type: int)"}
-                                    |  outputColumnNames:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col21","_col23","_col24","_col25"]
-                                    |  Statistics:Num rows: 53240002 Data size: 45787478324 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Map 15 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_37]
-                                    |     key expressions:_col0 (type: int)
-                                    |     Map-reduce partition columns:_col0 (type: int)
-                                    |     sort order:+
-                                    |     Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
-                                    |     Select Operator [SEL_20]
-                                    |        outputColumnNames:["_col0"]
-                                    |        Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_82]
-                                    |           predicate:cd_demo_sk is not null (type: boolean)
-                                    |           Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
-                                    |           TableScan [TS_18]
-                                    |              alias:cd1
-                                    |              Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 6 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_36]
-                                          key expressions:_col18 (type: int)
-                                          Map-reduce partition columns:_col18 (type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 48400001 Data size: 41624979393 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2)), _col14 (type: int), _col16 (type: string), _col21 (type: int), _col23 (type: string), _col24 (type: string), _col25 (type: string)
-                                          Merge Join Operator [MERGEJOIN_87]
-                                          |  condition map:[{"":"Inner Join 0 to 1"}]
-                                          |  keys:{"0":"_col19 (type: int)","1":"_col0 (type: int)"}
-                                          |  outputColumnNames:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col18","_col21","_col23","_col24","_col25"]
-                                          |  Statistics:Num rows: 48400001 Data size: 41624979393 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 14 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_34]
-                                          |     key expressions:_col0 (type: int)
-                                          |     Map-reduce partition columns:_col0 (type: int)
-                                          |     sort order:+
-                                          |     Statistics:Num rows: 20000000 Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
-                                          |     value expressions:_col1 (type: string), _col2 (type: string), _col3 (type: string)
-                                          |     Select Operator [SEL_17]
-                                          |        outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                          |        Statistics:Num rows: 20000000 Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_81]
-                                          |           predicate:((ca_state) IN ('ND', 'WI', 'AL', 'NC', 'OK', 'MS', 'TN') and ca_address_sk is not null) (type: boolean)
-                                          |           Statistics:Num rows: 20000000 Data size: 20297597642 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_15]
-                                          |              alias:customer_address
-                                          |              Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 5 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_33]
-                                                key expressions:_col19 (type: int)
-                                                Map-reduce partition columns:_col19 (type: int)
-                                                sort order:+
-                                                Statistics:Num rows: 44000000 Data size: 37840889538 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2)), _col14 (type: int), _col16 (type: string), _col18 (type: int), _col21 (type: int)
-                                                Merge Join Operator [MERGEJOIN_86]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col18","_col19","_col21"]
-                                                |  Statistics:Num rows: 44000000 Data size: 37840889538 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Map 13 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator [RS_31]
-                                                |     key expressions:_col0 (type: int)
-                                                |     Map-reduce partition columns:_col0 (type: int)
-                                                |     sort order:+
-                                                |     Statistics:Num rows: 40000000 Data size: 34400807926 Basic stats: COMPLETE Column stats: NONE
-                                                |     value expressions:_col1 (type: int), _col2 (type: int), _col4 (type: int)
-                                                |     Select Operator [SEL_14]
-                                                |        outputColumnNames:["_col0","_col1","_col2","_col4"]
-                                                |        Statistics:Num rows: 40000000 Data size: 34400807926 Basic stats: COMPLETE Column stats: NONE
-                                                |        Filter Operator [FIL_80]
-                                                |           predicate:((((c_birth_month) IN (9, 5, 12, 4, 1, 10) and c_customer_sk is not null) and c_current_addr_sk is not null) and c_current_cdemo_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 40000000 Data size: 34400807926 Basic stats: COMPLETE Column stats: NONE
-                                                |           TableScan [TS_12]
-                                                |              alias:customer
-                                                |              Statistics:Num rows: 80000000 Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Reducer 4 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_30]
-                                                      key expressions:_col1 (type: int)
-                                                      Map-reduce partition columns:_col1 (type: int)
-                                                      sort order:+
-                                                      Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2)), _col14 (type: int), _col16 (type: string)
-                                                      Merge Join Operator [MERGEJOIN_85]
-                                                      |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                      |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
-                                                      |  outputColumnNames:["_col1","_col4","_col5","_col6","_col7","_col8","_col14","_col16"]
-                                                      |  Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Map 12 [SIMPLE_EDGE]
-                                                      |  Reduce Output Operator [RS_28]
-                                                      |     key expressions:_col0 (type: int)
-                                                      |     Map-reduce partition columns:_col0 (type: int)
-                                                      |     sort order:+
-                                                      |     Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                      |     value expressions:_col1 (type: string)
-                                                      |     Select Operator [SEL_11]
-                                                      |        outputColumnNames:["_col0","_col1"]
-                                                      |        Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                      |        Filter Operator [FIL_79]
-                                                      |           predicate:i_item_sk is not null (type: boolean)
-                                                      |           Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                      |           TableScan [TS_9]
-                                                      |              alias:item
-                                                      |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Reducer 3 [SIMPLE_EDGE]
-                                                         Reduce Output Operator [RS_27]
-                                                            key expressions:_col3 (type: int)
-                                                            Map-reduce partition columns:_col3 (type: int)
-                                                            sort order:+
-                                                            Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                            value expressions:_col1 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2)), _col14 (type: int)
-                                                            Merge Join Operator [MERGEJOIN_84]
-                                                            |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                            |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
-                                                            |  outputColumnNames:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col14"]
-                                                            |  Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 11 [SIMPLE_EDGE]
-                                                            |  Reduce Output Operator [RS_25]
-                                                            |     key expressions:_col0 (type: int)
-                                                            |     Map-reduce partition columns:_col0 (type: int)
-                                                            |     sort order:+
-                                                            |     Statistics:Num rows: 4950 Data size: 1792764 Basic stats: COMPLETE Column stats: NONE
-                                                            |     value expressions:_col3 (type: int)
-                                                            |     Select Operator [SEL_8]
-                                                            |        outputColumnNames:["_col0","_col3"]
-                                                            |        Statistics:Num rows: 4950 Data size: 1792764 Basic stats: COMPLETE Column stats: NONE
-                                                            |        Filter Operator [FIL_78]
-                                                            |           predicate:(((cd_gender = 'M') and (cd_education_status = 'College')) and cd_demo_sk is not null) (type: boolean)
-                                                            |           Statistics:Num rows: 4950 Data size: 1792764 Basic stats: COMPLETE Column stats: NONE
-                                                            |           TableScan [TS_6]
-                                                            |              alias:cd1
-                                                            |              Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Reducer 2 [SIMPLE_EDGE]
-                                                               Reduce Output Operator [RS_24]
-                                                                  key expressions:_col2 (type: int)
-                                                                  Map-reduce partition columns:_col2 (type: int)
-                                                                  sort order:+
-                                                                  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                                  value expressions:_col1 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2))
-                                                                  Merge Join Operator [MERGEJOIN_83]
-                                                                  |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                                  |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                                  |  outputColumnNames:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                                  |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                                  |<-Map 1 [SIMPLE_EDGE]
-                                                                  |  Reduce Output Operator [RS_21]
-                                                                  |     key expressions:_col0 (type: int)
-                                                                  |     Map-reduce partition columns:_col0 (type: int)
-                                                                  |     sort order:+
-                                                                  |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |     value expressions:_col1 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col8 (type: decimal(7,2))
-                                                                  |     Select Operator [SEL_2]
-                                                                  |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
-                                                                  |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |        Filter Operator [FIL_76]
-                                                                  |           predicate:(((cs_sold_date_sk is not null and cs_bill_cdemo_sk is not null) and cs_item_sk is not null) and cs_bill_customer_sk is not null) (type: boolean)
-                                                                  |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |           TableScan [TS_0]
-                                                                  |              alias:catalog_sales
-                                                                  |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                                  |<-Map 10 [SIMPLE_EDGE]
-                                                                     Reduce Output Operator [RS_22]
-                                                                        key expressions:_col0 (type: int)
-                                                                        Map-reduce partition columns:_col0 (type: int)
-                                                                        sort order:+
-                                                                        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                                        Select Operator [SEL_5]
-                                                                           outputColumnNames:["_col0"]
-                                                                           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                                           Filter Operator [FIL_77]
-                                                                              predicate:((d_year = 2001) and d_date_sk is not null) (type: boolean)
-                                                                              Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                                              TableScan [TS_3]
-                                                                                 alias:date_dim
-                                                                                 Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 9
+      File Output Operator [FS_48]
+        Limit [LIM_47] (rows=100 width=860)
+          Number of rows:100
+          Select Operator [SEL_46] (rows=133100005 width=860)
+            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
+          <-Reducer 8 [SIMPLE_EDGE]
+            SHUFFLE [RS_45]
+              Select Operator [SEL_44] (rows=133100005 width=860)
+                Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
+                Group By Operator [GBY_43] (rows=133100005 width=860)
+                  Output:["_col0","_col1","_col2","_col3","_col5","_col6","_col7","_col8","_col9","_col10","_col11"],aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)","avg(VALUE._col4)","avg(VALUE._col5)","avg(VALUE._col6)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
+                <-Reducer 7 [SIMPLE_EDGE]
+                  SHUFFLE [RS_42]
+                    PartitionCols:_col0, _col1, _col2, _col3, _col4
+                    Group By Operator [GBY_41] (rows=266200010 width=860)
+                      Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"],aggregations:["avg(_col4)","avg(_col5)","avg(_col6)","avg(_col7)","avg(_col8)","avg(_col9)","avg(_col10)"],keys:_col0, _col1, _col2, _col3, '0'
+                      Select Operator [SEL_39] (rows=53240002 width=860)
+                        Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10"]
+                        Merge Join Operator [MERGEJOIN_88] (rows=53240002 width=860)
+                          Conds:RS_36._col18=RS_37._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col21","_col23","_col24","_col25"]
+                        <-Map 15 [SIMPLE_EDGE]
+                          SHUFFLE [RS_37]
+                            PartitionCols:_col0
+                            Select Operator [SEL_20] (rows=19800 width=362)
+                              Output:["_col0"]
+                              Filter Operator [FIL_82] (rows=19800 width=362)
+                                predicate:cd_demo_sk is not null
+                                TableScan [TS_18] (rows=19800 width=362)
+                                  default@customer_demographics,cd1,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk"]
+                        <-Reducer 6 [SIMPLE_EDGE]
+                          SHUFFLE [RS_36]
+                            PartitionCols:_col18
+                            Merge Join Operator [MERGEJOIN_87] (rows=48400001 width=860)
+                              Conds:RS_33._col19=RS_34._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col18","_col21","_col23","_col24","_col25"]
+                            <-Map 14 [SIMPLE_EDGE]
+                              SHUFFLE [RS_34]
+                                PartitionCols:_col0
+                                Select Operator [SEL_17] (rows=20000000 width=1014)
+                                  Output:["_col0","_col1","_col2","_col3"]
+                                  Filter Operator [FIL_81] (rows=20000000 width=1014)
+                                    predicate:((ca_state) IN ('ND', 'WI', 'AL', 'NC', 'OK', 'MS', 'TN') and ca_address_sk is not null)
+                                    TableScan [TS_15] (rows=40000000 width=1014)
+                                      default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_county","ca_state","ca_country"]
+                            <-Reducer 5 [SIMPLE_EDGE]
+                              SHUFFLE [RS_33]
+                                PartitionCols:_col19
+                                Merge Join Operator [MERGEJOIN_86] (rows=44000000 width=860)
+                                  Conds:RS_30._col1=RS_31._col0(Inner),Output:["_col4","_col5","_col6","_col7","_col8","_col14","_col16","_col18","_col19","_col21"]
+                                <-Map 13 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_31]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_14] (rows=40000000 width=860)
+                                      Output:["_col0","_col1","_col2","_col4"]
+                                      Filter Operator [FIL_80] (rows=40000000 width=860)
+                                        predicate:((((c_birth_month) IN (9, 5, 12, 4, 1, 10) and c_customer_sk is not null) and c_current_addr_sk is not null) and c_current_cdemo_sk is not null)
+                                        TableScan [TS_12] (rows=80000000 width=860)
+                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_cdemo_sk","c_current_addr_sk","c_birth_month","c_birth_year"]
+                                <-Reducer 4 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_30]
+                                    PartitionCols:_col1
+                                    Merge Join Operator [MERGEJOIN_85] (rows=508200 width=1436)
+                                      Conds:RS_27._col3=RS_28._col0(Inner),Output:["_col1","_col4","_col5","_col6","_col7","_col8","_col14","_col16"]
+                                    <-Map 12 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_28]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_11] (rows=462000 width=1436)
+                                          Output:["_col0","_col1"]
+                                          Filter Operator [FIL_79] (rows=462000 width=1436)
+                                            predicate:i_item_sk is not null
+                                            TableScan [TS_9] (rows=462000 width=1436)
+                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id"]
+                                    <-Reducer 3 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_27]
+                                        PartitionCols:_col3
+                                        Merge Join Operator [MERGEJOIN_84] (rows=44193 width=1119)
+                                          Conds:RS_24._col2=RS_25._col0(Inner),Output:["_col1","_col3","_col4","_col5","_col6","_col7","_col8","_col14"]
+                                        <-Map 11 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_25]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_8] (rows=4950 width=362)
+                                              Output:["_col0","_col3"]
+                                              Filter Operator [FIL_78] (rows=4950 width=362)
+                                                predicate:(((cd_gender = 'M') and (cd_education_status = 'College')) and cd_demo_sk is not null)
+                                                TableScan [TS_6] (rows=19800 width=362)
+                                                  default@customer_demographics,cd1,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_gender","cd_education_status","cd_dep_count"]
+                                        <-Reducer 2 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_24]
+                                            PartitionCols:_col2
+                                            Merge Join Operator [MERGEJOIN_83] (rows=40176 width=1119)
+                                              Conds:RS_21._col0=RS_22._col0(Inner),Output:["_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                            <-Map 1 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_21]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_2] (rows=1 width=0)
+                                                  Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                                  Filter Operator [FIL_76] (rows=1 width=0)
+                                                    predicate:(((cs_sold_date_sk is not null and cs_bill_cdemo_sk is not null) and cs_item_sk is not null) and cs_bill_customer_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_bill_customer_sk","cs_bill_cdemo_sk","cs_item_sk","cs_quantity","cs_list_price","cs_sales_price","cs_coupon_amt","cs_net_profit"]
+                                            <-Map 10 [SIMPLE_EDGE]
+                                              SHUFFLE [RS_22]
+                                                PartitionCols:_col0
+                                                Select Operator [SEL_5] (rows=36524 width=1119)
+                                                  Output:["_col0"]
+                                                  Filter Operator [FIL_77] (rows=36524 width=1119)
+                                                    predicate:((d_year = 2001) and d_date_sk is not null)
+                                                    TableScan [TS_3] (rows=73049 width=1119)
+                                                      default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]