hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From harisan...@apache.org
Subject [24/27] hive git commit: HIVE-11107 : Support for Performance regression test suite with TPCDS (Hari Subramaniyan, reviewed by Ashutosh Chauhan)
Date Tue, 15 Dec 2015 22:15:51 GMT
http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/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
new file mode 100644
index 0000000..551ab62
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query17.q.out
@@ -0,0 +1,264 @@
+PREHOOK: query: explain select i_item_id ,i_item_desc ,s_state ,count(ss_quantity) as store_sales_quantitycount ,avg(ss_quantity) as store_sales_quantityave ,stddev_samp(ss_quantity) as store_sales_quantitystdev ,stddev_samp(ss_quantity)/avg(ss_quantity) as store_sales_quantitycov ,count(sr_return_quantity) as_store_returns_quantitycount ,avg(sr_return_quantity) as_store_returns_quantityave ,stddev_samp(sr_return_quantity) as_store_returns_quantitystdev ,stddev_samp(sr_return_quantity)/avg(sr_return_quantity) as store_returns_quantitycov ,count(cs_quantity) as catalog_sales_quantitycount ,avg(cs_quantity) as catalog_sales_quantityave ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitystdev ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitycov from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_quarter_name = '2000Q1' and d1.d_date_sk = store_sales.ss_sold_date_sk and item.i_item_sk = store_s
 ales.ss_item_sk and store.s_store_sk = store_sales.ss_store_sk and store_sales.ss_customer_sk = store_returns.sr_customer_sk and store_sales.ss_item_sk = store_returns.sr_item_sk and store_sales.ss_ticket_number = store_returns.sr_ticket_number and store_returns.sr_returned_date_sk = d2.d_date_sk and d2.d_quarter_name in ('2000Q1','2000Q2','2000Q3') and store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk and store_returns.sr_item_sk = catalog_sales.cs_item_sk and catalog_sales.cs_sold_date_sk = d3.d_date_sk and d3.d_quarter_name in ('2000Q1','2000Q2','2000Q3') group by i_item_id ,i_item_desc ,s_state order by i_item_id ,i_item_desc ,s_state limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id ,i_item_desc ,s_state ,count(ss_quantity) as store_sales_quantitycount ,avg(ss_quantity) as store_sales_quantityave ,stddev_samp(ss_quantity) as store_sales_quantitystdev ,stddev_samp(ss_quantity)/avg(ss_quantity) as store_sales_quantitycov ,count(sr_return_quantity) as_store_returns_quantitycount ,avg(sr_return_quantity) as_store_returns_quantityave ,stddev_samp(sr_return_quantity) as_store_returns_quantitystdev ,stddev_samp(sr_return_quantity)/avg(sr_return_quantity) as store_returns_quantitycov ,count(cs_quantity) as catalog_sales_quantitycount ,avg(cs_quantity) as catalog_sales_quantityave ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitystdev ,stddev_samp(cs_quantity)/avg(cs_quantity) as catalog_sales_quantitycov from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_quarter_name = '2000Q1' and d1.d_date_sk = store_sales.ss_sold_date_sk and item.i_item_sk = store_
 sales.ss_item_sk and store.s_store_sk = store_sales.ss_store_sk and store_sales.ss_customer_sk = store_returns.sr_customer_sk and store_sales.ss_item_sk = store_returns.sr_item_sk and store_sales.ss_ticket_number = store_returns.sr_ticket_number and store_returns.sr_returned_date_sk = d2.d_date_sk and d2.d_quarter_name in ('2000Q1','2000Q2','2000Q3') and store_returns.sr_customer_sk = catalog_sales.cs_bill_customer_sk and store_returns.sr_item_sk = catalog_sales.cs_item_sk and catalog_sales.cs_sold_date_sk = d3.d_date_sk and d3.d_quarter_name in ('2000Q1','2000Q2','2000Q3') group by i_item_id ,i_item_desc ,s_state order by i_item_id ,i_item_desc ,s_state limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 11 (SIMPLE_EDGE)
+Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 13 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 14 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Map 15 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Map 16 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
+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_68]
+            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_67]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_66]
+               |  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_65]
+                     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_63]
+                        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_62]
+                        |  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_61]
+                              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_60]
+                                 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_59]
+                                    outputColumnNames:["_col22","_col24","_col25","_col5","_col10","_col14"]
+                                    Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                    Merge Join Operator [MERGEJOIN_118]
+                                    |  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_57]
+                                    |     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_111]
+                                    |           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_55]
+                                          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_117]
+                                          |  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_52]
+                                          |     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_110]
+                                          |           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_50]
+                                                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_116]
+                                                |  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_47]
+                                                |     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_109]
+                                                |           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_45]
+                                                      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_115]
+                                                      |  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_42]
+                                                      |     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_108]
+                                                      |           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_40]
+                                                            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_114]
+                                                            |  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_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_11]
+                                                            |        outputColumnNames:["_col0"]
+                                                            |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                                            |        Filter Operator [FIL_107]
+                                                            |           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_35]
+                                                                  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_113]
+                                                                  |  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_32]
+                                                                  |     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_106]
+                                                                  |           predicate:((cs_item_sk is not null and cs_bill_customer_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_30]
+                                                                        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_112]
+                                                                        |  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_25]
+                                                                        |     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_104]
+                                                                        |           predicate:((((ss_ticket_number is not null and ss_customer_sk is not null) and ss_item_sk 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_27]
+                                                                              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_105]
+                                                                                    predicate:(((sr_ticket_number is not null and sr_customer_sk is not null) and sr_item_sk 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
+

http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/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
new file mode 100644
index 0000000..4960466
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query18.q.out
@@ -0,0 +1,236 @@
+PREHOOK: query: explain select i_item_id, ca_country, ca_state, ca_county, avg( cast(cs_quantity as decimal(12,2))) agg1, avg( cast(cs_list_price as decimal(12,2))) agg2, avg( cast(cs_coupon_amt as decimal(12,2))) agg3, avg( cast(cs_sales_price as decimal(12,2))) agg4, avg( cast(cs_net_profit as decimal(12,2))) agg5, avg( cast(c_birth_year as decimal(12,2))) agg6, avg( cast(cd1.cd_dep_count as decimal(12,2))) agg7 from catalog_sales, date_dim, customer_demographics cd1, item, customer, customer_address, customer_demographics cd2 where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_item_sk = item.i_item_sk and catalog_sales.cs_bill_cdemo_sk = cd1.cd_demo_sk and catalog_sales.cs_bill_customer_sk = customer.c_customer_sk and cd1.cd_gender = 'M' and cd1.cd_education_status = 'College' and customer.c_current_cdemo_sk = cd2.cd_demo_sk and customer.c_current_addr_sk = customer_address.ca_address_sk and c_birth_month in (9,5,12,4,1,10) and d_year = 2001 and ca_state
  in ('ND','WI','AL' ,'NC','OK','MS','TN') group by i_item_id, ca_country, ca_state, ca_county with rollup order by ca_country, ca_state, ca_county, i_item_id limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id, ca_country, ca_state, ca_county, avg( cast(cs_quantity as decimal(12,2))) agg1, avg( cast(cs_list_price as decimal(12,2))) agg2, avg( cast(cs_coupon_amt as decimal(12,2))) agg3, avg( cast(cs_sales_price as decimal(12,2))) agg4, avg( cast(cs_net_profit as decimal(12,2))) agg5, avg( cast(c_birth_year as decimal(12,2))) agg6, avg( cast(cd1.cd_dep_count as decimal(12,2))) agg7 from catalog_sales, date_dim, customer_demographics cd1, item, customer, customer_address, customer_demographics cd2 where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_item_sk = item.i_item_sk and catalog_sales.cs_bill_cdemo_sk = cd1.cd_demo_sk and catalog_sales.cs_bill_customer_sk = customer.c_customer_sk and cd1.cd_gender = 'M' and cd1.cd_education_status = 'College' and customer.c_current_cdemo_sk = cd2.cd_demo_sk and customer.c_current_addr_sk = customer_address.ca_address_sk and c_birth_month in (9,5,12,4,1,10) and d_year = 2001 and ca_stat
 e in ('ND','WI','AL' ,'NC','OK','MS','TN') group by i_item_id, ca_country, ca_state, ca_county with rollup order by ca_country, ca_state, ca_county, i_item_id limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 10 (SIMPLE_EDGE)
+Reducer 3 <- Map 11 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 12 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 13 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Map 14 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Map 15 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
+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_60]
+            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_59]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_58]
+               |  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_57]
+                     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_56]
+                        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_55]
+                        |  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_54]
+                              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_53]
+                                 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_51]
+                                    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_100]
+                                    |  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_49]
+                                    |     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_94]
+                                    |           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_47]
+                                          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_99]
+                                          |  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_44]
+                                          |     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_93]
+                                          |           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_42]
+                                                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_98]
+                                                |  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_39]
+                                                |     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_92]
+                                                |           predicate:(((c_customer_sk is not null and (c_birth_month) IN (9, 5, 12, 4, 1, 10)) 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_37]
+                                                      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_97]
+                                                      |  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_34]
+                                                      |     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_91]
+                                                      |           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_32]
+                                                            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_96]
+                                                            |  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_29]
+                                                            |     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_90]
+                                                            |           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_27]
+                                                                  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_95]
+                                                                  |  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_22]
+                                                                  |     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_88]
+                                                                  |           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_24]
+                                                                        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_89]
+                                                                              predicate:(d_date_sk is not null and (d_year = 2001)) (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
+

http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/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
new file mode 100644
index 0000000..bf8dd21
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query19.q.out
@@ -0,0 +1,207 @@
+PREHOOK: query: explain select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item,customer,customer_address,store where date_dim.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and i_manager_id=7 and d_moy=11 and d_year=1999 and store_sales.ss_customer_sk = customer.c_customer_sk and customer.c_current_addr_sk = customer_address.ca_address_sk and substr(ca_zip,1,5) <> substr(s_zip,1,5) and store_sales.ss_store_sk = store.s_store_sk group by i_brand ,i_brand_id ,i_manufact_id ,i_manufact order by ext_price desc ,i_brand ,i_brand_id ,i_manufact_id ,i_manufact limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_brand_id brand_id, i_brand brand, i_manufact_id, i_manufact, sum(ss_ext_sales_price) ext_price from date_dim, store_sales, item,customer,customer_address,store where date_dim.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and i_manager_id=7 and d_moy=11 and d_year=1999 and store_sales.ss_customer_sk = customer.c_customer_sk and customer.c_current_addr_sk = customer_address.ca_address_sk and substr(ca_zip,1,5) <> substr(s_zip,1,5) and store_sales.ss_store_sk = store.s_store_sk group by i_brand ,i_brand_id ,i_manufact_id ,i_manufact order by ext_price desc ,i_brand ,i_brand_id ,i_manufact_id ,i_manufact limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 9 (SIMPLE_EDGE)
+Reducer 3 <- Map 10 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 12 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Map 13 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+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_53]
+            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_52]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 86000 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_51]
+               |  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_50]
+                     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_47]
+                     |  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_46]
+                           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_45]
+                              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_44]
+                                 outputColumnNames:["_col9","_col10","_col11","_col12","_col7"]
+                                 Statistics:Num rows: 106480005 Data size: 91574956652 Basic stats: COMPLETE Column stats: NONE
+                                 Filter Operator [FIL_74]
+                                    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_85]
+                                    |  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_41]
+                                    |     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_80]
+                                    |           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_39]
+                                          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_84]
+                                          |  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_36]
+                                          |     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_79]
+                                          |           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_34]
+                                                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_83]
+                                                |  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_31]
+                                                |     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_78]
+                                                |           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_29]
+                                                      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_82]
+                                                      |  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_26]
+                                                      |     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_77]
+                                                      |           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_24]
+                                                            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_81]
+                                                            |  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_19]
+                                                            |     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_75]
+                                                            |           predicate:(((d_moy = 11) and d_date_sk is not null) and (d_year = 1999)) (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_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: 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_76]
+                                                                        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
+


Mime
View raw message