You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2018/03/22 16:57:40 UTC

[17/34] hive git commit: HIVE-18979: Enable AggregateReduceFunctionsRule from Calcite (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

http://git-wip-us.apache.org/repos/asf/hive/blob/5cb8867b/ql/src/test/results/clientpositive/perf/spark/query9.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/spark/query9.q.out b/ql/src/test/results/clientpositive/perf/spark/query9.q.out
index 49c6b7f..610ce03 100644
--- a/ql/src/test/results/clientpositive/perf/spark/query9.q.out
+++ b/ql/src/test/results/clientpositive/perf/spark/query9.q.out
@@ -150,14 +150,14 @@ STAGE PLANS:
                       outputColumnNames: ss_ext_list_price
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_ext_list_price)
+                        aggregations: sum(ss_ext_list_price), count(ss_ext_list_price)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 12 
             Map Operator Tree:
                 TableScan
@@ -171,14 +171,14 @@ STAGE PLANS:
                       outputColumnNames: ss_net_paid_inc_tax
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_net_paid_inc_tax)
+                        aggregations: sum(ss_net_paid_inc_tax), count(ss_net_paid_inc_tax)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 14 
             Map Operator Tree:
                 TableScan
@@ -211,14 +211,14 @@ STAGE PLANS:
                       outputColumnNames: ss_ext_list_price
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_ext_list_price)
+                        aggregations: sum(ss_ext_list_price), count(ss_ext_list_price)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 18 
             Map Operator Tree:
                 TableScan
@@ -232,14 +232,14 @@ STAGE PLANS:
                       outputColumnNames: ss_net_paid_inc_tax
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_net_paid_inc_tax)
+                        aggregations: sum(ss_net_paid_inc_tax), count(ss_net_paid_inc_tax)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 2 
             Map Operator Tree:
                 TableScan
@@ -291,14 +291,14 @@ STAGE PLANS:
                       outputColumnNames: ss_ext_list_price
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_ext_list_price)
+                        aggregations: sum(ss_ext_list_price), count(ss_ext_list_price)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 24 
             Map Operator Tree:
                 TableScan
@@ -312,14 +312,14 @@ STAGE PLANS:
                       outputColumnNames: ss_net_paid_inc_tax
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_net_paid_inc_tax)
+                        aggregations: sum(ss_net_paid_inc_tax), count(ss_net_paid_inc_tax)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 26 
             Map Operator Tree:
                 TableScan
@@ -352,14 +352,14 @@ STAGE PLANS:
                       outputColumnNames: ss_ext_list_price
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_ext_list_price)
+                        aggregations: sum(ss_ext_list_price), count(ss_ext_list_price)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 30 
             Map Operator Tree:
                 TableScan
@@ -373,14 +373,14 @@ STAGE PLANS:
                       outputColumnNames: ss_net_paid_inc_tax
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_net_paid_inc_tax)
+                        aggregations: sum(ss_net_paid_inc_tax), count(ss_net_paid_inc_tax)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 4 
             Map Operator Tree:
                 TableScan
@@ -394,14 +394,14 @@ STAGE PLANS:
                       outputColumnNames: ss_ext_list_price
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_ext_list_price)
+                        aggregations: sum(ss_ext_list_price), count(ss_ext_list_price)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 6 
             Map Operator Tree:
                 TableScan
@@ -415,14 +415,14 @@ STAGE PLANS:
                       outputColumnNames: ss_net_paid_inc_tax
                       Statistics: Num rows: 63999515 Data size: 5646055787 Basic stats: COMPLETE Column stats: NONE
                       Group By Operator
-                        aggregations: avg(ss_net_paid_inc_tax)
+                        aggregations: sum(ss_net_paid_inc_tax), count(ss_net_paid_inc_tax)
                         mode: hash
-                        outputColumnNames: _col0
-                        Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
+                        outputColumnNames: _col0, _col1
+                        Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
                         Reduce Output Operator
                           sort order: 
-                          Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                          value expressions: _col0 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                          Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                          value expressions: _col0 (type: decimal(17,2)), _col1 (type: bigint)
         Map 8 
             Map Operator Tree:
                 TableScan
@@ -447,27 +447,35 @@ STAGE PLANS:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 13 
             Local Work:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 15 
             Local Work:
               Map Reduce Local Work
