hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pxi...@apache.org
Subject [30/33] hive git commit: HIVE-12709: further improve user level explain (Pengcheng Xiong, reviewed by Laljo John Pullokkaran)
Date Fri, 29 Jan 2016 19:06:32 GMT
http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query19.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query19.q.out b/ql/src/test/results/clientpositive/perf/query19.q.out
index e6d6438..b0fda23 100644
--- a/ql/src/test/results/clientpositive/perf/query19.q.out
+++ b/ql/src/test/results/clientpositive/perf/query19.q.out
@@ -14,194 +14,102 @@ Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
 Reducer 8 <- Reducer 7 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 8
-         File Output Operator [FS_43]
-            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_42]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_41]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-               |  Statistics:Num rows: 53240002 Data size: 45787477895 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 7 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_40]
-                     key expressions:_col4 (type: decimal(17,2)), _col1 (type: string), _col0 (type: int), _col2 (type: int), _col3 (type: string)
-                     sort order:-++++
-                     Statistics:Num rows: 53240002 Data size: 45787477895 Basic stats: COMPLETE Column stats: NONE
-                     Group By Operator [GBY_37]
-                     |  aggregations:["sum(VALUE._col0)"]
-                     |  keys:KEY._col0 (type: int), KEY._col1 (type: string), KEY._col2 (type: int), KEY._col3 (type: string)
-                     |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                     |  Statistics:Num rows: 53240002 Data size: 45787477895 Basic stats: COMPLETE Column stats: NONE
-                     |<-Reducer 6 [SIMPLE_EDGE]
-                        Reduce Output Operator [RS_36]
-                           key expressions:_col0 (type: int), _col1 (type: string), _col2 (type: int), _col3 (type: string)
-                           Map-reduce partition columns:_col0 (type: int), _col1 (type: string), _col2 (type: int), _col3 (type: string)
-                           sort order:++++
-                           Statistics:Num rows: 106480005 Data size: 91574956652 Basic stats: COMPLETE Column stats: NONE
-                           value expressions:_col4 (type: decimal(17,2))
-                           Group By Operator [GBY_35]
-                              aggregations:["sum(_col7)"]
-                              keys:_col9 (type: int), _col10 (type: string), _col11 (type: int), _col12 (type: string)
-                              outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                              Statistics:Num rows: 106480005 Data size: 91574956652 Basic stats: COMPLETE Column stats: NONE
-                              Select Operator [SEL_34]
-                                 outputColumnNames:["_col9","_col10","_col11","_col12","_col7"]
-                                 Statistics:Num rows: 106480005 Data size: 91574956652 Basic stats: COMPLETE Column stats: NONE
-                                 Filter Operator [FIL_33]
-                                    predicate:(substr(_col17, 1, 5) <> substr(_col19, 1, 5)) (type: boolean)
-                                    Statistics:Num rows: 106480005 Data size: 91574956652 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_74]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col6 (type: int)","1":"_col0 (type: int)"}
-                                    |  outputColumnNames:["_col7","_col9","_col10","_col11","_col12","_col17","_col19"]
-                                    |  Statistics:Num rows: 106480005 Data size: 91574956652 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: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                    |     value expressions:_col1 (type: string)
-                                    |     Select Operator [SEL_17]
-                                    |        outputColumnNames:["_col0","_col1"]
-                                    |        Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_69]
-                                    |           predicate:s_store_sk is not null (type: boolean)
-                                    |           Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                    |           TableScan [TS_15]
-                                    |              alias:store
-                                    |              Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 5 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_30]
-                                          key expressions:_col6 (type: int)
-                                          Map-reduce partition columns:_col6 (type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 96800003 Data size: 83249958789 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col7 (type: decimal(7,2)), _col9 (type: int), _col10 (type: string), _col11 (type: int), _col12 (type: string), _col17 (type: string)
-                                          Merge Join Operator [MERGEJOIN_73]
-                                          |  condition map:[{"":"Inner Join 0 to 1"}]
-                                          |  keys:{"0":"_col15 (type: int)","1":"_col0 (type: int)"}
-                                          |  outputColumnNames:["_col6","_col7","_col9","_col10","_col11","_col12","_col17"]
-                                          |  Statistics:Num rows: 96800003 Data size: 83249958789 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: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                          |     value expressions:_col1 (type: string)
-                                          |     Select Operator [SEL_14]
-                                          |        outputColumnNames:["_col0","_col1"]
-                                          |        Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_68]
-                                          |           predicate:ca_address_sk is not null (type: boolean)
-                                          |           Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_12]
-                                          |              alias:customer_address
-                                          |              Statistics:Num rows: 40000000 Data size: 40595195284 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 4 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_27]
-                                                key expressions:_col15 (type: int)
-                                                Map-reduce partition columns:_col15 (type: int)
-                                                sort order:+
-                                                Statistics:Num rows: 88000001 Data size: 75681779077 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col6 (type: int), _col7 (type: decimal(7,2)), _col9 (type: int), _col10 (type: string), _col11 (type: int), _col12 (type: string)
-                                                Merge Join Operator [MERGEJOIN_72]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col5 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col6","_col7","_col9","_col10","_col11","_col12","_col15"]
-                                                |  Statistics:Num rows: 88000001 Data size: 75681779077 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: 80000000 Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                                |     value expressions:_col1 (type: int)
-                                                |     Select Operator [SEL_11]
-                                                |        outputColumnNames:["_col0","_col1"]
-                                                |        Statistics:Num rows: 80000000 Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                                |        Filter Operator [FIL_67]
-                                                |           predicate:(c_customer_sk is not null and c_current_addr_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 80000000 Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                                |           TableScan [TS_9]
-                                                |              alias:customer
-                                                |              Statistics:Num rows: 80000000 Data size: 68801615852 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Reducer 3 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_24]
-                                                      key expressions:_col5 (type: int)
-                                                      Map-reduce partition columns:_col5 (type: int)
-                                                      sort order:+
-                                                      Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col6 (type: int), _col7 (type: decimal(7,2)), _col9 (type: int), _col10 (type: string), _col11 (type: int), _col12 (type: string)
-                                                      Merge Join Operator [MERGEJOIN_71]
-                                                      |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                      |  keys:{"0":"_col4 (type: int)","1":"_col0 (type: int)"}
-                                                      |  outputColumnNames:["_col5","_col6","_col7","_col9","_col10","_col11","_col12"]
-                                                      |  Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE 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: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                      |     value expressions:_col1 (type: int), _col2 (type: string), _col3 (type: int), _col4 (type: string)
-                                                      |     Select Operator [SEL_8]
-                                                      |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                                                      |        Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                      |        Filter Operator [FIL_66]
-                                                      |           predicate:((i_manager_id = 7) and i_item_sk is not null) (type: boolean)
-                                                      |           Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                      |           TableScan [TS_6]
-                                                      |              alias:item
-                                                      |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Reducer 2 [SIMPLE_EDGE]
-                                                         Reduce Output Operator [RS_21]
-                                                            key expressions:_col4 (type: int)
-                                                            Map-reduce partition columns:_col4 (type: int)
-                                                            sort order:+
-                                                            Statistics:Num rows: 20088 Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                                            value expressions:_col5 (type: int), _col6 (type: int), _col7 (type: decimal(7,2))
-                                                            Merge Join Operator [MERGEJOIN_70]
-                                                            |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                            |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                            |  outputColumnNames:["_col4","_col5","_col6","_col7"]
-                                                            |  Statistics:Num rows: 20088 Data size: 22478696 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 1 [SIMPLE_EDGE]
-                                                            |  Reduce Output Operator [RS_18]
-                                                            |     key expressions:_col0 (type: int)
-                                                            |     Map-reduce partition columns:_col0 (type: int)
-                                                            |     sort order:+
-                                                            |     Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
-                                                            |     Select Operator [SEL_2]
-                                                            |        outputColumnNames:["_col0"]
-                                                            |        Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
-                                                            |        Filter Operator [FIL_64]
-                                                            |           predicate:(((d_moy = 11) and (d_year = 1999)) and d_date_sk is not null) (type: boolean)
-                                                            |           Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
-                                                            |           TableScan [TS_0]
-                                                            |              alias:date_dim
-                                                            |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                                            |<-Map 9 [SIMPLE_EDGE]
-                                                               Reduce Output Operator [RS_19]
-                                                                  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: decimal(7,2))
-                                                                  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_65]
-                                                                        predicate:(((ss_sold_date_sk is not null and ss_item_sk is not null) and ss_customer_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_3]
-                                                                           alias:store_sales
-                                                                           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 8
+      File Output Operator [FS_43]
+        Limit [LIM_42] (rows=100 width=860)
+          Number of rows:100
+          Select Operator [SEL_41] (rows=53240002 width=860)
+            Output:["_col0","_col1","_col2","_col3","_col4"]
+          <-Reducer 7 [SIMPLE_EDGE]
+            SHUFFLE [RS_40]
+              Group By Operator [GBY_37] (rows=53240002 width=860)
+                Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3
+              <-Reducer 6 [SIMPLE_EDGE]
+                SHUFFLE [RS_36]
+                  PartitionCols:_col0, _col1, _col2, _col3
+                  Group By Operator [GBY_35] (rows=106480005 width=860)
+                    Output:["_col0","_col1","_col2","_col3","_col4"],aggregations:["sum(_col7)"],keys:_col9, _col10, _col11, _col12
+                    Select Operator [SEL_34] (rows=106480005 width=860)
+                      Output:["_col9","_col10","_col11","_col12","_col7"]
+                      Filter Operator [FIL_33] (rows=106480005 width=860)
+                        predicate:(substr(_col17, 1, 5) <> substr(_col19, 1, 5))
+                        Merge Join Operator [MERGEJOIN_74] (rows=106480005 width=860)
+                          Conds:RS_30._col6=RS_31._col0(Inner),Output:["_col7","_col9","_col10","_col11","_col12","_col17","_col19"]
+                        <-Map 13 [SIMPLE_EDGE]
+                          SHUFFLE [RS_31]
+                            PartitionCols:_col0
+                            Select Operator [SEL_17] (rows=1704 width=1910)
+                              Output:["_col0","_col1"]
+                              Filter Operator [FIL_69] (rows=1704 width=1910)
+                                predicate:s_store_sk is not null
+                                TableScan [TS_15] (rows=1704 width=1910)
+                                  default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk","s_zip"]
+                        <-Reducer 5 [SIMPLE_EDGE]
+                          SHUFFLE [RS_30]
+                            PartitionCols:_col6
+                            Merge Join Operator [MERGEJOIN_73] (rows=96800003 width=860)
+                              Conds:RS_27._col15=RS_28._col0(Inner),Output:["_col6","_col7","_col9","_col10","_col11","_col12","_col17"]
+                            <-Map 12 [SIMPLE_EDGE]
+                              SHUFFLE [RS_28]
+                                PartitionCols:_col0
+                                Select Operator [SEL_14] (rows=40000000 width=1014)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_68] (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_zip"]
+                            <-Reducer 4 [SIMPLE_EDGE]
+                              SHUFFLE [RS_27]
+                                PartitionCols:_col15
+                                Merge Join Operator [MERGEJOIN_72] (rows=88000001 width=860)
+                                  Conds:RS_24._col5=RS_25._col0(Inner),Output:["_col6","_col7","_col9","_col10","_col11","_col12","_col15"]
+                                <-Map 11 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_25]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_11] (rows=80000000 width=860)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_67] (rows=80000000 width=860)
+                                        predicate:(c_customer_sk is not null and c_current_addr_sk is not null)
+                                        TableScan [TS_9] (rows=80000000 width=860)
+                                          default@customer,customer,Tbl:COMPLETE,Col:NONE,Output:["c_customer_sk","c_current_addr_sk"]
+                                <-Reducer 3 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_24]
+                                    PartitionCols:_col5
+                                    Merge Join Operator [MERGEJOIN_71] (rows=254100 width=1436)
+                                      Conds:RS_21._col4=RS_22._col0(Inner),Output:["_col5","_col6","_col7","_col9","_col10","_col11","_col12"]
+                                    <-Map 10 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_22]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_8] (rows=231000 width=1436)
+                                          Output:["_col0","_col1","_col2","_col3","_col4"]
+                                          Filter Operator [FIL_66] (rows=231000 width=1436)
+                                            predicate:((i_manager_id = 7) and i_item_sk is not null)
+                                            TableScan [TS_6] (rows=462000 width=1436)
+                                              default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand_id","i_brand","i_manufact_id","i_manufact","i_manager_id"]
+                                    <-Reducer 2 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_21]
+                                        PartitionCols:_col4
+                                        Merge Join Operator [MERGEJOIN_70] (rows=20088 width=1119)
+                                          Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col4","_col5","_col6","_col7"]
+                                        <-Map 1 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_18]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_2] (rows=18262 width=1119)
+                                              Output:["_col0"]
+                                              Filter Operator [FIL_64] (rows=18262 width=1119)
+                                                predicate:(((d_moy = 11) and (d_year = 1999)) and d_date_sk is not null)
+                                                TableScan [TS_0] (rows=73049 width=1119)
+                                                  default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year","d_moy"]
+                                        <-Map 9 [SIMPLE_EDGE]
+                                          SHUFFLE [RS_19]
+                                            PartitionCols:_col0
+                                            Select Operator [SEL_5] (rows=1 width=0)
+                                              Output:["_col0","_col1","_col2","_col3","_col4"]
+                                              Filter Operator [FIL_65] (rows=1 width=0)
+                                                predicate:(((ss_sold_date_sk is not null and ss_item_sk is not null) and ss_customer_sk is not null) and ss_store_sk is not null)
+                                                TableScan [TS_3] (rows=1 width=0)
+                                                  default@store_sales,store_sales,Tbl:PARTIAL,Col:NONE,Output:["ss_sold_date_sk","ss_item_sk","ss_customer_sk","ss_store_sk","ss_ext_sales_price"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query20.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query20.q.out b/ql/src/test/results/clientpositive/perf/query20.q.out
index 40c9a17..74d286a 100644
--- a/ql/src/test/results/clientpositive/perf/query20.q.out
+++ b/ql/src/test/results/clientpositive/perf/query20.q.out
@@ -12,127 +12,69 @@ Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 6
-         File Output Operator [FS_28]
-            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_27]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_26]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-               |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 5 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_25]
-                     key expressions:_col1 (type: string), _col2 (type: string), _col4 (type: string), _col0 (type: string), _col6 (type: decimal(38,23))
-                     sort order:+++++
-                     Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col3 (type: decimal(7,2)), _col5 (type: decimal(17,2))
-                     Select Operator [SEL_23]
-                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
-                        Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                        PTF Operator [PTF_22]
-                           Function definitions:[{"Input definition":{"type:":"WINDOWING"}},{"name:":"windowingtablefunction","order by:":"_col3","partition by:":"_col3"}]
-                           Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                           Select Operator [SEL_21]
-                           |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                           |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                           |<-Reducer 4 [SIMPLE_EDGE]
-                              Reduce Output Operator [RS_20]
-                                 key expressions:_col3 (type: string)
-                                 Map-reduce partition columns:_col3 (type: string)
-                                 sort order:+
-                                 Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                                 value expressions:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col4 (type: decimal(7,2)), _col5 (type: decimal(17,2))
-                                 Select Operator [SEL_19]
-                                    outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                    Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                                    Group By Operator [GBY_18]
-                                    |  aggregations:["sum(VALUE._col0)"]
-                                    |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: decimal(7,2)), KEY._col3 (type: string), KEY._col4 (type: string)
-                                    |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                    |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 3 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_17]
-                                          key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: decimal(7,2)), _col3 (type: string), _col4 (type: string)
-                                          Map-reduce partition columns:_col0 (type: string), _col1 (type: string), _col2 (type: decimal(7,2)), _col3 (type: string), _col4 (type: string)
-                                          sort order:+++++
-                                          Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col5 (type: decimal(17,2))
-                                          Group By Operator [GBY_16]
-                                             aggregations:["sum(_col2)"]
-                                             keys:_col4 (type: string), _col5 (type: string), _col6 (type: decimal(7,2)), _col7 (type: string), _col8 (type: string)
-                                             outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                             Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                             Select Operator [SEL_15]
-                                                outputColumnNames:["_col4","_col5","_col6","_col7","_col8","_col2"]
-                                                Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                                Merge Join Operator [MERGEJOIN_38]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col2","_col4","_col5","_col6","_col7","_col8"]
-                                                |  Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Map 8 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator [RS_13]
-                                                |     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_8]
-                                                |        outputColumnNames:["_col0"]
-                                                |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                |        Filter Operator [FIL_36]
-                                                |           predicate:(d_date BETWEEN '2001-01-12' AND '2001-02-11' and d_date_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                                |           TableScan [TS_6]
-                                                |              alias:date_dim
-                                                |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Reducer 2 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_12]
-                                                      key expressions:_col0 (type: int)
-                                                      Map-reduce partition columns:_col0 (type: int)
-                                                      sort order:+
-                                                      Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col2 (type: decimal(7,2)), _col4 (type: string), _col5 (type: string), _col6 (type: decimal(7,2)), _col7 (type: string), _col8 (type: string)
-                                                      Merge Join Operator [MERGEJOIN_37]
-                                                      |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                      |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                                      |  outputColumnNames:["_col0","_col2","_col4","_col5","_col6","_col7","_col8"]
-                                                      |  Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
-                                                      |<-Map 1 [SIMPLE_EDGE]
-                                                      |  Reduce Output Operator [RS_9]
-                                                      |     key expressions:_col1 (type: int)
-                                                      |     Map-reduce partition columns:_col1 (type: int)
-                                                      |     sort order:+
-                                                      |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                      |     value expressions:_col0 (type: int), _col2 (type: decimal(7,2))
-                                                      |     Select Operator [SEL_2]
-                                                      |        outputColumnNames:["_col0","_col1","_col2"]
-                                                      |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                      |        Filter Operator [FIL_34]
-                                                      |           predicate:(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_0]
-                                                      |              alias:catalog_sales
-                                                      |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                      |<-Map 7 [SIMPLE_EDGE]
-                                                         Reduce Output Operator [RS_10]
-                                                            key expressions:_col0 (type: int)
-                                                            Map-reduce partition columns:_col0 (type: int)
-                                                            sort order:+
-                                                            Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                            value expressions:_col1 (type: string), _col2 (type: string), _col3 (type: decimal(7,2)), _col4 (type: string), _col5 (type: string)
-                                                            Select Operator [SEL_5]
-                                                               outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                                               Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                               Filter Operator [FIL_35]
-                                                                  predicate:((i_category) IN ('Jewelry', 'Sports', 'Books') and i_item_sk is not null) (type: boolean)
-                                                                  Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                                                  TableScan [TS_3]
-                                                                     alias:item
-                                                                     Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 6
+      File Output Operator [FS_28]
+        Limit [LIM_27] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_26] (rows=139755 width=1436)
+            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_25]
+              Select Operator [SEL_23] (rows=139755 width=1436)
+                Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                PTF Operator [PTF_22] (rows=139755 width=1436)
+                  Function definitions:[{},{"name:":"windowingtablefunction","order by:":"_col3","partition by:":"_col3"}]
+                  Select Operator [SEL_21] (rows=139755 width=1436)
+                    Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                  <-Reducer 4 [SIMPLE_EDGE]
+                    SHUFFLE [RS_20]
+                      PartitionCols:_col3
+                      Select Operator [SEL_19] (rows=139755 width=1436)
+                        Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        Group By Operator [GBY_18] (rows=139755 width=1436)
+                          Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
+                        <-Reducer 3 [SIMPLE_EDGE]
+                          SHUFFLE [RS_17]
+                            PartitionCols:_col0, _col1, _col2, _col3, _col4
+                            Group By Operator [GBY_16] (rows=279510 width=1436)
+                              Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(_col2)"],keys:_col4, _col5, _col6, _col7, _col8
+                              Select Operator [SEL_15] (rows=279510 width=1436)
+                                Output:["_col4","_col5","_col6","_col7","_col8","_col2"]
+                                Merge Join Operator [MERGEJOIN_38] (rows=279510 width=1436)
+                                  Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col2","_col4","_col5","_col6","_col7","_col8"]
+                                <-Map 8 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_13]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_8] (rows=36524 width=1119)
+                                      Output:["_col0"]
+                                      Filter Operator [FIL_36] (rows=36524 width=1119)
+                                        predicate:(d_date BETWEEN '2001-01-12' AND '2001-02-11' and d_date_sk is not null)
+                                        TableScan [TS_6] (rows=73049 width=1119)
+                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_date"]
+                                <-Reducer 2 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_12]
+                                    PartitionCols:_col0
+                                    Merge Join Operator [MERGEJOIN_37] (rows=254100 width=1436)
+                                      Conds:RS_9._col1=RS_10._col0(Inner),Output:["_col0","_col2","_col4","_col5","_col6","_col7","_col8"]
+                                    <-Map 1 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_9]
+                                        PartitionCols:_col1
+                                        Select Operator [SEL_2] (rows=1 width=0)
+                                          Output:["_col0","_col1","_col2"]
+                                          Filter Operator [FIL_34] (rows=1 width=0)
+                                            predicate:(cs_item_sk is not null and cs_sold_date_sk is not null)
+                                            TableScan [TS_0] (rows=1 width=0)
+                                              default@catalog_sales,catalog_sales,Tbl:PARTIAL,Col:NONE,Output:["cs_sold_date_sk","cs_item_sk","cs_ext_sales_price"]
+                                    <-Map 7 [SIMPLE_EDGE]
+                                      SHUFFLE [RS_10]
+                                        PartitionCols:_col0
+                                        Select Operator [SEL_5] (rows=231000 width=1436)
+                                          Output:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                          Filter Operator [FIL_35] (rows=231000 width=1436)
+                                            predicate:((i_category) IN ('Jewelry', 'Sports', 'Books') and 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_id","i_item_desc","i_current_price","i_class","i_category"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query21.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query21.q.out b/ql/src/test/results/clientpositive/perf/query21.q.out
index 2634d3d..cbd1177 100644
--- a/ql/src/test/results/clientpositive/perf/query21.q.out
+++ b/ql/src/test/results/clientpositive/perf/query21.q.out
@@ -62,140 +62,74 @@ Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 6
-         File Output Operator [FS_31]
-            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_30]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_29]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3"]
-               |  Statistics:Num rows: 69877 Data size: 100362804 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 5 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_28]
-                     key expressions:_col0 (type: string), _col1 (type: string)
-                     sort order:++
-                     Statistics:Num rows: 69877 Data size: 100362804 Basic stats: COMPLETE Column stats: NONE
-                     value expressions:_col2 (type: bigint), _col3 (type: bigint)
-                     Filter Operator [FIL_26]
-                        predicate:CASE WHEN ((_col2 > 0)) THEN ((UDFToDouble(_col3) / UDFToDouble(_col2))) ELSE (null) END BETWEEN 0.6666666666666666 AND 1.5 (type: boolean)
-                        Statistics:Num rows: 69877 Data size: 100362804 Basic stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_25]
-                        |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"]
-                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string)
-                        |  outputColumnNames:["_col0","_col1","_col2","_col3"]
-                        |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 4 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_24]
-                              key expressions:_col0 (type: string), _col1 (type: string)
-                              Map-reduce partition columns:_col0 (type: string), _col1 (type: string)
-                              sort order:++
-                              Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col2 (type: bigint), _col3 (type: bigint)
-                              Group By Operator [GBY_23]
-                                 aggregations:["sum(_col2)","sum(_col3)"]
-                                 keys:_col0 (type: string), _col1 (type: string)
-                                 outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                 Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_21]
-                                    outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                    Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_47]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                    |  outputColumnNames:["_col3","_col5","_col7","_col10"]
-                                    |  Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Map 9 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_19]
-                                    |     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
-                                    |     value expressions:_col1 (type: string)
-                                    |     Select Operator [SEL_11]
-                                    |        outputColumnNames:["_col0","_col1"]
-                                    |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_44]
-                                    |           predicate:(d_date BETWEEN '1998-03-09' AND '1998-05-07' 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:date_dim
-                                    |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 3 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_18]
-                                          key expressions:_col0 (type: int)
-                                          Map-reduce partition columns:_col0 (type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col3 (type: int), _col5 (type: string), _col7 (type: string)
-                                          Merge Join Operator [MERGEJOIN_46]
-                                          |  condition map:[{"":"Inner Join 0 to 1"}]
-                                          |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                          |  outputColumnNames:["_col0","_col3","_col5","_col7"]
-                                          |  Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 8 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_16]
-                                          |     key expressions:_col0 (type: int)
-                                          |     Map-reduce partition columns:_col0 (type: int)
-                                          |     sort order:+
-                                          |     Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                          |     value expressions:_col1 (type: string)
-                                          |     Select Operator [SEL_8]
-                                          |        outputColumnNames:["_col0","_col1"]
-                                          |        Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_43]
-                                          |           predicate:(i_current_price BETWEEN 0.99 AND 1.49 and i_item_sk is not null) (type: boolean)
-                                          |           Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_6]
-                                          |              alias:item
-                                          |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 2 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_15]
-                                                key expressions:_col1 (type: int)
-                                                Map-reduce partition columns:_col1 (type: int)
-                                                sort order:+
-                                                Statistics:Num rows: 29 Data size: 30582 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col0 (type: int), _col3 (type: int), _col5 (type: string)
-                                                Merge Join Operator [MERGEJOIN_45]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col0","_col1","_col3","_col5"]
-                                                |  Statistics:Num rows: 29 Data size: 30582 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Map 1 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator [RS_12]
-                                                |     key expressions:_col2 (type: int)
-                                                |     Map-reduce partition columns:_col2 (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)
-                                                |     Select Operator [SEL_2]
-                                                |        outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                                |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |        Filter Operator [FIL_41]
-                                                |           predicate:((inv_warehouse_sk is not null and inv_item_sk is not null) and inv_date_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |           TableScan [TS_0]
-                                                |              alias:inventory
-                                                |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |<-Map 7 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_13]
-                                                      key expressions:_col0 (type: int)
-                                                      Map-reduce partition columns:_col0 (type: int)
-                                                      sort order:+
-                                                      Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                                      value expressions:_col1 (type: string)
-                                                      Select Operator [SEL_5]
-                                                         outputColumnNames:["_col0","_col1"]
-                                                         Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                                         Filter Operator [FIL_42]
-                                                            predicate:w_warehouse_sk is not null (type: boolean)
-                                                            Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                                            TableScan [TS_3]
-                                                               alias:warehouse
-                                                               Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
+  Fetch Operator
+    limit:100
+    Stage-1
+      Reducer 6
+      File Output Operator [FS_31]
+        Limit [LIM_30] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_29] (rows=69877 width=1436)
+            Output:["_col0","_col1","_col2","_col3"]
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_28]
+              Filter Operator [FIL_26] (rows=69877 width=1436)
+                predicate:CASE WHEN ((_col2 > 0)) THEN ((UDFToDouble(_col3) / UDFToDouble(_col2))) ELSE (null) END BETWEEN 0.6666666666666666 AND 1.5
+                Group By Operator [GBY_25] (rows=139755 width=1436)
+                  Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(VALUE._col0)","sum(VALUE._col1)"],keys:KEY._col0, KEY._col1
+                <-Reducer 4 [SIMPLE_EDGE]
+                  SHUFFLE [RS_24]
+                    PartitionCols:_col0, _col1
+                    Group By Operator [GBY_23] (rows=279510 width=1436)
+                      Output:["_col0","_col1","_col2","_col3"],aggregations:["sum(_col2)","sum(_col3)"],keys:_col0, _col1
+                      Select Operator [SEL_21] (rows=279510 width=1436)
+                        Output:["_col0","_col1","_col2","_col3"]
+                        Merge Join Operator [MERGEJOIN_47] (rows=279510 width=1436)
+                          Conds:RS_18._col0=RS_19._col0(Inner),Output:["_col3","_col5","_col7","_col10"]
+                        <-Map 9 [SIMPLE_EDGE]
+                          SHUFFLE [RS_19]
+                            PartitionCols:_col0
+                            Select Operator [SEL_11] (rows=36524 width=1119)
+                              Output:["_col0","_col1"]
+                              Filter Operator [FIL_44] (rows=36524 width=1119)
+                                predicate:(d_date BETWEEN '1998-03-09' AND '1998-05-07' 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_date"]
+                        <-Reducer 3 [SIMPLE_EDGE]
+                          SHUFFLE [RS_18]
+                            PartitionCols:_col0
+                            Merge Join Operator [MERGEJOIN_46] (rows=254100 width=1436)
+                              Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col0","_col3","_col5","_col7"]
+                            <-Map 8 [SIMPLE_EDGE]
+                              SHUFFLE [RS_16]
+                                PartitionCols:_col0
+                                Select Operator [SEL_8] (rows=231000 width=1436)
+                                  Output:["_col0","_col1"]
+                                  Filter Operator [FIL_43] (rows=231000 width=1436)
+                                    predicate:(i_current_price BETWEEN 0.99 AND 1.49 and i_item_sk is not null)
+                                    TableScan [TS_6] (rows=462000 width=1436)
+                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_item_id","i_current_price"]
+                            <-Reducer 2 [SIMPLE_EDGE]
+                              SHUFFLE [RS_15]
+                                PartitionCols:_col1
+                                Merge Join Operator [MERGEJOIN_45] (rows=29 width=1054)
+                                  Conds:RS_12._col2=RS_13._col0(Inner),Output:["_col0","_col1","_col3","_col5"]
+                                <-Map 1 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_12]
+                                    PartitionCols:_col2
+                                    Select Operator [SEL_2] (rows=1 width=0)
+                                      Output:["_col0","_col1","_col2","_col3"]
+                                      Filter Operator [FIL_41] (rows=1 width=0)
+                                        predicate:((inv_warehouse_sk is not null and inv_item_sk is not null) and inv_date_sk is not null)
+                                        TableScan [TS_0] (rows=1 width=0)
+                                          default@inventory,inventory,Tbl:PARTIAL,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
+                                <-Map 7 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_13]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_5] (rows=27 width=1029)
+                                      Output:["_col0","_col1"]
+                                      Filter Operator [FIL_42] (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"]
 

http://git-wip-us.apache.org/repos/asf/hive/blob/be9735e1/ql/src/test/results/clientpositive/perf/query22.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query22.q.out b/ql/src/test/results/clientpositive/perf/query22.q.out
index 72935ed..7ee3423 100644
--- a/ql/src/test/results/clientpositive/perf/query22.q.out
+++ b/ql/src/test/results/clientpositive/perf/query22.q.out
@@ -12,137 +12,74 @@ Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
 Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
 
 Stage-0
-   Fetch Operator
-      limit:100
-      Stage-1
-         Reducer 6
-         File Output Operator [FS_30]
-            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_29]
-               Number of rows:100
-               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
-               Select Operator [SEL_28]
-               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-               |  Statistics:Num rows: 1397550 Data size: 2007270467 Basic stats: COMPLETE Column stats: NONE
-               |<-Reducer 5 [SIMPLE_EDGE]
-                  Reduce Output Operator [RS_27]
-                     key expressions:_col4 (type: double), _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
-                     sort order:+++++
-                     Statistics:Num rows: 1397550 Data size: 2007270467 Basic stats: COMPLETE Column stats: NONE
-                     Select Operator [SEL_25]
-                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                        Statistics:Num rows: 1397550 Data size: 2007270467 Basic stats: COMPLETE Column stats: NONE
-                        Group By Operator [GBY_24]
-                        |  aggregations:["avg(VALUE._col0)"]
-                        |  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"]
-                        |  Statistics:Num rows: 1397550 Data size: 2007270467 Basic stats: COMPLETE Column stats: NONE
-                        |<-Reducer 4 [SIMPLE_EDGE]
-                           Reduce Output Operator [RS_23]
-                              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: 2795100 Data size: 4014540935 Basic stats: COMPLETE Column stats: NONE
-                              value expressions:_col5 (type: struct<count:bigint,sum:double,input:int>)
-                              Group By Operator [GBY_22]
-                                 aggregations:["avg(_col3)"]
-                                 keys:_col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string), '0' (type: string)
-                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
-                                 Statistics:Num rows: 2795100 Data size: 4014540935 Basic stats: COMPLETE Column stats: NONE
-                                 Select Operator [SEL_21]
-                                    outputColumnNames:["_col7","_col8","_col9","_col10","_col3"]
-                                    Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
-                                    Merge Join Operator [MERGEJOIN_46]
-                                    |  condition map:[{"":"Inner Join 0 to 1"}]
-                                    |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
-                                    |  outputColumnNames:["_col3","_col7","_col8","_col9","_col10"]
-                                    |  Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Map 9 [SIMPLE_EDGE]
-                                    |  Reduce Output Operator [RS_19]
-                                    |     key expressions:_col0 (type: int)
-                                    |     Map-reduce partition columns:_col0 (type: int)
-                                    |     sort order:+
-                                    |     Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                    |     Select Operator [SEL_11]
-                                    |        outputColumnNames:["_col0"]
-                                    |        Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                    |        Filter Operator [FIL_43]
-                                    |           predicate:w_warehouse_sk is not null (type: boolean)
-                                    |           Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                    |           TableScan [TS_9]
-                                    |              alias:warehouse
-                                    |              Statistics:Num rows: 27 Data size: 27802 Basic stats: COMPLETE Column stats: NONE
-                                    |<-Reducer 3 [SIMPLE_EDGE]
-                                       Reduce Output Operator [RS_18]
-                                          key expressions:_col2 (type: int)
-                                          Map-reduce partition columns:_col2 (type: int)
-                                          sort order:+
-                                          Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                          value expressions:_col3 (type: int), _col7 (type: string), _col8 (type: string), _col9 (type: string), _col10 (type: string)
-                                          Merge Join Operator [MERGEJOIN_45]
-                                          |  condition map:[{"":"Inner Join 0 to 1"}]
-                                          |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
-                                          |  outputColumnNames:["_col2","_col3","_col7","_col8","_col9","_col10"]
-                                          |  Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Map 8 [SIMPLE_EDGE]
-                                          |  Reduce Output Operator [RS_16]
-                                          |     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), _col3 (type: string), _col4 (type: string)
-                                          |     Select Operator [SEL_8]
-                                          |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
-                                          |        Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                          |        Filter Operator [FIL_42]
-                                          |           predicate:i_item_sk is not null (type: boolean)
-                                          |           Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                          |           TableScan [TS_6]
-                                          |              alias:item
-                                          |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
-                                          |<-Reducer 2 [SIMPLE_EDGE]
-                                             Reduce Output Operator [RS_15]
-                                                key expressions:_col1 (type: int)
-                                                Map-reduce partition columns:_col1 (type: int)
-                                                sort order:+
-                                                Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                value expressions:_col2 (type: int), _col3 (type: int)
-                                                Merge Join Operator [MERGEJOIN_44]
-                                                |  condition map:[{"":"Inner Join 0 to 1"}]
-                                                |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
-                                                |  outputColumnNames:["_col1","_col2","_col3"]
-                                                |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
-                                                |<-Map 1 [SIMPLE_EDGE]
-                                                |  Reduce Output Operator [RS_12]
-                                                |     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)
-                                                |     Select Operator [SEL_2]
-                                                |        outputColumnNames:["_col0","_col1","_col2","_col3"]
-                                                |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |        Filter Operator [FIL_40]
-                                                |           predicate:((inv_date_sk is not null and inv_item_sk is not null) and inv_warehouse_sk is not null) (type: boolean)
-                                                |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |           TableScan [TS_0]
-                                                |              alias:inventory
-                                                |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
-                                                |<-Map 7 [SIMPLE_EDGE]
-                                                   Reduce Output Operator [RS_13]
-                                                      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_41]
-                                                            predicate:(d_month_seq BETWEEN 1193 AND 1204 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 6
+      File Output Operator [FS_30]
+        Limit [LIM_29] (rows=100 width=1436)
+          Number of rows:100
+          Select Operator [SEL_28] (rows=1397550 width=1436)
+            Output:["_col0","_col1","_col2","_col3","_col4"]
+          <-Reducer 5 [SIMPLE_EDGE]
+            SHUFFLE [RS_27]
+              Select Operator [SEL_25] (rows=1397550 width=1436)
+                Output:["_col0","_col1","_col2","_col3","_col4"]
+                Group By Operator [GBY_24] (rows=1397550 width=1436)
+                  Output:["_col0","_col1","_col2","_col3","_col5"],aggregations:["avg(VALUE._col0)"],keys:KEY._col0, KEY._col1, KEY._col2, KEY._col3, KEY._col4
+                <-Reducer 4 [SIMPLE_EDGE]
+                  SHUFFLE [RS_23]
+                    PartitionCols:_col0, _col1, _col2, _col3, _col4
+                    Group By Operator [GBY_22] (rows=2795100 width=1436)
+                      Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["avg(_col3)"],keys:_col7, _col8, _col9, _col10, '0'
+                      Select Operator [SEL_21] (rows=559020 width=1436)
+                        Output:["_col7","_col8","_col9","_col10","_col3"]
+                        Merge Join Operator [MERGEJOIN_46] (rows=559020 width=1436)
+                          Conds:RS_18._col2=RS_19._col0(Inner),Output:["_col3","_col7","_col8","_col9","_col10"]
+                        <-Map 9 [SIMPLE_EDGE]
+                          SHUFFLE [RS_19]
+                            PartitionCols:_col0
+                            Select Operator [SEL_11] (rows=27 width=1029)
+                              Output:["_col0"]
+                              Filter Operator [FIL_43] (rows=27 width=1029)
+                                predicate:w_warehouse_sk is not null
+                                TableScan [TS_9] (rows=27 width=1029)
+                                  default@warehouse,warehouse,Tbl:COMPLETE,Col:NONE,Output:["w_warehouse_sk"]
+                        <-Reducer 3 [SIMPLE_EDGE]
+                          SHUFFLE [RS_18]
+                            PartitionCols:_col2
+                            Merge Join Operator [MERGEJOIN_45] (rows=508200 width=1436)
+                              Conds:RS_15._col1=RS_16._col0(Inner),Output:["_col2","_col3","_col7","_col8","_col9","_col10"]
+                            <-Map 8 [SIMPLE_EDGE]
+                              SHUFFLE [RS_16]
+                                PartitionCols:_col0
+                                Select Operator [SEL_8] (rows=462000 width=1436)
+                                  Output:["_col0","_col1","_col2","_col3","_col4"]
+                                  Filter Operator [FIL_42] (rows=462000 width=1436)
+                                    predicate:i_item_sk is not null
+                                    TableScan [TS_6] (rows=462000 width=1436)
+                                      default@item,item,Tbl:COMPLETE,Col:NONE,Output:["i_item_sk","i_brand","i_class","i_category","i_product_name"]
+                            <-Reducer 2 [SIMPLE_EDGE]
+                              SHUFFLE [RS_15]
+                                PartitionCols:_col1
+                                Merge Join Operator [MERGEJOIN_44] (rows=40176 width=1119)
+                                  Conds:RS_12._col0=RS_13._col0(Inner),Output:["_col1","_col2","_col3"]
+                                <-Map 1 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_12]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_2] (rows=1 width=0)
+                                      Output:["_col0","_col1","_col2","_col3"]
+                                      Filter Operator [FIL_40] (rows=1 width=0)
+                                        predicate:((inv_date_sk is not null and inv_item_sk is not null) and inv_warehouse_sk is not null)
+                                        TableScan [TS_0] (rows=1 width=0)
+                                          default@inventory,inventory,Tbl:PARTIAL,Col:NONE,Output:["inv_date_sk","inv_item_sk","inv_warehouse_sk","inv_quantity_on_hand"]
+                                <-Map 7 [SIMPLE_EDGE]
+                                  SHUFFLE [RS_13]
+                                    PartitionCols:_col0
+                                    Select Operator [SEL_5] (rows=36524 width=1119)
+                                      Output:["_col0"]
+                                      Filter Operator [FIL_41] (rows=36524 width=1119)
+                                        predicate:(d_month_seq BETWEEN 1193 AND 1204 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"]
 


Mime
View raw message