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:33 UTC

[06/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/query80.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query80.q.out b/ql/src/test/results/clientpositive/perf/query80.q.out
new file mode 100644
index 0000000..953e61f
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query80.q.out
@@ -0,0 +1,602 @@
+PREHOOK: query: explain with ssr as (select s_store_id as store_id, sum(ss_ext_sales_price) as sales, sum(coalesce(sr_return_amt, 0)) as returns, sum(ss_net_profit - coalesce(sr_net_loss, 0)) as profit from store_sales left outer join store_returns on (ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number), date_dim, store, item, promotion where ss_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and ss_store_sk = s_store_sk and ss_item_sk = i_item_sk and i_current_price > 50 and ss_promo_sk = p_promo_sk and p_channel_tv = 'N' group by s_store_id) , csr as (select cp_catalog_page_id as catalog_page_id, sum(cs_ext_sales_price) as sales, sum(coalesce(cr_return_amount, 0)) as returns, sum(cs_net_profit - coalesce(cr_net_loss, 0)) as profit from catalog_sales left outer join catalog_returns on (cs_item_sk = cr_item_sk and cs_order_number = cr_order_number), date_dim, catalog_page, item, promotion where cs_sold_date_sk = d_
 date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and cs_catalog_page_sk = cp_catalog_page_sk and cs_item_sk = i_item_sk and i_current_price > 50 and cs_promo_sk = p_promo_sk and p_channel_tv = 'N' group by cp_catalog_page_id) , wsr as (select web_site_id, sum(ws_ext_sales_price) as sales, sum(coalesce(wr_return_amt, 0)) as returns, sum(ws_net_profit - coalesce(wr_net_loss, 0)) as profit from web_sales left outer join web_returns on (ws_item_sk = wr_item_sk and ws_order_number = wr_order_number), date_dim, web_site, item, promotion where ws_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and ws_web_site_sk = web_site_sk and ws_item_sk = i_item_sk and i_current_price > 50 and ws_promo_sk = p_promo_sk and p_channel_tv = 'N' group by web_site_id) select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , concat('store', 
 store_id) as id , sales , returns , profit from ssr union all select 'catalog channel' as channel , concat('catalog_page', catalog_page_id) as id , sales , returns , profit from csr union all select 'web channel' as channel , concat('web_site', web_site_id) as id , sales , returns , profit from wsr ) x group by channel, id with rollup order by channel ,id limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain with ssr as (select s_store_id as store_id, sum(ss_ext_sales_price) as sales, sum(coalesce(sr_return_amt, 0)) as returns, sum(ss_net_profit - coalesce(sr_net_loss, 0)) as profit from store_sales left outer join store_returns on (ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number), date_dim, store, item, promotion where ss_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and ss_store_sk = s_store_sk and ss_item_sk = i_item_sk and i_current_price > 50 and ss_promo_sk = p_promo_sk and p_channel_tv = 'N' group by s_store_id) , csr as (select cp_catalog_page_id as catalog_page_id, sum(cs_ext_sales_price) as sales, sum(coalesce(cr_return_amount, 0)) as returns, sum(cs_net_profit - coalesce(cr_net_loss, 0)) as profit from catalog_sales left outer join catalog_returns on (cs_item_sk = cr_item_sk and cs_order_number = cr_order_number), date_dim, catalog_page, item, promotion where cs_sold_date_sk = d
 _date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and cs_catalog_page_sk = cp_catalog_page_sk and cs_item_sk = i_item_sk and i_current_price > 50 and cs_promo_sk = p_promo_sk and p_channel_tv = 'N' group by cp_catalog_page_id) , wsr as (select web_site_id, sum(ws_ext_sales_price) as sales, sum(coalesce(wr_return_amt, 0)) as returns, sum(ws_net_profit - coalesce(wr_net_loss, 0)) as profit from web_sales left outer join web_returns on (ws_item_sk = wr_item_sk and ws_order_number = wr_order_number), date_dim, web_site, item, promotion where ws_sold_date_sk = d_date_sk and d_date between cast('1998-08-04' as date) and (cast('1998-09-04' as date)) and ws_web_site_sk = web_site_sk and ws_item_sk = i_item_sk and i_current_price > 50 and ws_promo_sk = p_promo_sk and p_channel_tv = 'N' group by web_site_id) select channel , id , sum(sales) as sales , sum(returns) as returns , sum(profit) as profit from (select 'store channel' as channel , concat('store',
  store_id) as id , sales , returns , profit from ssr union all select 'catalog channel' as channel , concat('catalog_page', catalog_page_id) as id , sales , returns , profit from csr union all select 'web channel' as channel , concat('web_site', web_site_id) as id , sales , returns , profit from wsr ) x group by channel, id with rollup order by channel ,id limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 10 <- Reducer 9 (SIMPLE_EDGE)