@@ -486,27 +494,35 @@ STAGE PLANS:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 19 
             Local Work:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 21 
             Local Work:
               Map Reduce Local Work
@@ -525,27 +541,35 @@ STAGE PLANS:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 25 
             Local Work:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 27 
             Local Work:
               Map Reduce Local Work
@@ -564,14 +588,18 @@ STAGE PLANS:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 3 
             Local Work:
               Map Reduce Local Work
@@ -590,40 +618,52 @@ STAGE PLANS:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 5 
             Local Work:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 7 
             Local Work:
               Map Reduce Local Work
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 mode: mergepartial
-                outputColumnNames: _col0
-                Statistics: Num rows: 1 Data size: 288 Basic stats: COMPLETE Column stats: NONE
-                Spark HashTable Sink Operator
-                  keys:
-                    0 
-                    1 
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                Select Operator
+                  expressions: (_col0 / _col1) (type: decimal(37,22))
+                  outputColumnNames: _col0
+                  Statistics: Num rows: 1 Data size: 120 Basic stats: COMPLETE Column stats: NONE
+                  Spark HashTable Sink Operator
+                    keys:
+                      0 
+                      1 
         Reducer 9 
             Local Work:
               Map Reduce Local Work
@@ -671,7 +711,7 @@ STAGE PLANS:
                           outputColumnNames: _col1, _col2
                           input vertices:
                             1 Reducer 5
-                          Statistics: Num rows: 36 Data size: 17928 Basic stats: COMPLETE Column stats: NONE
+                          Statistics: Num rows: 36 Data size: 11880 Basic stats: COMPLETE Column stats: NONE
                           Map Join Operator
                             condition map:
                                  Left Outer Join 0 to 1
@@ -681,7 +721,7 @@ STAGE PLANS:
                             outputColumnNames: _col1, _col2, _col3
                             input vertices:
                               1 Reducer 7
-                            Statistics: Num rows: 36 Data size: 28332 Basic stats: COMPLETE Column stats: NONE
+                            Statistics: Num rows: 36 Data size: 16236 Basic stats: COMPLETE Column stats: NONE
                             Map Join Operator
                               condition map:
                                    Left Outer Join 0 to 1
@@ -691,7 +731,7 @@ STAGE PLANS:
                               outputColumnNames: _col1, _col2, _col3, _col4
                               input vertices:
                                 1 Reducer 9
-                              Statistics: Num rows: 36 Data size: 28656 Basic stats: COMPLETE Column stats: NONE
+                              Statistics: Num rows: 36 Data size: 16560 Basic stats: COMPLETE Column stats: NONE
                               Map Join Operator
                                 condition map:
                                      Left Outer Join 0 to 1
@@ -701,7 +741,7 @@ STAGE PLANS:
                                 outputColumnNames: _col1, _col2, _col3, _col4, _col5
                                 input vertices:
                                   1 Reducer 11
-                                Statistics: Num rows: 36 Data size: 39060 Basic stats: COMPLETE Column stats: NONE
+                                Statistics: Num rows: 36 Data size: 20916 Basic stats: COMPLETE Column stats: NONE
                                 Map Join Operator
                                   condition map:
                                        Left Outer Join 0 to 1
@@ -711,7 +751,7 @@ STAGE PLANS:
                                   outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6
                                   input vertices:
                                     1 Reducer 13
-                                  Statistics: Num rows: 36 Data size: 49464 Basic stats: COMPLETE Column stats: NONE
+                                  Statistics: Num rows: 36 Data size: 25272 Basic stats: COMPLETE Column stats: NONE
                                   Map Join Operator
                                     condition map:
                                          Left Outer Join 0 to 1
@@ -721,7 +761,7 @@ STAGE PLANS:
                                     outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7
                                     input vertices:
                                       1 Reducer 15
-                                    Statistics: Num rows: 36 Data size: 49788 Basic stats: COMPLETE Column stats: NONE
+                                    Statistics: Num rows: 36 Data size: 25596 Basic stats: COMPLETE Column stats: NONE
                                     Map Join Operator
                                       condition map:
                                            Left Outer Join 0 to 1
@@ -731,7 +771,7 @@ STAGE PLANS:
                                       outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8
                                       input vertices:
                                         1 Reducer 17
