You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2015/12/15 23:15:48 UTC

[21/27] hive git commit: HIVE-11107 : Support for Performance regression test suite with TPCDS (Hari Subramaniyan, reviewed by Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/ql/src/test/results/clientpositive/perf/query29.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query29.q.out b/ql/src/test/results/clientpositive/perf/query29.q.out
new file mode 100644
index 0000000..e3d2e39
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query29.q.out
@@ -0,0 +1,264 @@
+PREHOOK: query: explain select i_item_id ,i_item_desc ,s_store_id ,s_store_name ,sum(ss_quantity) as store_sales_quantity ,sum(sr_return_quantity) as store_returns_quantity ,sum(cs_quantity) as catalog_sales_quantity from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_moy = 2 and d1.d_year = 2000 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_moy between 2 and 2 + 3 and d2.d_year = 2000 and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_year in (2000,2000+1,2000+2) group by i_item_id ,i_item_desc ,s_store_id ,s_store_name order by i_item_id ,i_item_desc ,s_store_id ,s_store_name limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id ,i_item_desc ,s_store_id ,s_store_name ,sum(ss_quantity) as store_sales_quantity ,sum(sr_return_quantity) as store_returns_quantity ,sum(cs_quantity) as catalog_sales_quantity from store_sales ,store_returns ,catalog_sales ,date_dim d1 ,date_dim d2 ,date_dim d3 ,store ,item where d1.d_moy = 2 and d1.d_year = 2000 and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_moy between 2 and 2 + 3 and d2.d_year = 2000 and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_year in (2000,2000+1,2000+2) group by i_item_id ,i_item_desc ,s_store_id ,s_store_name order by i_item_id ,i_item_desc ,s_store_id ,s_store_name 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_67]
+            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_66]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_65]
+               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+               |  Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 9 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_64]
+                     key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
+                     sort order:++++
+                     Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint)
+                     Select Operator [SEL_63]
+                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                        Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+                        Group By Operator [GBY_62]
+                        |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
+                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: string), KEY._col3 (type: string)
+                        |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                        |  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), _col3 (type: string)
+                              Map-reduce partition columns:_col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
+                              sort order:++++
+                              Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                              value expressions:_col4 (type: bigint), _col5 (type: bigint), _col6 (type: bigint)
+                              Group By Operator [GBY_60]
+                                 aggregations:["sum(_col5)","sum(_col10)","sum(_col14)"]
+                                 keys:_col24 (type: string), _col25 (type: string), _col27 (type: string), _col28 (type: string)
+                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                                 Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                 Select Operator [SEL_59]
+                                    outputColumnNames:["_col24","_col25","_col27","_col28","_col5","_col10","_col14"]
+                                    Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                    Merge Join Operator [MERGEJOIN_117]
+                                    |  condition map:[{"":"Inner Join 0 to 1"}]
+                                    |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                                    |  outputColumnNames:["_col5","_col10","_col14","_col24","_col25","_col27","_col28"]
+                                    |  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_110]
+                                    |           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: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
+                                          value expressions:_col5 (type: int), _col10 (type: int), _col14 (type: int), _col24 (type: string), _col25 (type: string)
+                                          Merge Join Operator [MERGEJOIN_116]
+                                          |  condition map:[{"":"Inner Join 0 to 1"}]
+                                          |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                                          |  outputColumnNames:["_col1","_col5","_col10","_col14","_col24","_col25"]
+                                          |  Statistics:Num rows: 44193 Data size: 49453132 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), _col2 (type: string)
+                                          |     Select Operator [SEL_20]
+                                          |        outputColumnNames:["_col0","_col1","_col2"]
+                                          |        Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
+                                          |        Filter Operator [FIL_109]
+                                          |           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: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                                value expressions:_col1 (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":"_col11 (type: int)","1":"_col0 (type: int)"}
+                                                |  outputColumnNames:["_col1","_col3","_col5","_col10","_col14"]
+                                                |  Statistics:Num rows: 40176 Data size: 44957392 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_108]
+                                                |           predicate:((d_year) IN (2000, 2001, 2002) 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: 22096 Data size: 24726566 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_114]
+                                                      |  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: 22096 Data size: 24726566 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: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
+                                                      |     Select Operator [SEL_14]
+                                                      |        outputColumnNames:["_col0"]
+                                                      |        Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
+                                                      |        Filter Operator [FIL_107]
+                                                      |           predicate:((d_moy BETWEEN 2 AND 5 and (d_year = 2000)) and d_date_sk is not null) (type: boolean)
+                                                      |           Statistics:Num rows: 18262 Data size: 20435178 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: 20088 Data size: 22478696 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_113]
+                                                            |  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: 20088 Data size: 22478696 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: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
+                                                            |     Select Operator [SEL_11]
+                                                            |        outputColumnNames:["_col0"]
+                                                            |        Statistics:Num rows: 18262 Data size: 20435178 Basic stats: COMPLETE Column stats: NONE
+                                                            |        Filter Operator [FIL_106]
+                                                            |           predicate:(((d_year = 2000) and (d_moy = 2)) and d_date_sk is not null) (type: boolean)
+                                                            |           Statistics:Num rows: 18262 Data size: 20435178 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_112]
+                                                                  |  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_105]
+                                                                  |           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_111]
+                                                                        |  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_103]
+                                                                        |           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_104]
+                                                                                    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/query3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query3.q.out b/ql/src/test/results/clientpositive/perf/query3.q.out
new file mode 100644
index 0000000..aa73399
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query3.q.out
@@ -0,0 +1,119 @@
+PREHOOK: query: explain select dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand ,sum(ss_ext_sales_price) sum_agg from date_dim dt ,store_sales ,item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manufact_id = 436 and dt.d_moy=12 group by dt.d_year ,item.i_brand ,item.i_brand_id order by dt.d_year ,sum_agg desc ,brand_id limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select dt.d_year ,item.i_brand_id brand_id ,item.i_brand brand ,sum(ss_ext_sales_price) sum_agg from date_dim dt ,store_sales ,item where dt.d_date_sk = store_sales.ss_sold_date_sk and store_sales.ss_item_sk = item.i_item_sk and item.i_manufact_id = 436 and dt.d_moy=12 group by dt.d_year ,item.i_brand ,item.i_brand_id order by dt.d_year ,sum_agg desc ,brand_id limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 6 (SIMPLE_EDGE)
+Reducer 3 <- Map 7 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 4 (SIMPLE_EDGE)
+
+Stage-0
+   Fetch Operator
+      limit:100
+      Stage-1
+         Reducer 5
+         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"]
+               |  Statistics:Num rows: 127050 Data size: 182479129 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 4 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_25]
+                     key expressions:_col0 (type: int), _col3 (type: decimal(17,2)), _col1 (type: int)
+                     sort order:+-+
+                     Statistics:Num rows: 127050 Data size: 182479129 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col2 (type: string)
+                     Group By Operator [GBY_22]
+                     |  aggregations:["sum(VALUE._col0)"]
+                     |  keys:KEY._col0 (type: int), KEY._col1 (type: int), KEY._col2 (type: string)
+                     |  outputColumnNames:["_col0","_col1","_col2","_col3"]
+                     |  Statistics:Num rows: 127050 Data size: 182479129 Basic stats: COMPLETE Column stats: NONE
+                     |<-Reducer 3 [SIMPLE_EDGE]
+                        Reduce Output Operator [RS_21]
+                           key expressions:_col0 (type: int), _col1 (type: int), _col2 (type: string)
+                           Map-reduce partition columns:_col0 (type: int), _col1 (type: int), _col2 (type: string)
+                           sort order:+++
+                           Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
+                           value expressions:_col3 (type: decimal(17,2))
+                           Group By Operator [GBY_20]
+                              aggregations:["sum(_col5)"]
+                              keys:_col1 (type: int), _col7 (type: int), _col8 (type: string)
+                              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                              Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
+                              Select Operator [SEL_19]
+                                 outputColumnNames:["_col1","_col7","_col8","_col5"]
+                                 Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
+                                 Merge Join Operator [MERGEJOIN_38]
+                                 |  condition map:[{"":"Inner Join 0 to 1"}]
+                                 |  keys:{"0":"_col4 (type: int)","1":"_col0 (type: int)"}
+                                 |  outputColumnNames:["_col1","_col5","_col7","_col8"]
+                                 |  Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
+                                 |<-Map 7 [SIMPLE_EDGE]
+                                 |  Reduce Output Operator [RS_17]
+                                 |     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)
+                                 |     Select Operator [SEL_8]
+                                 |        outputColumnNames:["_col0","_col1","_col2"]
+                                 |        Statistics:Num rows: 231000 Data size: 331780228 Basic stats: COMPLETE Column stats: NONE
+                                 |        Filter Operator [FIL_36]
+                                 |           predicate:((i_manufact_id = 436) 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:_col4 (type: int)
+                                       Map-reduce partition columns:_col4 (type: int)
+                                       sort order:+
+                                       Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                       value expressions:_col1 (type: int), _col5 (type: decimal(7,2))
+                                       Merge Join Operator [MERGEJOIN_37]
+                                       |  condition map:[{"":"Inner Join 0 to 1"}]
+                                       |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                                       |  outputColumnNames:["_col1","_col4","_col5"]
+                                       |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Map 1 [SIMPLE_EDGE]
+                                       |  Reduce Output Operator [RS_10]
+                                       |     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: int)
+                                       |     Select Operator [SEL_2]
+                                       |        outputColumnNames:["_col0","_col1"]
+                                       |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                       |        Filter Operator [FIL_34]
+                                       |           predicate:((d_moy = 12) and d_date_sk is not null) (type: boolean)
+                                       |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                       |           TableScan [TS_0]
+                                       |              alias:dt
+                                       |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Map 6 [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: decimal(7,2))
+                                             Select Operator [SEL_5]
+                                                outputColumnNames:["_col0","_col1","_col2"]
+                                                Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                Filter Operator [FIL_35]
+                                                   predicate:(ss_sold_date_sk is not null and ss_item_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
+