+Reducer 17 <- Map 16 (SIMPLE_EDGE), Map 23 (SIMPLE_EDGE)
+Reducer 18 <- Map 24 (SIMPLE_EDGE), Reducer 17 (SIMPLE_EDGE)
+Reducer 19 <- Map 25 (SIMPLE_EDGE), Reducer 18 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 11 (SIMPLE_EDGE)
+Reducer 20 <- Map 26 (SIMPLE_EDGE), Reducer 19 (SIMPLE_EDGE)
+Reducer 21 <- Map 27 (SIMPLE_EDGE), Reducer 20 (SIMPLE_EDGE)
+Reducer 22 <- Reducer 21 (SIMPLE_EDGE), Union 8 (CONTAINS)
+Reducer 29 <- Map 28 (SIMPLE_EDGE), Map 35 (SIMPLE_EDGE)
+Reducer 3 <- Map 12 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 30 <- Map 36 (SIMPLE_EDGE), Reducer 29 (SIMPLE_EDGE)
+Reducer 31 <- Map 37 (SIMPLE_EDGE), Reducer 30 (SIMPLE_EDGE)
+Reducer 32 <- Map 38 (SIMPLE_EDGE), Reducer 31 (SIMPLE_EDGE)
+Reducer 33 <- Map 39 (SIMPLE_EDGE), Reducer 32 (SIMPLE_EDGE)
+Reducer 34 <- Reducer 33 (SIMPLE_EDGE), Union 8 (CONTAINS)
+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 <- Reducer 6 (SIMPLE_EDGE), Union 8 (CONTAINS)
+Reducer 9 <- Union 8 (SIMPLE_EDGE)
+
+Stage-0
+   Fetch Operator
+      limit:100
+      Stage-1
+         Reducer 10
+         File Output Operator [FS_149]
+            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_148]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_147]
+               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+               |  Statistics:Num rows: 419265 Data size: 602181139 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 9 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_146]
+                     key expressions:_col0 (type: string), _col1 (type: string)
+                     sort order:++
+                     Statistics:Num rows: 419265 Data size: 602181139 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col2 (type: decimal(27,2)), _col3 (type: decimal(32,2)), _col4 (type: decimal(33,2))
+                     Select Operator [SEL_145]
+                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                        Statistics:Num rows: 419265 Data size: 602181139 Basic stats: COMPLETE Column stats: NONE
+                        Group By Operator [GBY_144]
+                        |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
+                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: string)
+                        |  outputColumnNames:["_col0","_col1","_col3","_col4","_col5"]
+                        |  Statistics:Num rows: 419265 Data size: 602181139 Basic stats: COMPLETE Column stats: NONE
+                        |<-Union 8 [SIMPLE_EDGE]
+                           |<-Reducer 22 [CONTAINS]
+                           |  Reduce Output Operator [RS_143]
+                           |     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: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                           |     value expressions:_col3 (type: decimal(27,2)), _col4 (type: decimal(32,2)), _col5 (type: decimal(33,2))
+                           |     Group By Operator [GBY_142]
+                           |        aggregations:["sum(_col2)","sum(_col3)","sum(_col4)"]
+                           |        keys:_col0 (type: string), _col1 (type: string), '0' (type: string)
+                           |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                           |        Statistics:Num rows: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                           |        Select Operator [SEL_91]
+                           |           outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                           |           Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                           |           Group By Operator [GBY_90]
+                           |           |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
+                           |           |  keys:KEY._col0 (type: string)
+                           |           |  outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |           |  Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                           |           |<-Reducer 21 [SIMPLE_EDGE]
+                           |              Reduce Output Operator [RS_89]
+                           |                 key expressions:_col0 (type: string)
+                           |                 Map-reduce partition columns:_col0 (type: string)
+                           |                 sort order:+
+                           |                 Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                 value expressions:_col1 (type: decimal(17,2)), _col2 (type: decimal(22,2)), _col3 (type: decimal(23,2))
+                           |                 Group By Operator [GBY_88]
+                           |                    aggregations:["sum(_col1)","sum(_col2)","sum(_col3)"]
+                           |                    keys:_col0 (type: string)
+                           |                    outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                    Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                    Select Operator [SEL_86]
+                           |                       outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                       Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                       Merge Join Operator [MERGEJOIN_234]
+                           |                       |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                       |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                           |                       |  outputColumnNames:["_col5","_col6","_col9","_col10","_col14"]
+                           |                       |  Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                       |<-Map 27 [SIMPLE_EDGE]
+                           |                       |  Reduce Output Operator [RS_84]
+                           |                       |     key expressions:_col0 (type: int)
+                           |                       |     Map-reduce partition columns:_col0 (type: int)
+                           |                       |     sort order:+
+                           |                       |     Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |     Select Operator [SEL_62]
+                           |                       |        outputColumnNames:["_col0"]
+                           |                       |        Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |        Filter Operator [FIL_218]
+                           |                       |           predicate:((p_channel_tv = 'N') and p_promo_sk is not null) (type: boolean)
+                           |                       |           Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |           TableScan [TS_60]
+                           |                       |              alias:promotion
+                           |                       |              Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                           |                       |<-Reducer 20 [SIMPLE_EDGE]
+                           |                          Reduce Output Operator [RS_82]
+                           |                             key expressions:_col3 (type: int)
+                           |                             Map-reduce partition columns:_col3 (type: int)
+                           |                             sort order:+
+                           |                             Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                           |                             value expressions:_col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                           |                             Merge Join Operator [MERGEJOIN_233]
+                           |                             |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                             |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
+                           |                             |  outputColumnNames:["_col3","_col5","_col6","_col9","_col10","_col14"]
+                           |                             |  Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                           |                             |<-Map 26 [SIMPLE_EDGE]
+                           |                             |  Reduce Output Operator [RS_79]
+                           |                             |     key expressions:_col0 (type: int)
+                           |                             |     Map-reduce partition columns:_col0 (type: int)
+                           |                             |     sort order:+
+                           |                             |     Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |     Select Operator [SEL_59]
+                           |                             |        outputColumnNames:["_col0"]
+                           |                             |        Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |        Filter Operator [FIL_217]
+                           |                             |           predicate:((i_current_price > 50) and i_item_sk is not null) (type: boolean)
+                           |                             |           Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |           TableScan [TS_57]
+                           |                             |              alias:item
+                           |                             |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                           |                             |<-Reducer 19 [SIMPLE_EDGE]
+                           |                                Reduce Output Operator [RS_77]
+                           |                                   key expressions:_col2 (type: int)
+                           |                                   Map-reduce partition columns:_col2 (type: int)
+                           |                                   sort order:+
+                           |                                   Statistics:Num rows: 50600 Data size: 23318689 Basic stats: COMPLETE Column stats: NONE
+                           |                                   value expressions:_col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                           |                                   Merge Join Operator [MERGEJOIN_232]
+                           |                                   |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                                   |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                           |                                   |  outputColumnNames:["_col2","_col3","_col5","_col6","_col9","_col10","_col14"]
+                           |                                   |  Statistics:Num rows: 50600 Data size: 23318689 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |<-Map 25 [SIMPLE_EDGE]
+                           |                                   |  Reduce Output Operator [RS_74]
+                           |                                   |     key expressions:_col0 (type: int)
+                           |                                   |     Map-reduce partition columns:_col0 (type: int)
+                           |                                   |     sort order:+
+                           |                                   |     Statistics:Num rows: 46000 Data size: 21198808 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |     value expressions:_col1 (type: string)
+                           |                                   |     Select Operator [SEL_56]
+                           |                                   |        outputColumnNames:["_col0","_col1"]
+                           |                                   |        Statistics:Num rows: 46000 Data size: 21198808 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |        Filter Operator [FIL_216]
+                           |                                   |           predicate:cp_catalog_page_sk is not null (type: boolean)
+                           |                                   |           Statistics:Num rows: 46000 Data size: 21198808 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |           TableScan [TS_54]
+                           |                                   |              alias:catalog_page
+                           |                                   |              Statistics:Num rows: 46000 Data size: 21198808 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |<-Reducer 18 [SIMPLE_EDGE]
+                           |                                      Reduce Output Operator [RS_72]
+                           |                                         key expressions:_col1 (type: int)
+                           |                                         Map-reduce partition columns:_col1 (type: int)
+                           |                                         sort order:+
+                           |                                         Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                           |                                         value expressions:_col2 (type: int), _col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                           |                                         Merge Join Operator [MERGEJOIN_231]
+                           |                                         |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                                         |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                           |                                         |  outputColumnNames:["_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                           |                                         |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |<-Map 24 [SIMPLE_EDGE]
+                           |                                         |  Reduce Output Operator [RS_69]
+                           |                                         |     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_53]
+                           |                                         |        outputColumnNames:["_col0"]
+                           |                                         |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |        Filter Operator [FIL_215]
+                           |                                         |           predicate:(d_date BETWEEN 1998-08-04 AND 1998-09-04 and d_date_sk is not null) (type: boolean)
+                           |                                         |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |           TableScan [TS_51]
+                           |                                         |              alias:date_dim
+                           |                                         |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |<-Reducer 17 [SIMPLE_EDGE]
+                           |                                            Reduce Output Operator [RS_67]
+                           |                                               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), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                           |                                               Merge Join Operator [MERGEJOIN_230]
+                           |                                               |  condition map:[{"":"Left Outer Join0 to 1"}]
+                           |                                               |  keys:{"0":"_col2 (type: int), _col4 (type: int)","1":"_col0 (type: int), _col1 (type: int)"}
+                           |                                               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                           |                                               |  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |<-Map 16 [SIMPLE_EDGE]
+                           |                                               |  Reduce Output Operator [RS_63]
+                           |                                               |     key expressions:_col2 (type: int), _col4 (type: int)
+                           |                                               |     Map-reduce partition columns:_col2 (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), _col1 (type: int), _col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2))
+                           |                                               |     Select Operator [SEL_48]
+                           |                                               |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                           |                                               |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |        Filter Operator [FIL_213]
+                           |                                               |           predicate:(((cs_sold_date_sk is not null and cs_catalog_page_sk is not null) and cs_item_sk is not null) and cs_promo_sk is not null) (type: boolean)
+                           |                                               |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |           TableScan [TS_46]
+                           |                                               |              alias:catalog_sales
+                           |                                               |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |<-Map 23 [SIMPLE_EDGE]
+                           |                                                  Reduce Output Operator [RS_64]
+                           |                                                     key expressions:_col0 (type: int), _col1 (type: int)
+                           |                                                     Map-reduce partition columns:_col0 (type: int), _col1 (type: int)
+                           |                                                     sort order:++
+                           |                                                     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                     value expressions:_col2 (type: decimal(7,2)), _col3 (type: decimal(7,2))
+                           |                                                     Select Operator [SEL_50]
+                           |                                                        outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                                                        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                        Filter Operator [FIL_214]
+                           |                                                           predicate:cr_item_sk is not null (type: boolean)
+                           |                                                           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                           TableScan [TS_49]
+                           |                                                              alias:catalog_returns
+                           |                                                              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |<-Reducer 34 [CONTAINS]
+                           |  Reduce Output Operator [RS_143]
+                           |     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: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                           |     value expressions:_col3 (type: decimal(27,2)), _col4 (type: decimal(32,2)), _col5 (type: decimal(33,2))
+                           |     Group By Operator [GBY_142]
+                           |        aggregations:["sum(_col2)","sum(_col3)","sum(_col4)"]
+                           |        keys:_col0 (type: string), _col1 (type: string), '0' (type: string)
+                           |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                           |        Statistics:Num rows: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                           |        Select Operator [SEL_139]
+                           |           outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                           |           Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                           |           Group By Operator [GBY_138]
+                           |           |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
+                           |           |  keys:KEY._col0 (type: string)
+                           |           |  outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |           |  Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                           |           |<-Reducer 33 [SIMPLE_EDGE]
+                           |              Reduce Output Operator [RS_137]
+                           |                 key expressions:_col0 (type: string)
+                           |                 Map-reduce partition columns:_col0 (type: string)
+                           |                 sort order:+
+                           |                 Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                 value expressions:_col1 (type: decimal(17,2)), _col2 (type: decimal(22,2)), _col3 (type: decimal(23,2))
+                           |                 Group By Operator [GBY_136]
+                           |                    aggregations:["sum(_col1)","sum(_col2)","sum(_col3)"]
+                           |                    keys:_col0 (type: string)
+                           |                    outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                    Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                    Select Operator [SEL_134]
+                           |                       outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                       Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                       Merge Join Operator [MERGEJOIN_239]
+                           |                       |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                       |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                           |                       |  outputColumnNames:["_col5","_col6","_col9","_col10","_col14"]
+                           |                       |  Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                           |                       |<-Map 39 [SIMPLE_EDGE]
+                           |                       |  Reduce Output Operator [RS_132]
+                           |                       |     key expressions:_col0 (type: int)
+                           |                       |     Map-reduce partition columns:_col0 (type: int)
+                           |                       |     sort order:+
+                           |                       |     Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |     Select Operator [SEL_110]
+                           |                       |        outputColumnNames:["_col0"]
+                           |                       |        Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |        Filter Operator [FIL_224]
+                           |                       |           predicate:((p_channel_tv = 'N') and p_promo_sk is not null) (type: boolean)
+                           |                       |           Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                           |                       |           TableScan [TS_108]
+                           |                       |              alias:promotion
+                           |                       |              Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                           |                       |<-Reducer 32 [SIMPLE_EDGE]
+                           |                          Reduce Output Operator [RS_130]
+                           |                             key expressions:_col3 (type: int)
+                           |                             Map-reduce partition columns:_col3 (type: int)
+                           |                             sort order:+
+                           |                             Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                           |                             value expressions:_col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                           |                             Merge Join Operator [MERGEJOIN_238]
+                           |                             |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                             |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                           |                             |  outputColumnNames:["_col3","_col5","_col6","_col9","_col10","_col14"]
+                           |                             |  Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                           |                             |<-Map 38 [SIMPLE_EDGE]
+                           |                             |  Reduce Output Operator [RS_127]
+                           |                             |     key expressions:_col0 (type: int)
+                           |                             |     Map-reduce partition columns:_col0 (type: int)
+                           |                             |     sort order:+
+                           |                             |     Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |     Select Operator [SEL_107]
+                           |                             |        outputColumnNames:["_col0"]
+                           |                             |        Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |        Filter Operator [FIL_223]
+                           |                             |           predicate:((i_current_price > 50) and i_item_sk is not null) (type: boolean)
+                           |                             |           Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                           |                             |           TableScan [TS_105]
+                           |                             |              alias:item
+                           |                             |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                           |                             |<-Reducer 31 [SIMPLE_EDGE]
+                           |                                Reduce Output Operator [RS_125]
+                           |                                   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:_col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                           |                                   Merge Join Operator [MERGEJOIN_237]
+                           |                                   |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                                   |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
+                           |                                   |  outputColumnNames:["_col1","_col3","_col5","_col6","_col9","_col10","_col14"]
+                           |                                   |  Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |<-Map 37 [SIMPLE_EDGE]
+                           |                                   |  Reduce Output Operator [RS_122]
+                           |                                   |     key expressions:_col0 (type: int)
+                           |                                   |     Map-reduce partition columns:_col0 (type: int)
+                           |                                   |     sort order:+
+                           |                                   |     Statistics:Num rows: 84 Data size: 155408 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |     value expressions:_col1 (type: string)
+                           |                                   |     Select Operator [SEL_104]
+                           |                                   |        outputColumnNames:["_col0","_col1"]
+                           |                                   |        Statistics:Num rows: 84 Data size: 155408 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |        Filter Operator [FIL_222]
+                           |                                   |           predicate:web_site_sk is not null (type: boolean)
+                           |                                   |           Statistics:Num rows: 84 Data size: 155408 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |           TableScan [TS_102]
+                           |                                   |              alias:web_site
+                           |                                   |              Statistics:Num rows: 84 Data size: 155408 Basic stats: COMPLETE Column stats: NONE
+                           |                                   |<-Reducer 30 [SIMPLE_EDGE]
+                           |                                      Reduce Output Operator [RS_120]
+                           |                                         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), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                           |                                         Merge Join Operator [MERGEJOIN_236]
+                           |                                         |  condition map:[{"":"Inner Join 0 to 1"}]
+                           |                                         |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                           |                                         |  outputColumnNames:["_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                           |                                         |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |<-Map 36 [SIMPLE_EDGE]
+                           |                                         |  Reduce Output Operator [RS_117]
+                           |                                         |     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_101]
+                           |                                         |        outputColumnNames:["_col0"]
+                           |                                         |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |        Filter Operator [FIL_221]
+                           |                                         |           predicate:(d_date BETWEEN 1998-08-04 AND 1998-09-04 and d_date_sk is not null) (type: boolean)
+                           |                                         |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |           TableScan [TS_99]
+                           |                                         |              alias:date_dim
+                           |                                         |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                           |                                         |<-Reducer 29 [SIMPLE_EDGE]
+                           |                                            Reduce Output Operator [RS_115]
+                           |                                               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), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                           |                                               Merge Join Operator [MERGEJOIN_235]
+                           |                                               |  condition map:[{"":"Left Outer Join0 to 1"}]
+                           |                                               |  keys:{"0":"_col1 (type: int), _col4 (type: int)","1":"_col0 (type: int), _col1 (type: int)"}
+                           |                                               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                           |                                               |  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |<-Map 28 [SIMPLE_EDGE]
+                           |                                               |  Reduce Output Operator [RS_111]
+                           |                                               |     key expressions:_col1 (type: int), _col4 (type: int)
+                           |                                               |     Map-reduce partition columns:_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), _col2 (type: int), _col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2))
+                           |                                               |     Select Operator [SEL_96]
+                           |                                               |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                           |                                               |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |        Filter Operator [FIL_219]
+                           |                                               |           predicate:(((ws_sold_date_sk is not null and ws_web_site_sk is not null) and ws_item_sk is not null) and ws_promo_sk is not null) (type: boolean)
+                           |                                               |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |           TableScan [TS_94]
+                           |                                               |              alias:web_sales
+                           |                                               |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                               |<-Map 35 [SIMPLE_EDGE]
+                           |                                                  Reduce Output Operator [RS_112]
+                           |                                                     key expressions:_col0 (type: int), _col1 (type: int)
+                           |                                                     Map-reduce partition columns:_col0 (type: int), _col1 (type: int)
+                           |                                                     sort order:++
+                           |                                                     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                     value expressions:_col2 (type: decimal(7,2)), _col3 (type: decimal(7,2))
+                           |                                                     Select Operator [SEL_98]
+                           |                                                        outputColumnNames:["_col0","_col1","_col2","_col3"]
+                           |                                                        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                        Filter Operator [FIL_220]
+                           |                                                           predicate:wr_item_sk is not null (type: boolean)
+                           |                                                           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |                                                           TableScan [TS_97]
+                           |                                                              alias:web_returns
+                           |                                                              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                           |<-Reducer 7 [CONTAINS]
+                              Reduce Output Operator [RS_143]
+                                 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: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                                 value expressions:_col3 (type: decimal(27,2)), _col4 (type: decimal(32,2)), _col5 (type: decimal(33,2))
+                                 Group By Operator [GBY_142]
+                                    aggregations:["sum(_col2)","sum(_col3)","sum(_col4)"]
+                                    keys:_col0 (type: string), _col1 (type: string), '0' (type: string)
+                                    outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                    Statistics:Num rows: 838530 Data size: 1204362279 Basic stats: COMPLETE Column stats: NONE
+                                    Select Operator [SEL_45]
+                                       outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                                       Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                                       Group By Operator [GBY_44]
+                                       |  aggregations:["sum(VALUE._col0)","sum(VALUE._col1)","sum(VALUE._col2)"]
+                                       |  keys:KEY._col0 (type: string)
+                                       |  outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                       |  Statistics:Num rows: 93170 Data size: 133818031 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Reducer 6 [SIMPLE_EDGE]
+                                          Reduce Output Operator [RS_43]
+                                             key expressions:_col0 (type: string)
+                                             Map-reduce partition columns:_col0 (type: string)
+                                             sort order:+
+                                             Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                                             value expressions:_col1 (type: decimal(17,2)), _col2 (type: decimal(22,2)), _col3 (type: decimal(23,2))
+                                             Group By Operator [GBY_42]
+                                                aggregations:["sum(_col1)","sum(_col2)","sum(_col3)"]
+                                                keys:_col0 (type: string)
+                                                outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                                Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                                                Select Operator [SEL_40]
+                                                   outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                                   Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                                                   Merge Join Operator [MERGEJOIN_229]
+                                                   |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                   |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                                                   |  outputColumnNames:["_col5","_col6","_col9","_col10","_col14"]
+                                                   |  Statistics:Num rows: 186340 Data size: 267636062 Basic stats: COMPLETE Column stats: NONE
+                                                   |<-Map 15 [SIMPLE_EDGE]
+                                                   |  Reduce Output Operator [RS_38]
+                                                   |     key expressions:_col0 (type: int)
+                                                   |     Map-reduce partition columns:_col0 (type: int)
+                                                   |     sort order:+
+                                                   |     Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                                                   |     Select Operator [SEL_16]
+                                                   |        outputColumnNames:["_col0"]
+                                                   |        Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                                                   |        Filter Operator [FIL_212]
+                                                   |           predicate:((p_channel_tv = 'N') and p_promo_sk is not null) (type: boolean)
+                                                   |           Statistics:Num rows: 1150 Data size: 1356710 Basic stats: COMPLETE Column stats: NONE
+                                                   |           TableScan [TS_14]
+                                                   |              alias:promotion
+                                                   |              Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                                                   |<-Reducer 5 [SIMPLE_EDGE]
+                                                      Reduce Output Operator [RS_36]
+                                                         key expressions:_col3 (type: int)
+                                                         Map-reduce partition columns:_col3 (type: int)
+                                                         sort order:+
+                                                         Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                                                         value expressions:_col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                                                         Merge Join Operator [MERGEJOIN_228]
+                                                         |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                         |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                                                         |  outputColumnNames:["_col3","_col5","_col6","_col9","_col10","_col14"]
+                                                         |  Statistics:Num rows: 169400 Data size: 243305506 Basic stats: COMPLETE Column stats: NONE
+                                                         |<-Map 14 [SIMPLE_EDGE]
+                                                         |  Reduce Output Operator [RS_33]
+                                                         |     key expressions:_col0 (type: int)
+                                                         |     Map-reduce partition columns:_col0 (type: int)
+                                                         |     sort order:+
+                                                         |     Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                                                         |     Select Operator [SEL_13]
+                                                         |        outputColumnNames:["_col0"]
+                                                         |        Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                                                         |        Filter Operator [FIL_211]
+                                                         |           predicate:((i_current_price > 50) and i_item_sk is not null) (type: boolean)
+                                                         |           Statistics:Num rows: 154000 Data size: 221186819 Basic stats: COMPLETE Column stats: NONE
+                                                         |           TableScan [TS_11]
+                                                         |              alias:item
+                                                         |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                                         |<-Reducer 4 [SIMPLE_EDGE]
+                                                            Reduce Output Operator [RS_31]
+                                                               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:_col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2)), _col14 (type: string)
+                                                               Merge Join Operator [MERGEJOIN_227]
+                                                               |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                               |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
+                                                               |  outputColumnNames:["_col1","_col3","_col5","_col6","_col9","_col10","_col14"]
+                                                               |  Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
+                                                               |<-Map 13 [SIMPLE_EDGE]
+                                                               |  Reduce Output Operator [RS_28]
+                                                               |     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_10]
+                                                               |        outputColumnNames:["_col0","_col1"]
+                                                               |        Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
+                                                               |        Filter Operator [FIL_210]
+                                                               |           predicate:s_store_sk is not null (type: boolean)
+                                                               |           Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
+                                                               |           TableScan [TS_8]
+                                                               |              alias:store
+                                                               |              Statistics:Num rows: 1704 Data size: 3256276 Basic stats: COMPLETE Column stats: NONE
+                                                               |<-Reducer 3 [SIMPLE_EDGE]
+                                                                  Reduce Output Operator [RS_26]
+                                                                     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), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                                                                     Merge Join Operator [MERGEJOIN_226]
+                                                                     |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                                     |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                                                                     |  outputColumnNames:["_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                                                                     |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                                                     |<-Map 12 [SIMPLE_EDGE]
+                                                                     |  Reduce Output Operator [RS_23]
+                                                                     |     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_7]
+                                                                     |        outputColumnNames:["_col0"]
+                                                                     |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                                                     |        Filter Operator [FIL_209]
+                                                                     |           predicate:(d_date BETWEEN 1998-08-04 AND 1998-09-04 and d_date_sk is not null) (type: boolean)
+                                                                     |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                                                     |           TableScan [TS_5]
+                                                                     |              alias:date_dim
+                                                                     |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                                                                     |<-Reducer 2 [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), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col9 (type: decimal(7,2)), _col10 (type: decimal(7,2))
+                                                                           Merge Join Operator [MERGEJOIN_225]
+                                                                           |  condition map:[{"":"Left Outer Join0 to 1"}]
+                                                                           |  keys:{"0":"_col1 (type: int), _col4 (type: int)","1":"_col0 (type: int), _col1 (type: int)"}
+                                                                           |  outputColumnNames:["_col0","_col1","_col2","_col3","_col5","_col6","_col9","_col10"]
+                                                                           |  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                                           |<-Map 1 [SIMPLE_EDGE]
+                                                                           |  Reduce Output Operator [RS_17]
+                                                                           |     key expressions:_col1 (type: int), _col4 (type: int)
+                                                                           |     Map-reduce partition columns:_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), _col2 (type: int), _col3 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2))
+                                                                           |     Select Operator [SEL_2]
+                                                                           |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6"]
+                                                                           |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                                           |        Filter Operator [FIL_207]
+                                                                           |           predicate:(((ss_sold_date_sk is not null and ss_store_sk is not null) and ss_item_sk is not null) and ss_promo_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_18]
+                                                                                 key expressions:_col0 (type: int), _col1 (type: int)
+                                                                                 Map-reduce partition columns:_col0 (type: int), _col1 (type: int)
+                                                                                 sort order:++
+                                                                                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                                                 value expressions:_col2 (type: decimal(7,2)), _col3 (type: decimal(7,2))
+                                                                                 Select Operator [SEL_4]
+                                                                                    outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                                                                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                                                    Filter Operator [FIL_208]
+                                                                                       predicate:sr_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_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/query82.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query82.q.out b/ql/src/test/results/clientpositive/perf/query82.q.out
new file mode 100644
index 0000000..6f142ed
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query82.q.out
@@ -0,0 +1,127 @@
+PREHOOK: query: explain select i_item_id ,i_item_desc ,i_current_price from item, inventory, date_dim, store_sales where i_current_price between 30 and 30+30 and inv_item_sk = i_item_sk and d_date_sk=inv_date_sk and d_date between '2002-05-30' and '2002-07-30' and i_manufact_id in (437,129,727,663) and inv_quantity_on_hand between 100 and 500 and ss_item_sk = i_item_sk group by i_item_id,i_item_desc,i_current_price order by i_item_id limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id ,i_item_desc ,i_current_price from item, inventory, date_dim, store_sales where i_current_price between 30 and 30+30 and inv_item_sk = i_item_sk and d_date_sk=inv_date_sk and d_date between '2002-05-30' and '2002-07-30' and i_manufact_id in (437,129,727,663) and inv_quantity_on_hand between 100 and 500 and ss_item_sk = i_item_sk group by i_item_id,i_item_desc,i_current_price order by i_item_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), Map 8 (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_32]
+            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_31]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_30]
+               |  outputColumnNames:["_col0","_col1","_col2"]
+               |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 4 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_29]
+                     key expressions:_col0 (type: string)
+                     sort order:+
+                     Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col1 (type: string), _col2 (type: decimal(7,2))
+                     Group By Operator [GBY_27]
+                     |  keys:KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 (type: decimal(7,2))
+                     |  outputColumnNames:["_col0","_col1","_col2"]
+                     |  Statistics:Num rows: 139755 Data size: 200727046 Basic stats: COMPLETE Column stats: NONE
+                     |<-Reducer 3 [SIMPLE_EDGE]
+                        Reduce Output Operator [RS_26]
+                           key expressions:_col0 (type: string), _col1 (type: string), _col2 (type: decimal(7,2))
+                           Map-reduce partition columns:_col0 (type: string), _col1 (type: string), _col2 (type: decimal(7,2))
+                           sort order:+++
+                           Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
+                           Group By Operator [GBY_25]
+                              keys:_col1 (type: string), _col2 (type: string), _col3 (type: decimal(7,2))
+                              outputColumnNames:["_col0","_col1","_col2"]
+                              Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
+                              Merge Join Operator [MERGEJOIN_48]
+                              |  condition map:[{"":"Inner Join 0 to 1"}]
+                              |  keys:{"0":"_col5 (type: int)","1":"_col0 (type: int)"}
+                              |  outputColumnNames:["_col1","_col2","_col3"]
+                              |  Statistics:Num rows: 279510 Data size: 401454092 Basic stats: COMPLETE Column stats: NONE
+                              |<-Map 7 [SIMPLE_EDGE]
+                              |  Reduce Output Operator [RS_22]
+                              |     key expressions:_col0 (type: int)
+                              |     Map-reduce partition columns:_col0 (type: int)
+                              |     sort order:+
+                              |     Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                              |     Select Operator [SEL_8]
+                              |        outputColumnNames:["_col0"]
+                              |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                              |        Filter Operator [FIL_45]
+                              |           predicate:(d_date BETWEEN '2002-05-30' AND '2002-07-30' and d_date_sk is not null) (type: boolean)
+                              |           Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                              |           TableScan [TS_6]
+                              |              alias:date_dim
+                              |              Statistics:Num rows: 73049 Data size: 81741831 Basic stats: COMPLETE Column stats: NONE
+                              |<-Reducer 2 [SIMPLE_EDGE]
+                                 Reduce Output Operator [RS_20]
+                                    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:_col1 (type: string), _col2 (type: string), _col3 (type: decimal(7,2))
+                                    Merge Join Operator [MERGEJOIN_47]
+                                    |  condition map:[{"":"Inner Join 0 to 1"},{"":"Inner Join 0 to 2"}]
+                                    |  keys:{"0":"_col0 (type: int)","1":"_col1 (type: int)","2":"_col0 (type: int)"}
+                                    |  outputColumnNames:["_col1","_col2","_col3","_col5"]
+                                    |  Statistics:Num rows: 254100 Data size: 364958258 Basic stats: COMPLETE Column stats: NONE
+                                    |<-Map 1 [SIMPLE_EDGE]
+                                    |  Reduce Output Operator [RS_13]
+                                    |     key expressions:_col0 (type: int)
+                                    |     Map-reduce partition columns:_col0 (type: int)
+                                    |     sort order:+
+                                    |     Statistics:Num rows: 115500 Data size: 165890114 Basic stats: COMPLETE Column stats: NONE
+                                    |     value expressions:_col1 (type: string), _col2 (type: string), _col3 (type: decimal(7,2))
+                                    |     Select Operator [SEL_2]
+                                    |        outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                    |        Statistics:Num rows: 115500 Data size: 165890114 Basic stats: COMPLETE Column stats: NONE
+                                    |        Filter Operator [FIL_43]
+                                    |           predicate:(((i_manufact_id) IN (437, 129, 727, 663) and i_current_price BETWEEN 30 AND 60) and i_item_sk is not null) (type: boolean)
+                                    |           Statistics:Num rows: 115500 Data size: 165890114 Basic stats: COMPLETE Column stats: NONE
+                                    |           TableScan [TS_0]
+                                    |              alias:item
+                                    |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                    |<-Map 6 [SIMPLE_EDGE]
+                                    |  Reduce Output Operator [RS_15]
+                                    |     key expressions:_col1 (type: int)
+                                    |     Map-reduce partition columns:_col1 (type: int)
+                                    |     sort order:+
+                                    |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |     value expressions:_col0 (type: int)
+                                    |     Select Operator [SEL_5]
+                                    |        outputColumnNames:["_col0","_col1"]
+                                    |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |        Filter Operator [FIL_44]
+                                    |           predicate:((inv_quantity_on_hand BETWEEN 100 AND 500 and inv_item_sk is not null) and inv_date_sk is not null) (type: boolean)
+                                    |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |           TableScan [TS_3]
+                                    |              alias:inventory
+                                    |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |<-Map 8 [SIMPLE_EDGE]
+                                       Reduce Output Operator [RS_17]
+                                          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
+                                          Select Operator [SEL_11]
+                                             outputColumnNames:["_col0"]
+                                             Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                             Filter Operator [FIL_46]
+                                                predicate:ss_item_sk is not null (type: boolean)
+                                                Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                TableScan [TS_9]
+                                                   alias:store_sales
+                                                   Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+