-                                      Statistics: Num rows: 36 Data size: 60192 Basic stats: COMPLETE Column stats: NONE
+                                      Statistics: Num rows: 36 Data size: 29952 Basic stats: COMPLETE Column stats: NONE
                                       Map Join Operator
                                         condition map:
                                              Left Outer Join 0 to 1
@@ -741,7 +781,7 @@ STAGE PLANS:
                                         outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9
                                         input vertices:
                                           1 Reducer 19
-                                        Statistics: Num rows: 36 Data size: 70596 Basic stats: COMPLETE Column stats: NONE
+                                        Statistics: Num rows: 36 Data size: 34308 Basic stats: COMPLETE Column stats: NONE
                                         Map Join Operator
                                           condition map:
                                                Left Outer Join 0 to 1
@@ -751,7 +791,7 @@ STAGE PLANS:
                                           outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10
                                           input vertices:
                                             1 Reducer 21
-                                          Statistics: Num rows: 36 Data size: 70920 Basic stats: COMPLETE Column stats: NONE
+                                          Statistics: Num rows: 36 Data size: 34632 Basic stats: COMPLETE Column stats: NONE
                                           Map Join Operator
                                             condition map:
                                                  Left Outer Join 0 to 1
@@ -761,7 +801,7 @@ STAGE PLANS:
                                             outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11
                                             input vertices:
                                               1 Reducer 23
-                                            Statistics: Num rows: 36 Data size: 81324 Basic stats: COMPLETE Column stats: NONE
+                                            Statistics: Num rows: 36 Data size: 38988 Basic stats: COMPLETE Column stats: NONE
                                             Map Join Operator
                                               condition map:
                                                    Left Outer Join 0 to 1
@@ -771,7 +811,7 @@ STAGE PLANS:
                                               outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12
                                               input vertices:
                                                 1 Reducer 25
-                                              Statistics: Num rows: 36 Data size: 91728 Basic stats: COMPLETE Column stats: NONE
+                                              Statistics: Num rows: 36 Data size: 43344 Basic stats: COMPLETE Column stats: NONE
                                               Map Join Operator
                                                 condition map:
                                                      Left Outer Join 0 to 1
@@ -781,7 +821,7 @@ STAGE PLANS:
                                                 outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                                                 input vertices:
                                                   1 Reducer 27
-                                                Statistics: Num rows: 36 Data size: 92052 Basic stats: COMPLETE Column stats: NONE
+                                                Statistics: Num rows: 36 Data size: 43668 Basic stats: COMPLETE Column stats: NONE
                                                 Map Join Operator
                                                   condition map:
                                                        Left Outer Join 0 to 1
@@ -791,7 +831,7 @@ STAGE PLANS:
                                                   outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14
                                                   input vertices:
                                                     1 Reducer 29
-                                                  Statistics: Num rows: 36 Data size: 102456 Basic stats: COMPLETE Column stats: NONE
+                                                  Statistics: Num rows: 36 Data size: 48024 Basic stats: COMPLETE Column stats: NONE
                                                   Map Join Operator
                                                     condition map:
                                                          Left Outer Join 0 to 1
@@ -801,14 +841,14 @@ STAGE PLANS:
                                                     outputColumnNames: _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15
                                                     input vertices:
                                                       1 Reducer 31
-                                                    Statistics: Num rows: 36 Data size: 112860 Basic stats: COMPLETE Column stats: NONE
+                                                    Statistics: Num rows: 36 Data size: 52380 Basic stats: COMPLETE Column stats: NONE
                                                     Select Operator
-                                                      expressions: CASE WHEN ((_col1 > 409437L)) THEN (_col2) ELSE (_col3) END (type: decimal(11,6)), CASE WHEN ((_col4 > 4595804L)) THEN (_col5) ELSE (_col6) END (type: decimal(11,6)), CASE WHEN ((_col7 > 7887297L)) THEN (_col8) ELSE (_col9) END (type: decimal(11,6)), CASE WHEN ((_col10 > 10872978L)) THEN (_col11) ELSE (_col12) END (type: decimal(11,6)), CASE WHEN ((_col13 > 43571537L)) THEN (_col14) ELSE (_col15) END (type: decimal(11,6))
+                                                      expressions: CASE WHEN ((_col1 > 409437L)) THEN (_col2) ELSE (_col3) END (type: decimal(37,22)), CASE WHEN ((_col4 > 4595804L)) THEN (_col5) ELSE (_col6) END (type: decimal(37,22)), CASE WHEN ((_col7 > 7887297L)) THEN (_col8) ELSE (_col9) END (type: decimal(37,22)), CASE WHEN ((_col10 > 10872978L)) THEN (_col11) ELSE (_col12) END (type: decimal(37,22)), CASE WHEN ((_col13 > 43571537L)) THEN (_col14) ELSE (_col15) END (type: decimal(37,22))
                                                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
