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

[22/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/query26.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query26.q.out b/ql/src/test/results/clientpositive/perf/query26.q.out
new file mode 100644
index 0000000..d364aec
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query26.q.out
@@ -0,0 +1,174 @@
+PREHOOK: query: explain select i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, avg(cs_coupon_amt) agg3, avg(cs_sales_price) agg4 from catalog_sales, customer_demographics, date_dim, item, promotion where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_item_sk = item.i_item_sk and catalog_sales.cs_bill_cdemo_sk = customer_demographics.cd_demo_sk and catalog_sales.cs_promo_sk = promotion.p_promo_sk and cd_gender = 'F' and cd_marital_status = 'W' and cd_education_status = 'Primary' and (p_channel_email = 'N' or p_channel_event = 'N') and d_year = 1998 group by i_item_id order by i_item_id limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id, avg(cs_quantity) agg1, avg(cs_list_price) agg2, avg(cs_coupon_amt) agg3, avg(cs_sales_price) agg4 from catalog_sales, customer_demographics, date_dim, item, promotion where catalog_sales.cs_sold_date_sk = date_dim.d_date_sk and catalog_sales.cs_item_sk = item.i_item_sk and catalog_sales.cs_bill_cdemo_sk = customer_demographics.cd_demo_sk and catalog_sales.cs_promo_sk = promotion.p_promo_sk and cd_gender = 'F' and cd_marital_status = 'W' and cd_education_status = 'Primary' and (p_channel_email = 'N' or p_channel_event = 'N') and d_year = 1998 group by i_item_id 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 8 (SIMPLE_EDGE)
+Reducer 3 <- Map 9 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 10 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 11 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+
+Stage-0
+   Fetch Operator
+      limit:100
+      Stage-1
+         Reducer 7
+         File Output Operator [FS_43]
+            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_42]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_41]
+               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+               |  Statistics:Num rows: 279510 Data size: 401454093 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 6 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_40]
+                     key expressions:_col0 (type: string)
+                     sort order:+
+                     Statistics:Num rows: 279510 Data size: 401454093 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col1 (type: double), _col2 (type: decimal(11,6)), _col3 (type: decimal(11,6)), _col4 (type: decimal(11,6))
+                     Group By Operator [GBY_38]
+                     |  aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)"]
+                     |  keys:KEY._col0 (type: string)
+                     |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                     |  Statistics:Num rows: 279510 Data size: 401454093 Basic stats: COMPLETE Column stats: NONE
+                     |<-Reducer 5 [SIMPLE_EDGE]
+                        Reduce Output Operator [RS_37]
+                           key expressions:_col0 (type: string)
+                           Map-reduce partition columns:_col0 (type: string)
+                           sort order:+
+                           Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
+                           value expressions:_col1 (type: struct<count:bigint,sum:double,input:int>), _col2 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col3 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col4 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                           Group By Operator [GBY_36]
+                              aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"]
+                              keys:_col15 (type: string)
+                              outputColumnNames:["_col0","_col1","_col2","_col3","_col4"]
+                              Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
+                              Select Operator [SEL_35]
+                                 outputColumnNames:["_col15","_col4","_col5","_col7","_col6"]
+                                 Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
+                                 Merge Join Operator [MERGEJOIN_66]
+                                 |  condition map:[{"":"Inner Join 0 to 1"}]
+                                 |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                                 |  outputColumnNames:["_col4","_col5","_col6","_col7","_col15"]
+                                 |  Statistics:Num rows: 559020 Data size: 802908187 Basic stats: COMPLETE Column stats: NONE
+                                 |<-Map 11 [SIMPLE_EDGE]
+                                 |  Reduce Output Operator [RS_33]
+                                 |     key expressions:_col0 (type: int)
+                                 |     Map-reduce partition columns:_col0 (type: int)
+                                 |     sort order:+
+                                 |     Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                                 |     Select Operator [SEL_14]
+                                 |        outputColumnNames:["_col0"]
+                                 |        Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                                 |        Filter Operator [FIL_62]
+                                 |           predicate:(((p_channel_email = 'N') or (p_channel_event = 'N')) and p_promo_sk is not null) (type: boolean)
+                                 |           Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                                 |           TableScan [TS_12]
+                                 |              alias:promotion
+                                 |              Statistics:Num rows: 2300 Data size: 2713420 Basic stats: COMPLETE Column stats: NONE
+                                 |<-Reducer 4 [SIMPLE_EDGE]
+                                    Reduce Output Operator [RS_31]
+                                       key expressions:_col3 (type: int)
+                                       Map-reduce partition columns:_col3 (type: int)
+                                       sort order:+
+                                       Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                       value expressions:_col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col15 (type: string)
+                                       Merge Join Operator [MERGEJOIN_65]
+                                       |  condition map:[{"":"Inner Join 0 to 1"}]
+                                       |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
+                                       |  outputColumnNames:["_col3","_col4","_col5","_col6","_col7","_col15"]
+                                       |  Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Map 10 [SIMPLE_EDGE]
+                                       |  Reduce Output Operator [RS_28]
+                                       |     key expressions:_col0 (type: int)
+                                       |     Map-reduce partition columns:_col0 (type: int)
+                                       |     sort order:+
+                                       |     Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                       |     value expressions:_col1 (type: string)
+                                       |     Select Operator [SEL_11]
+                                       |        outputColumnNames:["_col0","_col1"]
+                                       |        Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                       |        Filter Operator [FIL_61]
+                                       |           predicate:i_item_sk is not null (type: boolean)
+                                       |           Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                       |           TableScan [TS_9]
+                                       |              alias:item
+                                       |              Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                       |<-Reducer 3 [SIMPLE_EDGE]
+                                          Reduce Output Operator [RS_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:_col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                             Merge Join Operator [MERGEJOIN_64]
+                                             |  condition map:[{"":"Inner Join 0 to 1"}]
+                                             |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                                             |  outputColumnNames:["_col2","_col3","_col4","_col5","_col6","_col7"]
+                                             |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                             |<-Map 9 [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_8]
+                                             |        outputColumnNames:["_col0"]
+                                             |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                             |        Filter Operator [FIL_60]
+                                             |           predicate:((d_year = 1998) 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_21]
+                                                   key expressions:_col0 (type: int)
+                                                   Map-reduce partition columns:_col0 (type: int)
+                                                   sort order:+
+                                                   Statistics:Num rows: 2722 Data size: 986020 Basic stats: COMPLETE Column stats: NONE
+                                                   value expressions:_col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                                   Merge Join Operator [MERGEJOIN_63]
+                                                   |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                   |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                                                   |  outputColumnNames:["_col0","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                                   |  Statistics:Num rows: 2722 Data size: 986020 Basic stats: COMPLETE Column stats: NONE
+                                                   |<-Map 1 [SIMPLE_EDGE]
+                                                   |  Reduce Output Operator [RS_16]
+                                                   |     key expressions:_col1 (type: int)
+                                                   |     Map-reduce partition columns:_col1 (type: int)
+                                                   |     sort order:+
+                                                   |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                   |     value expressions:_col0 (type: int), _col2 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                                   |     Select Operator [SEL_2]
+                                                   |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                                   |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                   |        Filter Operator [FIL_58]
+                                                   |           predicate:(((cs_bill_cdemo_sk is not null and cs_sold_date_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_0]
+                                                   |              alias:catalog_sales
+                                                   |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                   |<-Map 8 [SIMPLE_EDGE]
+                                                      Reduce Output Operator [RS_18]
+                                                         key expressions:_col0 (type: int)
+                                                         Map-reduce partition columns:_col0 (type: int)
+                                                         sort order:+
+                                                         Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                         Select Operator [SEL_5]
+                                                            outputColumnNames:["_col0"]
+                                                            Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                            Filter Operator [FIL_59]
+                                                               predicate:((((cd_gender = 'F') and (cd_marital_status = 'W')) and (cd_education_status = 'Primary')) and cd_demo_sk is not null) (type: boolean)
+                                                               Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                               TableScan [TS_3]
+                                                                  alias:customer_demographics
+                                                                  Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
+

http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/ql/src/test/results/clientpositive/perf/query27.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query27.q.out b/ql/src/test/results/clientpositive/perf/query27.q.out
new file mode 100644
index 0000000..bf5d56e
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query27.q.out
@@ -0,0 +1,178 @@
+PREHOOK: query: explain select i_item_id, s_state, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 from store_sales, customer_demographics, date_dim, store, item where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_item_sk = item.i_item_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_cdemo_sk = customer_demographics.cd_demo_sk and customer_demographics.cd_gender = 'F' and customer_demographics.cd_marital_status = 'D' and customer_demographics.cd_education_status = 'Unknown' and date_dim.d_year = 1998 and store.s_state in ('KS','AL', 'MN', 'AL', 'SC', 'VT') group by i_item_id, s_state order by i_item_id ,s_state limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select i_item_id, s_state, avg(ss_quantity) agg1, avg(ss_list_price) agg2, avg(ss_coupon_amt) agg3, avg(ss_sales_price) agg4 from store_sales, customer_demographics, date_dim, store, item where store_sales.ss_sold_date_sk = date_dim.d_date_sk and store_sales.ss_item_sk = item.i_item_sk and store_sales.ss_store_sk = store.s_store_sk and store_sales.ss_cdemo_sk = customer_demographics.cd_demo_sk and customer_demographics.cd_gender = 'F' and customer_demographics.cd_marital_status = 'D' and customer_demographics.cd_education_status = 'Unknown' and date_dim.d_year = 1998 and store.s_state in ('KS','AL', 'MN', 'AL', 'SC', 'VT') group by i_item_id, s_state order by i_item_id ,s_state limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 2 <- Map 1 (SIMPLE_EDGE), Map 8 (SIMPLE_EDGE)
+Reducer 3 <- Map 9 (SIMPLE_EDGE), Reducer 2 (SIMPLE_EDGE)
+Reducer 4 <- Map 10 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Map 11 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 6 (SIMPLE_EDGE)
+
+Stage-0
+   Fetch Operator
+      limit:100
+      Stage-1
+         Reducer 7
+         File Output Operator [FS_43]
+            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_42]
+               Number of rows:100
+               Statistics:Num rows: 100 Data size: 143600 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_41]
+               |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+               |  Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+               |<-Reducer 6 [SIMPLE_EDGE]
+                  Reduce Output Operator [RS_40]
+                     key expressions:_col0 (type: string), _col1 (type: string)
+                     sort order:++
+                     Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+                     value expressions:_col2 (type: double), _col3 (type: decimal(11,6)), _col4 (type: decimal(11,6)), _col5 (type: decimal(11,6))
+                     Select Operator [SEL_39]
+                        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+                        Group By Operator [GBY_38]
+                        |  aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","avg(VALUE._col3)"]
+                        |  keys:KEY._col0 (type: string), KEY._col1 (type: string)
+                        |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                        |  Statistics:Num rows: 254100 Data size: 364958259 Basic stats: COMPLETE Column stats: NONE
+                        |<-Reducer 5 [SIMPLE_EDGE]
+                           Reduce Output Operator [RS_37]
+                              key expressions:_col0 (type: string), _col1 (type: string)
+                              Map-reduce partition columns:_col0 (type: string), _col1 (type: string)
+                              sort order:++
+                              Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                              value expressions:_col2 (type: struct<count:bigint,sum:double,input:int>), _col3 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col4 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col5 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                              Group By Operator [GBY_36]
+                                 aggregations:["avg(_col4)","avg(_col5)","avg(_col7)","avg(_col6)"]
+                                 keys:_col15 (type: string), _col17 (type: string)
+                                 outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                 Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                 Select Operator [SEL_35]
+                                    outputColumnNames:["_col15","_col17","_col4","_col5","_col7","_col6"]
+                                    Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                    Merge Join Operator [MERGEJOIN_66]
+                                    |  condition map:[{"":"Inner Join 0 to 1"}]
+                                    |  keys:{"0":"_col1 (type: int)","1":"_col0 (type: int)"}
+                                    |  outputColumnNames:["_col4","_col5","_col6","_col7","_col15","_col17"]
+                                    |  Statistics:Num rows: 508200 Data size: 729916518 Basic stats: COMPLETE Column stats: NONE
+                                    |<-Map 11 [SIMPLE_EDGE]
+                                    |  Reduce Output Operator [RS_33]
+                                    |     key expressions:_col0 (type: int)
+                                    |     Map-reduce partition columns:_col0 (type: int)
+                                    |     sort order:+
+                                    |     Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                    |     value expressions:_col1 (type: string)
+                                    |     Select Operator [SEL_14]
+                                    |        outputColumnNames:["_col0","_col1"]
+                                    |        Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                    |        Filter Operator [FIL_62]
+                                    |           predicate:i_item_sk is not null (type: boolean)
+                                    |           Statistics:Num rows: 462000 Data size: 663560457 Basic stats: COMPLETE Column stats: NONE
+                                    |           TableScan [TS_12]
+                                    |              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:_col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2)), _col15 (type: string)
+                                          Merge Join Operator [MERGEJOIN_65]
+                                          |  condition map:[{"":"Inner Join 0 to 1"}]
+                                          |  keys:{"0":"_col3 (type: int)","1":"_col0 (type: int)"}
+                                          |  outputColumnNames:["_col1","_col4","_col5","_col6","_col7","_col15"]
+                                          |  Statistics:Num rows: 44193 Data size: 49453132 Basic stats: COMPLETE Column stats: NONE
+                                          |<-Map 10 [SIMPLE_EDGE]
+                                          |  Reduce Output Operator [RS_28]
+                                          |     key expressions:_col0 (type: int)
+                                          |     Map-reduce partition columns:_col0 (type: int)
+                                          |     sort order:+
+                                          |     Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: NONE
+                                          |     value expressions:_col1 (type: string)
+                                          |     Select Operator [SEL_11]
+                                          |        outputColumnNames:["_col0","_col1"]
+                                          |        Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: NONE
+                                          |        Filter Operator [FIL_61]
+                                          |           predicate:((s_state) IN ('KS', 'AL', 'MN', 'AL', 'SC', 'VT') and s_store_sk is not null) (type: boolean)
+                                          |           Statistics:Num rows: 852 Data size: 1628138 Basic stats: COMPLETE Column stats: NONE
+                                          |           TableScan [TS_9]
+                                          |              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:_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), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                                Merge Join Operator [MERGEJOIN_64]
+                                                |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                |  keys:{"0":"_col0 (type: int)","1":"_col0 (type: int)"}
+                                                |  outputColumnNames:["_col1","_col3","_col4","_col5","_col6","_col7"]
+                                                |  Statistics:Num rows: 40176 Data size: 44957392 Basic stats: COMPLETE Column stats: NONE
+                                                |<-Map 9 [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_8]
+                                                |        outputColumnNames:["_col0"]
+                                                |        Statistics:Num rows: 36524 Data size: 40870356 Basic stats: COMPLETE Column stats: NONE
+                                                |        Filter Operator [FIL_60]
+                                                |           predicate:((d_year = 1998) 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_21]
+                                                      key expressions:_col0 (type: int)
+                                                      Map-reduce partition columns:_col0 (type: int)
+                                                      sort order:+
+                                                      Statistics:Num rows: 2722 Data size: 986020 Basic stats: COMPLETE Column stats: NONE
+                                                      value expressions:_col1 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                                      Merge Join Operator [MERGEJOIN_63]
+                                                      |  condition map:[{"":"Inner Join 0 to 1"}]
+                                                      |  keys:{"0":"_col2 (type: int)","1":"_col0 (type: int)"}
+                                                      |  outputColumnNames:["_col0","_col1","_col3","_col4","_col5","_col6","_col7"]
+                                                      |  Statistics:Num rows: 2722 Data size: 986020 Basic stats: COMPLETE Column stats: NONE
+                                                      |<-Map 1 [SIMPLE_EDGE]
+                                                      |  Reduce Output Operator [RS_16]
+                                                      |     key expressions:_col2 (type: int)
+                                                      |     Map-reduce partition columns:_col2 (type: int)
+                                                      |     sort order:+
+                                                      |     Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                      |     value expressions:_col0 (type: int), _col1 (type: int), _col3 (type: int), _col4 (type: int), _col5 (type: decimal(7,2)), _col6 (type: decimal(7,2)), _col7 (type: decimal(7,2))
+                                                      |     Select Operator [SEL_2]
+                                                      |        outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7"]
+                                                      |        Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                      |        Filter Operator [FIL_58]
+                                                      |           predicate:(((ss_cdemo_sk is not null and ss_sold_date_sk is not null) and ss_store_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_0]
+                                                      |              alias:store_sales
+                                                      |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                      |<-Map 8 [SIMPLE_EDGE]
+                                                         Reduce Output Operator [RS_18]
+                                                            key expressions:_col0 (type: int)
+                                                            Map-reduce partition columns:_col0 (type: int)
+                                                            sort order:+
+                                                            Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                            Select Operator [SEL_5]
+                                                               outputColumnNames:["_col0"]
+                                                               Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                               Filter Operator [FIL_59]
+                                                                  predicate:((((cd_gender = 'F') and (cd_marital_status = 'D')) and (cd_education_status = 'Unknown')) and cd_demo_sk is not null) (type: boolean)
+                                                                  Statistics:Num rows: 2475 Data size: 896382 Basic stats: COMPLETE Column stats: NONE
+                                                                  TableScan [TS_3]
+                                                                     alias:customer_demographics
+                                                                     Statistics:Num rows: 19800 Data size: 7171059 Basic stats: COMPLETE Column stats: NONE
+

http://git-wip-us.apache.org/repos/asf/hive/blob/09b6f9a3/ql/src/test/results/clientpositive/perf/query28.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/query28.q.out b/ql/src/test/results/clientpositive/perf/query28.q.out
new file mode 100644
index 0000000..51ae16f
--- /dev/null
+++ b/ql/src/test/results/clientpositive/perf/query28.q.out
@@ -0,0 +1,357 @@
+Warning: Shuffle Join MERGEJOIN[76][tables = [$hdt$_0, $hdt$_1]] in Stage 'Reducer 3' is a cross product
+Warning: Shuffle Join MERGEJOIN[77][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in Stage 'Reducer 4' is a cross product
+Warning: Shuffle Join MERGEJOIN[78][tables = [$hdt$_0, $hdt$_1, $hdt$_2, $hdt$_3]] in Stage 'Reducer 5' is a cross product
+Warning: Shuffle Join MERGEJOIN[79][tables = [$hdt$_0, $hdt$_1, $hdt$_2, $hdt$_3, $hdt$_4]] in Stage 'Reducer 6' is a cross product
+Warning: Shuffle Join MERGEJOIN[80][tables = [$hdt$_0, $hdt$_1, $hdt$_2, $hdt$_3, $hdt$_4, $hdt$_5]] in Stage 'Reducer 7' is a cross product
+PREHOOK: query: explain select  *
+from (select avg(ss_list_price) B1_LP
+            ,count(ss_list_price) B1_CNT
+            ,count(distinct ss_list_price) B1_CNTD
+      from store_sales
+      where ss_quantity between 0 and 5
+        and (ss_list_price between 11 and 11+10 
+             or ss_coupon_amt between 460 and 460+1000
+             or ss_wholesale_cost between 14 and 14+20)) B1,
+     (select avg(ss_list_price) B2_LP
+            ,count(ss_list_price) B2_CNT
+            ,count(distinct ss_list_price) B2_CNTD
+      from store_sales
+      where ss_quantity between 6 and 10
+        and (ss_list_price between 91 and 91+10
+          or ss_coupon_amt between 1430 and 1430+1000
+          or ss_wholesale_cost between 32 and 32+20)) B2,
+     (select avg(ss_list_price) B3_LP
+            ,count(ss_list_price) B3_CNT
+            ,count(distinct ss_list_price) B3_CNTD
+      from store_sales
+      where ss_quantity between 11 and 15
+        and (ss_list_price between 66 and 66+10
+          or ss_coupon_amt between 920 and 920+1000
+          or ss_wholesale_cost between 4 and 4+20)) B3,
+     (select avg(ss_list_price) B4_LP
+            ,count(ss_list_price) B4_CNT
+            ,count(distinct ss_list_price) B4_CNTD
+      from store_sales
+      where ss_quantity between 16 and 20
+        and (ss_list_price between 142 and 142+10
+          or ss_coupon_amt between 3054 and 3054+1000
+          or ss_wholesale_cost between 80 and 80+20)) B4,
+     (select avg(ss_list_price) B5_LP
+            ,count(ss_list_price) B5_CNT
+            ,count(distinct ss_list_price) B5_CNTD
+      from store_sales
+      where ss_quantity between 21 and 25
+        and (ss_list_price between 135 and 135+10
+          or ss_coupon_amt between 14180 and 14180+1000
+          or ss_wholesale_cost between 38 and 38+20)) B5,
+     (select avg(ss_list_price) B6_LP
+            ,count(ss_list_price) B6_CNT
+            ,count(distinct ss_list_price) B6_CNTD
+      from store_sales
+      where ss_quantity between 26 and 30
+        and (ss_list_price between 28 and 28+10
+          or ss_coupon_amt between 2513 and 2513+1000
+          or ss_wholesale_cost between 42 and 42+20)) B6
+limit 100
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select  *
+from (select avg(ss_list_price) B1_LP
+            ,count(ss_list_price) B1_CNT
+            ,count(distinct ss_list_price) B1_CNTD
+      from store_sales
+      where ss_quantity between 0 and 5
+        and (ss_list_price between 11 and 11+10 
+             or ss_coupon_amt between 460 and 460+1000
+             or ss_wholesale_cost between 14 and 14+20)) B1,
+     (select avg(ss_list_price) B2_LP
+            ,count(ss_list_price) B2_CNT
+            ,count(distinct ss_list_price) B2_CNTD
+      from store_sales
+      where ss_quantity between 6 and 10
+        and (ss_list_price between 91 and 91+10
+          or ss_coupon_amt between 1430 and 1430+1000
+          or ss_wholesale_cost between 32 and 32+20)) B2,
+     (select avg(ss_list_price) B3_LP
+            ,count(ss_list_price) B3_CNT
+            ,count(distinct ss_list_price) B3_CNTD
+      from store_sales
+      where ss_quantity between 11 and 15
+        and (ss_list_price between 66 and 66+10
+          or ss_coupon_amt between 920 and 920+1000
+          or ss_wholesale_cost between 4 and 4+20)) B3,
+     (select avg(ss_list_price) B4_LP
+            ,count(ss_list_price) B4_CNT
+            ,count(distinct ss_list_price) B4_CNTD
+      from store_sales
+      where ss_quantity between 16 and 20
+        and (ss_list_price between 142 and 142+10
+          or ss_coupon_amt between 3054 and 3054+1000
+          or ss_wholesale_cost between 80 and 80+20)) B4,
+     (select avg(ss_list_price) B5_LP
+            ,count(ss_list_price) B5_CNT
+            ,count(distinct ss_list_price) B5_CNTD
+      from store_sales
+      where ss_quantity between 21 and 25
+        and (ss_list_price between 135 and 135+10
+          or ss_coupon_amt between 14180 and 14180+1000
+          or ss_wholesale_cost between 38 and 38+20)) B5,
+     (select avg(ss_list_price) B6_LP
+            ,count(ss_list_price) B6_CNT
+            ,count(distinct ss_list_price) B6_CNTD
+      from store_sales
+      where ss_quantity between 26 and 30
+        and (ss_list_price between 28 and 28+10
+          or ss_coupon_amt between 2513 and 2513+1000
+          or ss_wholesale_cost between 42 and 42+20)) B6
+limit 100
+POSTHOOK: type: QUERY
+Plan optimized by CBO.
+
+Vertex dependency in root stage
+Reducer 11 <- Map 10 (SIMPLE_EDGE)
+Reducer 13 <- Map 12 (SIMPLE_EDGE)
+Reducer 15 <- Map 14 (SIMPLE_EDGE)
+Reducer 17 <- Map 16 (SIMPLE_EDGE)
+Reducer 2 <- Map 1 (SIMPLE_EDGE)
+Reducer 3 <- Reducer 2 (SIMPLE_EDGE), Reducer 9 (SIMPLE_EDGE)
+Reducer 4 <- Reducer 11 (SIMPLE_EDGE), Reducer 3 (SIMPLE_EDGE)
+Reducer 5 <- Reducer 13 (SIMPLE_EDGE), Reducer 4 (SIMPLE_EDGE)
+Reducer 6 <- Reducer 15 (SIMPLE_EDGE), Reducer 5 (SIMPLE_EDGE)
+Reducer 7 <- Reducer 17 (SIMPLE_EDGE), Reducer 6 (SIMPLE_EDGE)
+Reducer 9 <- Map 8 (SIMPLE_EDGE)
+
+Stage-0
+   Fetch Operator
+      limit:100
+      Stage-1
+         Reducer 7
+         File Output Operator [FS_64]
+            compressed:false
+            Statistics:Num rows: 1 Data size: 215 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_63]
+               Number of rows:100
+               Statistics:Num rows: 1 Data size: 215 Basic stats: COMPLETE Column stats: NONE
+               Select Operator [SEL_62]
+                  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17"]
+                  Statistics:Num rows: 1 Data size: 215 Basic stats: COMPLETE Column stats: NONE
+                  Merge Join Operator [MERGEJOIN_80]
+                  |  condition map:[{"":"Inner Join 0 to 1"}]
+                  |  keys:{}
+                  |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14","_col15","_col16","_col17"]
+                  |  Statistics:Num rows: 1 Data size: 215 Basic stats: COMPLETE Column stats: NONE
+                  |<-Reducer 17 [SIMPLE_EDGE]
+                  |  Reduce Output Operator [RS_60]
+                  |     sort order:
+                  |     Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                  |     value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                  |     Group By Operator [GBY_40]
+                  |     |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                  |     |  outputColumnNames:["_col0","_col1","_col2"]
+                  |     |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                  |     |<-Map 16 [SIMPLE_EDGE]
+                  |        Reduce Output Operator [RS_39]
+                  |           key expressions:_col0 (type: decimal(7,2))
+                  |           sort order:+
+                  |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                  |           value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                  |           Group By Operator [GBY_38]
+                  |              aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                  |              keys:ss_list_price (type: decimal(7,2))
+                  |              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                  |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                  |              Select Operator [SEL_37]
+                  |                 outputColumnNames:["ss_list_price"]
+                  |                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                  |                 Filter Operator [FIL_75]
+                  |                    predicate:(ss_quantity BETWEEN 6 AND 10 and (ss_list_price BETWEEN 91 AND 101 or ss_coupon_amt BETWEEN 1430 AND 2430 or ss_wholesale_cost BETWEEN 32 AND 52)) (type: boolean)
+                  |                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                  |                    TableScan [TS_35]
+                  |                       alias:store_sales
+                  |                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                  |<-Reducer 6 [SIMPLE_EDGE]
+                     Reduce Output Operator [RS_59]
+                        sort order:
+                        Statistics:Num rows: 1 Data size: 196 Basic stats: COMPLETE Column stats: NONE
+                        value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(11,6)), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: decimal(11,6)), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: decimal(11,6)), _col10 (type: bigint), _col11 (type: bigint), _col12 (type: decimal(11,6)), _col13 (type: bigint), _col14 (type: bigint)
+                        Merge Join Operator [MERGEJOIN_79]
+                        |  condition map:[{"":"Inner Join 0 to 1"}]
+                        |  keys:{}
+                        |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11","_col12","_col13","_col14"]
+                        |  Statistics:Num rows: 1 Data size: 196 Basic stats: COMPLETE Column stats: NONE
+                        |<-Reducer 15 [SIMPLE_EDGE]
+                        |  Reduce Output Operator [RS_57]
+                        |     sort order:
+                        |     Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                        |     value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                        |     Group By Operator [GBY_33]
+                        |     |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                        |     |  outputColumnNames:["_col0","_col1","_col2"]
+                        |     |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                        |     |<-Map 14 [SIMPLE_EDGE]
+                        |        Reduce Output Operator [RS_32]
+                        |           key expressions:_col0 (type: decimal(7,2))
+                        |           sort order:+
+                        |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |           value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                        |           Group By Operator [GBY_31]
+                        |              aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                        |              keys:ss_list_price (type: decimal(7,2))
+                        |              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                        |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |              Select Operator [SEL_30]
+                        |                 outputColumnNames:["ss_list_price"]
+                        |                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |                 Filter Operator [FIL_74]
+                        |                    predicate:(ss_quantity BETWEEN 11 AND 15 and (ss_list_price BETWEEN 66 AND 76 or ss_coupon_amt BETWEEN 920 AND 1920 or ss_wholesale_cost BETWEEN 4 AND 24)) (type: boolean)
+                        |                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |                    TableScan [TS_28]
+                        |                       alias:store_sales
+                        |                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                        |<-Reducer 5 [SIMPLE_EDGE]
+                           Reduce Output Operator [RS_56]
+                              sort order:
+                              Statistics:Num rows: 1 Data size: 179 Basic stats: COMPLETE Column stats: NONE
+                              value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(11,6)), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: decimal(11,6)), _col7 (type: bigint), _col8 (type: bigint), _col9 (type: decimal(11,6)), _col10 (type: bigint), _col11 (type: bigint)
+                              Merge Join Operator [MERGEJOIN_78]
+                              |  condition map:[{"":"Inner Join 0 to 1"}]
+                              |  keys:{}
+                              |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9","_col10","_col11"]
+                              |  Statistics:Num rows: 1 Data size: 179 Basic stats: COMPLETE Column stats: NONE
+                              |<-Reducer 13 [SIMPLE_EDGE]
+                              |  Reduce Output Operator [RS_54]
+                              |     sort order:
+                              |     Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                              |     value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                              |     Group By Operator [GBY_26]
+                              |     |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                              |     |  outputColumnNames:["_col0","_col1","_col2"]
+                              |     |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                              |     |<-Map 12 [SIMPLE_EDGE]
+                              |        Reduce Output Operator [RS_25]
+                              |           key expressions:_col0 (type: decimal(7,2))
+                              |           sort order:+
+                              |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                              |           value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                              |           Group By Operator [GBY_24]
+                              |              aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                              |              keys:ss_list_price (type: decimal(7,2))
+                              |              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                              |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                              |              Select Operator [SEL_23]
+                              |                 outputColumnNames:["ss_list_price"]
+                              |                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                              |                 Filter Operator [FIL_73]
+                              |                    predicate:(ss_quantity BETWEEN 16 AND 20 and (ss_list_price BETWEEN 142 AND 152 or ss_coupon_amt BETWEEN 3054 AND 4054 or ss_wholesale_cost BETWEEN 80 AND 100)) (type: boolean)
+                              |                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                              |                    TableScan [TS_21]
+                              |                       alias:store_sales
+                              |                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                              |<-Reducer 4 [SIMPLE_EDGE]
+                                 Reduce Output Operator [RS_53]
+                                    sort order:
+                                    Statistics:Num rows: 1 Data size: 163 Basic stats: COMPLETE Column stats: NONE
+                                    value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(11,6)), _col4 (type: bigint), _col5 (type: bigint), _col6 (type: decimal(11,6)), _col7 (type: bigint), _col8 (type: bigint)
+                                    Merge Join Operator [MERGEJOIN_77]
+                                    |  condition map:[{"":"Inner Join 0 to 1"}]
+                                    |  keys:{}
+                                    |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8"]
+                                    |  Statistics:Num rows: 1 Data size: 163 Basic stats: COMPLETE Column stats: NONE
+                                    |<-Reducer 11 [SIMPLE_EDGE]
+                                    |  Reduce Output Operator [RS_51]
+                                    |     sort order:
+                                    |     Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                    |     value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                                    |     Group By Operator [GBY_19]
+                                    |     |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                                    |     |  outputColumnNames:["_col0","_col1","_col2"]
+                                    |     |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                    |     |<-Map 10 [SIMPLE_EDGE]
+                                    |        Reduce Output Operator [RS_18]
+                                    |           key expressions:_col0 (type: decimal(7,2))
+                                    |           sort order:+
+                                    |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |           value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                                    |           Group By Operator [GBY_17]
+                                    |              aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                                    |              keys:ss_list_price (type: decimal(7,2))
+                                    |              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                    |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |              Select Operator [SEL_16]
+                                    |                 outputColumnNames:["ss_list_price"]
+                                    |                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |                 Filter Operator [FIL_72]
+                                    |                    predicate:(ss_quantity BETWEEN 21 AND 25 and (ss_list_price BETWEEN 135 AND 145 or ss_coupon_amt BETWEEN 14180 AND 15180 or ss_wholesale_cost BETWEEN 38 AND 58)) (type: boolean)
+                                    |                    Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |                    TableScan [TS_14]
+                                    |                       alias:store_sales
+                                    |                       Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                    |<-Reducer 3 [SIMPLE_EDGE]
+                                       Reduce Output Operator [RS_50]
+                                          sort order:
+                                          Statistics:Num rows: 1 Data size: 149 Basic stats: COMPLETE Column stats: NONE
+                                          value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint), _col3 (type: decimal(11,6)), _col4 (type: bigint), _col5 (type: bigint)
+                                          Merge Join Operator [MERGEJOIN_76]
+                                          |  condition map:[{"":"Inner Join 0 to 1"}]
+                                          |  keys:{}
+                                          |  outputColumnNames:["_col0","_col1","_col2","_col3","_col4","_col5"]
+                                          |  Statistics:Num rows: 1 Data size: 149 Basic stats: COMPLETE Column stats: NONE
+                                          |<-Reducer 2 [SIMPLE_EDGE]
+                                          |  Reduce Output Operator [RS_47]
+                                          |     sort order:
+                                          |     Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                          |     value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                                          |     Group By Operator [GBY_5]
+                                          |     |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                                          |     |  outputColumnNames:["_col0","_col1","_col2"]
+                                          |     |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                          |     |<-Map 1 [SIMPLE_EDGE]
+                                          |        Reduce Output Operator [RS_4]
+                                          |           key expressions:_col0 (type: decimal(7,2))
+                                          |           sort order:+
+                                          |           Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                          |           value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                                          |           Group By Operator [GBY_3]
+                                          |              aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                                          |              keys:ss_list_price (type: decimal(7,2))
+                                          |              outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                          |              Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                          |              Select Operator [SEL_2]
+                                          |                 outputColumnNames:["ss_list_price"]
+                                          |                 Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                          |                 Filter Operator [FIL_70]
+                                          |                    predicate:(ss_quantity BETWEEN 0 AND 5 and (ss_list_price BETWEEN 11 AND 21 or ss_coupon_amt BETWEEN 460 AND 1460 or ss_wholesale_cost BETWEEN 14 AND 34)) (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
+                                          |<-Reducer 9 [SIMPLE_EDGE]
+                                             Reduce Output Operator [RS_48]
+                                                sort order:
+                                                Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                                value expressions:_col0 (type: decimal(11,6)), _col1 (type: bigint), _col2 (type: bigint)
+                                                Group By Operator [GBY_12]
+                                                |  aggregations:["avg(VALUE._col0)","count(VALUE._col1)","count(DISTINCT KEY._col0:0._col0)"]
+                                                |  outputColumnNames:["_col0","_col1","_col2"]
+                                                |  Statistics:Num rows: 1 Data size: 136 Basic stats: COMPLETE Column stats: NONE
+                                                |<-Map 8 [SIMPLE_EDGE]
+                                                   Reduce Output Operator [RS_11]
+                                                      key expressions:_col0 (type: decimal(7,2))
+                                                      sort order:+
+                                                      Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                      value expressions:_col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>), _col2 (type: bigint)
+                                                      Group By Operator [GBY_10]
+                                                         aggregations:["avg(ss_list_price)","count(ss_list_price)","count(DISTINCT ss_list_price)"]
+                                                         keys:ss_list_price (type: decimal(7,2))
+                                                         outputColumnNames:["_col0","_col1","_col2","_col3"]
+                                                         Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                         Select Operator [SEL_9]
+                                                            outputColumnNames:["ss_list_price"]
+                                                            Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                            Filter Operator [FIL_71]
+                                                               predicate:(ss_quantity BETWEEN 26 AND 30 and (ss_list_price BETWEEN 28 AND 38 or ss_coupon_amt BETWEEN 2513 AND 3513 or ss_wholesale_cost BETWEEN 42 AND 62)) (type: boolean)
+                                                               Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+                                                               TableScan [TS_7]
+                                                                  alias:store_sales
+                                                                  Statistics:Num rows: 1 Data size: 0 Basic stats: PARTIAL Column stats: NONE
+