-                                                      Statistics: Num rows: 36 Data size: 112860 Basic stats: COMPLETE Column stats: NONE
+                                                      Statistics: Num rows: 36 Data size: 52380 Basic stats: COMPLETE Column stats: NONE
                                                       File Output Operator
                                                         compressed: false
-                                                        Statistics: Num rows: 36 Data size: 112860 Basic stats: COMPLETE Column stats: NONE
+                                                        Statistics: Num rows: 36 Data size: 52380 Basic stats: COMPLETE Column stats: NONE
                                                         table:
                                                             input format: org.apache.hadoop.mapred.SequenceFileInputFormat
                                                             output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat

http://git-wip-us.apache.org/repos/asf/hive/blob/5cb8867b/ql/src/test/results/clientpositive/perf/spark/query92.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/spark/query92.q.out b/ql/src/test/results/clientpositive/perf/spark/query92.q.out
index 1b73ab5..e7b8632 100644
--- a/ql/src/test/results/clientpositive/perf/spark/query92.q.out
+++ b/ql/src/test/results/clientpositive/perf/spark/query92.q.out
@@ -189,17 +189,17 @@ STAGE PLANS:
                           1 Map 9
                         Statistics: Num rows: 158402938 Data size: 21538218500 Basic stats: COMPLETE Column stats: NONE
                         Group By Operator
-                          aggregations: avg(_col2)
+                          aggregations: sum(_col2), count(_col2)
                           keys: _col1 (type: int)
                           mode: hash
-                          outputColumnNames: _col0, _col1
+                          outputColumnNames: _col0, _col1, _col2
                           Statistics: Num rows: 158402938 Data size: 21538218500 Basic stats: COMPLETE Column stats: NONE
                           Reduce Output Operator
                             key expressions: _col0 (type: int)
                             sort order: +
                             Map-reduce partition columns: _col0 (type: int)
                             Statistics: Num rows: 158402938 Data size: 21538218500 Basic stats: COMPLETE Column stats: NONE
-                            value expressions: _col1 (type: struct<count:bigint,sum:decimal(17,2),input:decimal(7,2)>)
+                            value expressions: _col1 (type: decimal(17,2)), _col2 (type: bigint)
             Local Work:
               Map Reduce Local Work
         Reducer 2 
@@ -263,13 +263,13 @@ STAGE PLANS:
         Reducer 7 
             Reduce Operator Tree:
               Group By Operator
-                aggregations: avg(VALUE._col0)
+                aggregations: sum(VALUE._col0), count(VALUE._col1)
                 keys: KEY._col0 (type: int)
                 mode: mergepartial
-                outputColumnNames: _col0, _col1
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 79201469 Data size: 10769109250 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: (1.3 * _col1) (type: decimal(14,7)), _col0 (type: int)
+                  expressions: (1.3 * (_col1 / _col2)) (type: decimal(38,21)), _col0 (type: int)
                   outputColumnNames: _col0, _col1
                   Statistics: Num rows: 79201469 Data size: 10769109250 Basic stats: COMPLETE Column stats: NONE
                   Reduce Output Operator
@@ -277,7 +277,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col1 (type: int)
                     Statistics: Num rows: 79201469 Data size: 10769109250 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: decimal(14,7))
+                    value expressions: _col0 (type: decimal(38,21))
         Reducer 8 
             Reduce Operator Tree:
               Join Operator
@@ -293,7 +293,7 @@ STAGE PLANS:
                   sort order: +
                   Map-reduce partition columns: _col2 (type: int)
                   Statistics: Num rows: 87121617 Data size: 11846020431 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: decimal(14,7))
+                  value expressions: _col0 (type: decimal(38,21))
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/5cb8867b/ql/src/test/results/clientpositive/perf/tez/query1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query1.q.out b/ql/src/test/results/clientpositive/perf/tez/query1.q.out
index ad350c1..cbdd09a 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query1.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query1.q.out
@@ -142,7 +142,7 @@ Stage-0
                       Select Operator [SEL_38] (rows=15837566 width=77)
                         Output:["_col0","_col1","_col2"]
                         Group By Operator [GBY_37] (rows=15837566 width=77)
-                          Output:["_col0","_col1"],aggregations:["avg(_col2)"],keys:_col1
+                          Output:["_col0","_col1","_col2"],aggregations:["sum(_col2)","count(_col2)"],keys:_col1
                           Select Operator [SEL_33] (rows=31675133 width=77)
                             Output:["_col1","_col2"]
                             Group By Operator [GBY_32] (rows=31675133 width=77)

http://git-wip-us.apache.org/repos/asf/hive/blob/5cb8867b/ql/src/test/results/clientpositive/perf/tez/query13.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/perf/tez/query13.q.out b/ql/src/test/results/clientpositive/perf/tez/query13.q.out
index 7cb5449..065b231 100644
--- a/ql/src/test/results/clientpositive/perf/tez/query13.q.out
+++ b/ql/src/test/results/clientpositive/perf/tez/query13.q.out
@@ -114,92 +114,94 @@ Stage-0
     Stage-1
       Reducer 7
       File Output Operator [FS_40]
-        Group By Operator [GBY_38] (rows=1 width=764)
-          Output:["_col0","_col1","_col2","_col3"],aggregations:["avg(VALUE._col0)","avg(VALUE._col1)","avg(VALUE._col2)","sum(VALUE._col3)"]
-        <-Reducer 6 [CUSTOM_SIMPLE_EDGE]
-          PARTITION_ONLY_SHUFFLE [RS_37]
-            Group By Operator [GBY_36] (rows=1 width=764)
-              Output:["_col0","_col1","_col2","_col3"],aggregations:["avg(_col6)","avg(_col8)","avg(_col9)","sum(_col9)"]
-              Select Operator [SEL_35] (rows=715776 width=88)
-                Output:["_col6","_col8","_col9"]
-                Filter Operator [FIL_34] (rows=715776 width=88)
-                  predicate:(((_col19 = 'D') and (_col20 = 'Primary') and _col7 BETWEEN 50 AND 100 and (_col14 = 1)) or ((_col19 = 'M') and (_col20 = '4 yr Degree') and _col7 BETWEEN 100 AND 150 and (_col14 = 3)) or ((_col19 = 'U') and (_col20 = 'Advanced Degree') and _col7 BETWEEN 150 AND 200 and (_col14 = 1)))
-                  Merge Join Operator [MERGEJOIN_71] (rows=17178642 width=88)
-                    Conds:RS_31._col2=RS_32._col0(Inner),Output:["_col6","_col7","_col8","_col9","_col14","_col19","_col20"]
-                  <-Map 12 [SIMPLE_EDGE]
-                    SHUFFLE [RS_32]
-                      PartitionCols:_col0
-                      Select Operator [SEL_17] (rows=1861800 width=385)
-                        Output:["_col0","_col1","_col2"]
-                        Filter Operator [FIL_66] (rows=1861800 width=385)
-                          predicate:(((cd_education_status = '4 yr Degree') or (cd_education_status = 'Primary') or (cd_education_status = 'Advanced Degree')) and ((cd_marital_status = 'M') or (cd_marital_status = 'D') or (cd_marital_status = 'U')) and cd_demo_sk is not null)
-                          TableScan [TS_15] (rows=1861800 width=385)
-                            default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_marital_status","cd_education_status"]
-                  <-Reducer 5 [SIMPLE_EDGE]
-                    SHUFFLE [RS_31]
-                      PartitionCols:_col2
-                      Filter Operator [FIL_30] (rows=15616947 width=88)
-                        predicate:(((_col16) IN ('KY', 'GA', 'NM') and _col10 BETWEEN 100 AND 200) or ((_col16) IN ('MT', 'OR', 'IN') and _col10 BETWEEN 150 AND 300) or ((_col16) IN ('WI', 'MO', 'WV') and _col10 BETWEEN 50 AND 250))
-                        Merge Join Operator [MERGEJOIN_70] (rows=93701693 width=88)
-                          Conds:RS_27._col4=RS_28._col0(Inner),Output:["_col2","_col6","_col7","_col8","_col9","_col10","_col14","_col16"]
-                        <-Map 11 [SIMPLE_EDGE]
-                          SHUFFLE [RS_28]
-                            PartitionCols:_col0
-                            Select Operator [SEL_14] (rows=10000000 width=1014)
-                              Output:["_col0","_col1"]
-                              Filter Operator [FIL_65] (rows=10000000 width=1014)
-                                predicate:((ca_country = 'United States') and (ca_state) IN ('KY', 'GA', 'NM', 'MT', 'OR', 'IN', 'WI', 'MO', 'WV') and ca_address_sk is not null)
-                                TableScan [TS_12] (rows=40000000 width=1014)
-                                  default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_country"]
-                        <-Reducer 4 [SIMPLE_EDGE]
-                          SHUFFLE [RS_27]
-                            PartitionCols:_col4
-                            Merge Join Operator [MERGEJOIN_69] (rows=85183356 width=88)
-                              Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8","_col9","_col10","_col14"]
-                            <-Map 10 [SIMPLE_EDGE]
-                              SHUFFLE [RS_25]
-                                PartitionCols:_col0
-                                Select Operator [SEL_11] (rows=7200 width=107)
-                                  Output:["_col0","_col1"]
-                                  Filter Operator [FIL_64] (rows=7200 width=107)
-                                    predicate:(((hd_dep_count = 3) or (hd_dep_count = 1)) and hd_demo_sk is not null)
-                                    TableScan [TS_9] (rows=7200 width=107)
-                                      default@household_demographics,household_demographics,Tbl:COMPLETE,Col:NONE,Output:["hd_demo_sk","hd_dep_count"]
-                            <-Reducer 3 [SIMPLE_EDGE]
-                              SHUFFLE [RS_24]
-                                PartitionCols:_col3
-                                Merge Join Operator [MERGEJOIN_68] (rows=77439413 width=88)
-                                  Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col2","_col3","_col4","_col6","_col7","_col8","_col9","_col10"]
-                                <-Map 9 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_22]
-                                    PartitionCols:_col0
-                                    Select Operator [SEL_8] (rows=36524 width=1119)
-                                      Output:["_col0"]
-                                      Filter Operator [FIL_63] (rows=36524 width=1119)
-                                        predicate:((d_year = 2001) and d_date_sk is not null)
-                                        TableScan [TS_6] (rows=73049 width=1119)
-                                          default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
-                                <-Reducer 2 [SIMPLE_EDGE]
-                                  SHUFFLE [RS_21]
-                                    PartitionCols:_col1
-                                    Merge Join Operator [MERGEJOIN_67] (rows=70399465 width=88)
-                                      Conds:RS_18._col0=RS_19._col4(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7","_col8","_col9","_col10"]
-                                    <-Map 1 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_18]
-                                        PartitionCols:_col0
-                                        Select Operator [SEL_2] (rows=1704 width=1910)
-                                          Output:["_col0"]
-                                          Filter Operator [FIL_61] (rows=1704 width=1910)
-                                            predicate:s_store_sk is not null
-                                            TableScan [TS_0] (rows=1704 width=1910)
-                                              default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk"]
-                                    <-Map 8 [SIMPLE_EDGE]
-                                      SHUFFLE [RS_19]
-                                        PartitionCols:_col4
-                                        Select Operator [SEL_5] (rows=63999513 width=88)
-                                          Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
-                                          Filter Operator [FIL_62] (rows=63999513 width=88)
-                                            predicate:((ss_net_profit BETWEEN 100 AND 200 or ss_net_profit BETWEEN 150 AND 300 or ss_net_profit BETWEEN 50 AND 250) and (ss_sales_price BETWEEN 100 AND 150 or ss_sales_price BETWEEN 50 AND 100 or ss_sales_price BETWEEN 150 AND 200) and ss_addr_sk is not null and ss_cdemo_sk is not null and ss_hdemo_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null)
-                                            TableScan [TS_3] (rows=575995635 width=88)
-                                              default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_cdemo_sk","ss_hdemo_sk","ss_addr_sk","ss_store_sk","ss_quantity","ss_sales_price","ss_ext_sales_price","ss_ext_wholesale_cost","ss_net_profit"]
+        Select Operator [SEL_39] (rows=1 width=256)
+          Output:["_col0","_col1","_col2","_col3"]
+          Group By Operator [GBY_38] (rows=1 width=256)
+            Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(VALUE._col0)","count(VALUE._col1)","sum(VALUE._col2)","count(VALUE._col3)","sum(VALUE._col4)","count(VALUE._col5)"]
+          <-Reducer 6 [CUSTOM_SIMPLE_EDGE]
+            PARTITION_ONLY_SHUFFLE [RS_37]
+              Group By Operator [GBY_36] (rows=1 width=256)
+                Output:["_col0","_col1","_col2","_col3","_col4","_col5"],aggregations:["sum(_col6)","count(_col6)","sum(_col8)","count(_col8)","sum(_col9)","count(_col9)"]
+                Select Operator [SEL_35] (rows=715776 width=88)
+                  Output:["_col6","_col8","_col9"]
+                  Filter Operator [FIL_34] (rows=715776 width=88)
+                    predicate:(((_col19 = 'D') and (_col20 = 'Primary') and _col7 BETWEEN 50 AND 100 and (_col14 = 1)) or ((_col19 = 'M') and (_col20 = '4 yr Degree') and _col7 BETWEEN 100 AND 150 and (_col14 = 3)) or ((_col19 = 'U') and (_col20 = 'Advanced Degree') and _col7 BETWEEN 150 AND 200 and (_col14 = 1)))
+                    Merge Join Operator [MERGEJOIN_71] (rows=17178642 width=88)
+                      Conds:RS_31._col2=RS_32._col0(Inner),Output:["_col6","_col7","_col8","_col9","_col14","_col19","_col20"]
+                    <-Map 12 [SIMPLE_EDGE]
+                      SHUFFLE [RS_32]
+                        PartitionCols:_col0
+                        Select Operator [SEL_17] (rows=1861800 width=385)
+                          Output:["_col0","_col1","_col2"]
+                          Filter Operator [FIL_66] (rows=1861800 width=385)
+                            predicate:(((cd_education_status = '4 yr Degree') or (cd_education_status = 'Primary') or (cd_education_status = 'Advanced Degree')) and ((cd_marital_status = 'M') or (cd_marital_status = 'D') or (cd_marital_status = 'U')) and cd_demo_sk is not null)
+                            TableScan [TS_15] (rows=1861800 width=385)
+                              default@customer_demographics,customer_demographics,Tbl:COMPLETE,Col:NONE,Output:["cd_demo_sk","cd_marital_status","cd_education_status"]
+                    <-Reducer 5 [SIMPLE_EDGE]
+                      SHUFFLE [RS_31]
+                        PartitionCols:_col2
+                        Filter Operator [FIL_30] (rows=15616947 width=88)
+                          predicate:(((_col16) IN ('KY', 'GA', 'NM') and _col10 BETWEEN 100 AND 200) or ((_col16) IN ('MT', 'OR', 'IN') and _col10 BETWEEN 150 AND 300) or ((_col16) IN ('WI', 'MO', 'WV') and _col10 BETWEEN 50 AND 250))
+                          Merge Join Operator [MERGEJOIN_70] (rows=93701693 width=88)
+                            Conds:RS_27._col4=RS_28._col0(Inner),Output:["_col2","_col6","_col7","_col8","_col9","_col10","_col14","_col16"]
+                          <-Map 11 [SIMPLE_EDGE]
+                            SHUFFLE [RS_28]
+                              PartitionCols:_col0
+                              Select Operator [SEL_14] (rows=10000000 width=1014)
+                                Output:["_col0","_col1"]
+                                Filter Operator [FIL_65] (rows=10000000 width=1014)
+                                  predicate:((ca_country = 'United States') and (ca_state) IN ('KY', 'GA', 'NM', 'MT', 'OR', 'IN', 'WI', 'MO', 'WV') and ca_address_sk is not null)
+                                  TableScan [TS_12] (rows=40000000 width=1014)
+                                    default@customer_address,customer_address,Tbl:COMPLETE,Col:NONE,Output:["ca_address_sk","ca_state","ca_country"]
+                          <-Reducer 4 [SIMPLE_EDGE]
+                            SHUFFLE [RS_27]
+                              PartitionCols:_col4
+                              Merge Join Operator [MERGEJOIN_69] (rows=85183356 width=88)
+                                Conds:RS_24._col3=RS_25._col0(Inner),Output:["_col2","_col4","_col6","_col7","_col8","_col9","_col10","_col14"]
+                              <-Map 10 [SIMPLE_EDGE]
+                                SHUFFLE [RS_25]
+                                  PartitionCols:_col0
+                                  Select Operator [SEL_11] (rows=7200 width=107)
+                                    Output:["_col0","_col1"]
+                                    Filter Operator [FIL_64] (rows=7200 width=107)
+                                      predicate:(((hd_dep_count = 3) or (hd_dep_count = 1)) and hd_demo_sk is not null)
+                                      TableScan [TS_9] (rows=7200 width=107)
+                                        default@household_demographics,household_demographics,Tbl:COMPLETE,Col:NONE,Output:["hd_demo_sk","hd_dep_count"]
+                              <-Reducer 3 [SIMPLE_EDGE]
+                                SHUFFLE [RS_24]
+                                  PartitionCols:_col3
+                                  Merge Join Operator [MERGEJOIN_68] (rows=77439413 width=88)
+                                    Conds:RS_21._col1=RS_22._col0(Inner),Output:["_col2","_col3","_col4","_col6","_col7","_col8","_col9","_col10"]
+                                  <-Map 9 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_22]
+                                      PartitionCols:_col0
+                                      Select Operator [SEL_8] (rows=36524 width=1119)
+                                        Output:["_col0"]
+                                        Filter Operator [FIL_63] (rows=36524 width=1119)
+                                          predicate:((d_year = 2001) and d_date_sk is not null)
+                                          TableScan [TS_6] (rows=73049 width=1119)
+                                            default@date_dim,date_dim,Tbl:COMPLETE,Col:NONE,Output:["d_date_sk","d_year"]
+                                  <-Reducer 2 [SIMPLE_EDGE]
+                                    SHUFFLE [RS_21]
+                                      PartitionCols:_col1
+                                      Merge Join Operator [MERGEJOIN_67] (rows=70399465 width=88)
+                                        Conds:RS_18._col0=RS_19._col4(Inner),Output:["_col1","_col2","_col3","_col4","_col6","_col7","_col8","_col9","_col10"]
+                                      <-Map 1 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_18]
+                                          PartitionCols:_col0
+                                          Select Operator [SEL_2] (rows=1704 width=1910)
+                                            Output:["_col0"]
+                                            Filter Operator [FIL_61] (rows=1704 width=1910)
+                                              predicate:s_store_sk is not null
+                                              TableScan [TS_0] (rows=1704 width=1910)
+                                                default@store,store,Tbl:COMPLETE,Col:NONE,Output:["s_store_sk"]
+                                      <-Map 8 [SIMPLE_EDGE]
+                                        SHUFFLE [RS_19]
+                                          PartitionCols:_col4
+                                          Select Operator [SEL_5] (rows=63999513 width=88)
+                                            Output:["_col0","_col1","_col2","_col3","_col4","_col5","_col6","_col7","_col8","_col9"]
+                                            Filter Operator [FIL_62] (rows=63999513 width=88)
+                                              predicate:((ss_net_profit BETWEEN 100 AND 200 or ss_net_profit BETWEEN 150 AND 300 or ss_net_profit BETWEEN 50 AND 250) and (ss_sales_price BETWEEN 100 AND 150 or ss_sales_price BETWEEN 50 AND 100 or ss_sales_price BETWEEN 150 AND 200) and ss_addr_sk is not null and ss_cdemo_sk is not null and ss_hdemo_sk is not null and ss_sold_date_sk is not null and ss_store_sk is not null)
+                                              TableScan [TS_3] (rows=575995635 width=88)
+                                                default@store_sales,store_sales,Tbl:COMPLETE,Col:NONE,Output:["ss_sold_date_sk","ss_cdemo_sk","ss_hdemo_sk","ss_addr_sk","ss_store_sk","ss_quantity","ss_sales_price","ss_ext_sales_price","ss_ext_wholesale_cost","ss_net_profit"]