FAQ
Repository: hive
Updated Branches:
   refs/heads/master b187d42b2 -> 08f73adca


http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/groupby_sort_skew_1_23.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/groupby_sort_skew_1_23.q.out b/ql/src/test/results/clientpositive/spark/groupby_sort_skew_1_23.q.out
index 3a49501..8370bbe 100644
--- a/ql/src/test/results/clientpositive/spark/groupby_sort_skew_1_23.q.out
+++ b/ql/src/test/results/clientpositive/spark/groupby_sort_skew_1_23.q.out
@@ -2837,22 +2837,22 @@ STAGE PLANS:
                    Filter Operator
                      isSamplingPred: false
                      predicate: key is not null (type: boolean)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: key (type: string)
                        outputColumnNames: _col0
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count(1)
                          keys: _col0 (type: string)
                          mode: final
                          outputColumnNames: _col0, _col1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                          Reduce Output Operator
                            key expressions: _col0 (type: string)
                            sort order: +
                            Map-reduce partition columns: _col0 (type: string)
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                            tag: 0
                            value expressions: _col1 (type: bigint)
                            auto parallelism: false
@@ -2918,22 +2918,22 @@ STAGE PLANS:
                    Filter Operator
                      isSamplingPred: false
                      predicate: key is not null (type: boolean)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: key (type: string)
                        outputColumnNames: _col0
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count(1)
                          keys: _col0 (type: string)
                          mode: final
                          outputColumnNames: _col0, _col1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                          Reduce Output Operator
                            key expressions: _col0 (type: string)
                            sort order: +
                            Map-reduce partition columns: _col0 (type: string)
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                            tag: 1
                            value expressions: _col1 (type: bigint)
                            auto parallelism: false
@@ -3000,17 +3000,17 @@ STAGE PLANS:
                    0 _col0 (type: string)
                    1 _col0 (type: string)
                  outputColumnNames: _col0, _col1, _col3
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                  Select Operator
                    expressions: UDFToInteger(_col0) (type: int), UDFToInteger((_col1 + _col3)) (type: int)
                    outputColumnNames: _col0, _col1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                    File Output Operator
                      compressed: false
                      GlobalTableId: 1
  #### A masked pattern was here ####
                      NumFilesPerFileSink: 1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
  #### A masked pattern was here ####
                      table:
                          input format: org.apache.hadoop.mapred.TextInputFormat
@@ -3211,22 +3211,22 @@ STAGE PLANS:
                    Filter Operator
                      isSamplingPred: false
                      predicate: key is not null (type: boolean)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: key (type: string)
                        outputColumnNames: _col0
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count(1)
                          keys: _col0 (type: string)
                          mode: final
                          outputColumnNames: _col0, _col1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                          Reduce Output Operator
                            key expressions: _col0 (type: string)
                            sort order: +
                            Map-reduce partition columns: _col0 (type: string)
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                            tag: 0
                            value expressions: _col1 (type: bigint)
                            auto parallelism: false
@@ -3292,22 +3292,22 @@ STAGE PLANS:
                    Filter Operator
                      isSamplingPred: false
                      predicate: key is not null (type: boolean)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: key (type: string), val (type: string)
                        outputColumnNames: _col0, _col1
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count(1)
                          keys: _col0 (type: string), _col1 (type: string)
                          mode: hash
                          outputColumnNames: _col0, _col1, _col2
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                          Reduce Output Operator
                            key expressions: _col0 (type: string), _col1 (type: string)
                            sort order: ++
                            Map-reduce partition columns: rand() (type: double)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                            tag: -1
                            value expressions: _col2 (type: bigint)
                            auto parallelism: false
@@ -3374,13 +3374,13 @@ STAGE PLANS:
                    0 _col0 (type: string)
                    1 _col0 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    GlobalTableId: 0
  #### A masked pattern was here ####
                    NumFilesPerFileSink: 1
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
  #### A masked pattern was here ####
                    table:
                        input format: org.apache.hadoop.mapred.TextInputFormat
@@ -3405,12 +3405,12 @@ STAGE PLANS:
                  keys: KEY._col0 (type: string), KEY._col1 (type: string)
                  mode: partials
                  outputColumnNames: _col0, _col1, _col2
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Reduce Output Operator
                    key expressions: _col0 (type: string), _col1 (type: string)
                    sort order: ++
                    Map-reduce partition columns: _col0 (type: string), _col1 (type: string)
- Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    tag: -1
                    value expressions: _col2 (type: bigint)
                    auto parallelism: false
@@ -3422,12 +3422,12 @@ STAGE PLANS:
                  keys: KEY._col0 (type: string), KEY._col1 (type: string)
                  mode: final
                  outputColumnNames: _col0, _col1, _col2
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                  Reduce Output Operator
                    key expressions: _col0 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col0 (type: string)
- Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
+ Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                    tag: 1
                    value expressions: _col1 (type: string), _col2 (type: bigint)
                    auto parallelism: false

Search Discussions

  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoin_mapjoin6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoin_mapjoin6.q.out b/ql/src/test/results/clientpositive/skewjoin_mapjoin6.q.out
    index ec9fae1..93cc1eb 100644
    --- a/ql/src/test/results/clientpositive/skewjoin_mapjoin6.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoin_mapjoin6.q.out
    @@ -99,7 +99,7 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and (key = '8')) (type: boolean)
    - Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -107,25 +107,25 @@ STAGE PLANS:
                        0 key (type: string)
                        1 key (type: string)
                      outputColumnNames: _col0, _col6
    - Statistics: Num rows: 1 Data size: 33 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: string), _col6 (type: array<string>)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1 Data size: 33 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                        Union
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                          Lateral View Forward
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: string), _col1 (type: array<string>)
                              outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                              Lateral View Join Operator
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -133,16 +133,16 @@ STAGE PLANS:
                            Select Operator
                              expressions: _col1 (type: array<string>)
                              outputColumnNames: _col0
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                              UDTF Operator
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                                function name: explode
                                Lateral View Join Operator
                                  outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                  File Output Operator
                                    compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                    table:
                                        input format: org.apache.hadoop.mapred.TextInputFormat
                                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -152,7 +152,7 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and (not (key = '8'))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -160,25 +160,25 @@ STAGE PLANS:
                        0 key (type: string)
                        1 key (type: string)
                      outputColumnNames: _col0, _col6
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: string), _col6 (type: array<string>)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                        Union
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                          Lateral View Forward
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: string), _col1 (type: array<string>)
                              outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                              Lateral View Join Operator
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -186,16 +186,16 @@ STAGE PLANS:
                            Select Operator
                              expressions: _col1 (type: array<string>)
                              outputColumnNames: _col0
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                              UDTF Operator
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                                function name: explode
                                Lateral View Join Operator
                                  outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                  File Output Operator
                                    compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                                    table:
                                        input format: org.apache.hadoop.mapred.TextInputFormat
                                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoin_noskew.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoin_noskew.q.out b/ql/src/test/results/clientpositive/skewjoin_noskew.q.out
    index a8e3e8b..9b28649 100644
    --- a/ql/src/test/results/clientpositive/skewjoin_noskew.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoin_noskew.q.out
    @@ -23,32 +23,32 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string)
                TableScan
                  alias: a
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -58,7 +58,7 @@ STAGE PLANS:
                  0 _col0 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
                  table:
    @@ -110,14 +110,14 @@ STAGE PLANS:
                  Reduce Output Operator
                    key expressions: _col0 (type: string)
                    sort order: +
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                    TopN Hash Memory Usage: 0.1
                    value expressions: _col1 (type: string)
            Reduce Operator Tree:
              Select Operator
                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string)
                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                Limit
                  Number of rows: 30
                  Statistics: Num rows: 30 Data size: 300 Basic stats: COMPLETE Column stats: NONE

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoin_onesideskew.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoin_onesideskew.q.out b/ql/src/test/results/clientpositive/skewjoin_onesideskew.q.out
    index ae47adf..5fec08b 100644
    --- a/ql/src/test/results/clientpositive/skewjoin_onesideskew.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoin_onesideskew.q.out
    @@ -96,32 +96,32 @@ STAGE PLANS:
                  Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string)
                TableScan
                  alias: b
                  Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -131,10 +131,10 @@ STAGE PLANS:
                  0 _col0 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 23 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 23 Basic stats: COMPLETE Column stats: NONE
                  table:
                      input format: org.apache.hadoop.mapred.TextInputFormat
                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -171,7 +171,7 @@ STAGE PLANS:
                    outputColumnNames: _col0, _col1
                    File Output Operator
                      compressed: false
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 23 Basic stats: COMPLETE Column stats: NONE
                      table:
                          input format: org.apache.hadoop.mapred.TextInputFormat
                          output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt10.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt10.q.out b/ql/src/test/results/clientpositive/skewjoinopt10.q.out
    index 7655cf3..53ff911 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt10.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt10.q.out
    @@ -74,12 +74,12 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and (key = '8')) (type: boolean)
    - Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                    Reduce Output Operator
                      key expressions: key (type: string)
                      sort order: +
                      Map-reduce partition columns: key (type: string)
    - Statistics: Num rows: 1 Data size: 4 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                      value expressions: value (type: array<string>)
            Reduce Operator Tree:
              Join Operator
    @@ -89,11 +89,11 @@ STAGE PLANS:
                  0 key (type: string)
                  1 key (type: string)
                outputColumnNames: _col0, _col6
    - Statistics: Num rows: 1 Data size: 33 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col6 (type: array<string>)
                  outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1 Data size: 33 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -106,19 +106,19 @@ STAGE PLANS:
            Map Operator Tree:
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                    Lateral View Forward
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: string), _col1 (type: array<string>)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                        Lateral View Join Operator
                          outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                            table:
                                input format: org.apache.hadoop.mapred.TextInputFormat
                                output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -126,35 +126,35 @@ STAGE PLANS:
                      Select Operator
                        expressions: _col1 (type: array<string>)
                        outputColumnNames: _col0
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                        UDTF Operator
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                          function name: explode
                          Lateral View Join Operator
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                            File Output Operator
                              compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 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
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                    Lateral View Forward
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: string), _col1 (type: array<string>)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                        Lateral View Join Operator
                          outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                            table:
                                input format: org.apache.hadoop.mapred.TextInputFormat
                                output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -162,16 +162,16 @@ STAGE PLANS:
                      Select Operator
                        expressions: _col1 (type: array<string>)
                        outputColumnNames: _col0
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                        UDTF Operator
    - Statistics: Num rows: 3 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                          function name: explode
                          Lateral View Join Operator
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                            File Output Operator
                              compressed: false
    - Statistics: Num rows: 6 Data size: 82 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 52 Basic stats: COMPLETE Column stats: NONE
                              table:
                                  input format: org.apache.hadoop.mapred.TextInputFormat
                                  output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -196,23 +196,23 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and (not (key = '8'))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                    Reduce Output Operator
                      key expressions: key (type: string)
                      sort order: +
                      Map-reduce partition columns: key (type: string)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
                      value expressions: value (type: array<string>)
            Reduce Operator Tree:
              Join Operator
                condition map:
                     Inner Join 0 to 1
                outputColumnNames: _col0, _col6
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col6 (type: array<string>)
                  outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt12.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt12.q.out b/ql/src/test/results/clientpositive/skewjoinopt12.q.out
    index 6c38b97..5109173 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt12.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt12.q.out
    @@ -62,7 +62,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -77,7 +77,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -135,7 +135,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13'))))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13'))))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -150,7 +150,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13'))))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') and (val = '12')) or ((key = '8') and (val = '18'))) or ((key = '3') and (val = '13'))))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt15.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt15.q.out b/ql/src/test/results/clientpositive/skewjoinopt15.q.out
    index e9b2984..75269a2 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt15.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt15.q.out
    @@ -101,32 +101,32 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and ((key = 2) or (key = 3))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: int), val (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 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: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string)
                TableScan
                  alias: b
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and ((key = 2) or (key = 3))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: int), val (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 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: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string)
            Reduce Operator Tree:
              Join Operator
    @@ -136,7 +136,7 @@ STAGE PLANS:
                  0 _col0 (type: int)
                  1 _col0 (type: int)
                outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
                  table:
    @@ -149,20 +149,20 @@ STAGE PLANS:
            Map Operator Tree:
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    File Output Operator
                      compressed: false
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 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
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    File Output Operator
                      compressed: false
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                      table:
                          input format: org.apache.hadoop.mapred.TextInputFormat
                          output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -431,31 +431,31 @@ STAGE PLANS:
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and ((key = 2) or (key = 3))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: int)
                      outputColumnNames: _col0
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 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: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                TableScan
                  alias: b
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and ((key = 2) or (key = 3))) (type: boolean)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: int)
                      outputColumnNames: _col0
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 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: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -463,7 +463,7 @@ STAGE PLANS:
                keys:
                  0 _col0 (type: int)
                  1 _col0 (type: int)
    - Statistics: Num rows: 2 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
                  table:
    @@ -476,7 +476,7 @@ STAGE PLANS:
            Map Operator Tree:
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Group By Operator
                      aggregations: count(1)
                      mode: hash
    @@ -488,7 +488,7 @@ STAGE PLANS:
                        value expressions: _col0 (type: bigint)
                TableScan
                  Union
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Group By Operator
                      aggregations: count(1)
                      mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt16.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt16.q.out b/ql/src/test/results/clientpositive/skewjoinopt16.q.out
    index 15b3e62..de98696 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt16.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt16.q.out
    @@ -62,7 +62,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (((key = '2') and (val = '12')) or (key = '3'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (((key = '2') and (val = '12')) or (key = '3'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -77,7 +77,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (((key = '2') and (val = '12')) or (key = '3'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (((key = '2') and (val = '12')) or (key = '3'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -135,7 +135,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not (((key = '2') and (val = '12')) or (key = '3')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not (((key = '2') and (val = '12')) or (key = '3')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -150,7 +150,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not (((key = '2') and (val = '12')) or (key = '3')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not (((key = '2') and (val = '12')) or (key = '3')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt17.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt17.q.out b/ql/src/test/results/clientpositive/skewjoinopt17.q.out
    index a48d245..ea2b670 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt17.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt17.q.out
    @@ -286,7 +286,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (((key = '2') and (val = '12')) or (key = '2'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (((key = '2') and (val = '12')) or (key = '2'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -301,7 +301,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (((key = '2') and (val = '12')) or (key = '2'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (((key = '2') and (val = '12')) or (key = '2'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -359,7 +359,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not (((key = '2') and (val = '12')) or (key = '2')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not (((key = '2') and (val = '12')) or (key = '2')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -374,7 +374,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not (((key = '2') and (val = '12')) or (key = '2')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not (((key = '2') and (val = '12')) or (key = '2')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt18.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt18.q.out b/ql/src/test/results/clientpositive/skewjoinopt18.q.out
    index e84ac4f..925ebc5 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt18.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt18.q.out
    @@ -86,23 +86,23 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: UDFToDouble(key) is not null (type: boolean)
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and UDFToDouble(key) is not null) (type: boolean)
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: int), val (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: UDFToDouble(_col0) (type: double)
                        sort order: +
                        Map-reduce partition columns: UDFToDouble(_col0) (type: double)
    - Statistics: Num rows: 3 Data size: 12 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 24 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col0 (type: int), _col1 (type: string)
                TableScan
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: UDFToDouble(key) is not null (type: boolean)
    + predicate: (key is not null and UDFToDouble(key) is not null) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -122,10 +122,10 @@ STAGE PLANS:
                  0 UDFToDouble(_col0) (type: double)
                  1 UDFToDouble(_col0) (type: double)
                outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
    - Statistics: Num rows: 3 Data size: 13 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6 Data size: 26 Basic stats: COMPLETE Column stats: NONE
                  table:
                      input format: org.apache.hadoop.mapred.TextInputFormat
                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/skewjoinopt2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/skewjoinopt2.q.out b/ql/src/test/results/clientpositive/skewjoinopt2.q.out
    index d37237f..c2ae731 100644
    --- a/ql/src/test/results/clientpositive/skewjoinopt2.q.out
    +++ b/ql/src/test/results/clientpositive/skewjoinopt2.q.out
    @@ -70,7 +70,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -85,7 +85,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -143,7 +143,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -158,7 +158,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -388,7 +388,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -403,7 +403,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
    + predicate: ((val is not null and key is not null) and ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8'))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -485,7 +485,7 @@ STAGE PLANS:
                  alias: a
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)
    @@ -500,7 +500,7 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: ((key is not null and val is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
    + predicate: ((val is not null and key is not null) and (not ((((key = '2') or (key = '7')) or (key = '3')) or (key = '8')))) (type: boolean)
                    Statistics: Num rows: 1 Data size: 30 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), val (type: string)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin9.q.out b/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
    index 14f913b..d93c85f 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin9.q.out
    @@ -392,7 +392,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_1.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_1.q.out
    index 9ab334b..e926af3 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_1.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_1.q.out
    @@ -290,7 +290,7 @@ STAGE PLANS:
                  Statistics: Num rows: 2 Data size: 208 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 104 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 208 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_10.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_10.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_10.q.out
    index ea2fa51..5a3a619 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_10.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_10.q.out
    @@ -85,7 +85,7 @@ STAGE PLANS:
                  Statistics: Num rows: 3 Data size: 414 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (((userid is not null and pageid is not null) and postid is not null) and type is not null) (type: boolean)
    - Statistics: Num rows: 1 Data size: 138 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3 Data size: 414 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_11.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_11.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_11.q.out
    index e159f5e..8b76fa3 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_11.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_11.q.out
    @@ -135,7 +135,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_12.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_12.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_12.q.out
    index 777ff8a..0dba8e5 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_12.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_12.q.out
    @@ -147,7 +147,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -408,7 +408,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1542 Data size: 16452 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3084 Data size: 32904 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_13.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_13.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_13.q.out
    index 8383af5..2f6bd2a 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_13.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_13.q.out
    @@ -135,7 +135,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -339,7 +339,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: UDFToDouble(value) is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 UDFToDouble(key) (type: double)
    @@ -356,7 +356,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: UDFToDouble(key) is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -365,15 +365,15 @@ STAGE PLANS:
                        1 UDFToDouble(value) (type: double)
                      outputColumnNames: _col0, _col1, _col5, _col6
                      Position of Big Table: 0
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: int), _col1 (type: string), _col5 (type: int), _col6 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                        Reduce Output Operator
                          key expressions: _col0 (type: int)
                          sort order: +
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                          tag: -1
                          TopN: 10
                          TopN Hash Memory Usage: 0.1
    @@ -439,7 +439,7 @@ STAGE PLANS:
              Select Operator
                expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string), VALUE._col1 (type: int), VALUE._col2 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                Limit
                  Number of rows: 10
                  Statistics: Num rows: 10 Data size: 100 Basic stats: COMPLETE Column stats: NONE

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_14.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_14.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_14.q.out
    index 28e62d2..701145b 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_14.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_14.q.out
    @@ -63,7 +63,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -144,7 +144,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -262,7 +262,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -475,7 +475,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -797,7 +797,7 @@ STAGE PLANS:
                    Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Filter Operator
                      predicate: _col0 is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -815,14 +815,14 @@ STAGE PLANS:
                    Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Filter Operator
                      predicate: _col0 is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
                        keys:
                          0 _col0 (type: int)
                          1 _col0 (type: int)
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count()
                          mode: hash
    @@ -900,7 +900,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -1168,7 +1168,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_15.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_15.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_15.q.out
    index 8608187..55af7fa 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_15.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_15.q.out
    @@ -107,7 +107,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -367,7 +367,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1804 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 7218 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -575,7 +575,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: (key2 is not null and key is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1804 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 7218 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -789,7 +789,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1804 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 7218 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 key (type: int), value (type: string)
    @@ -813,7 +813,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1804 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 7218 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -822,16 +822,16 @@ STAGE PLANS:
                        1 key (type: int), value (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col6, _col7, _col8
                      Position of Big Table: 0
    - Statistics: Num rows: 137 Data size: 1984 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 7939 Basic stats: COMPLETE Column stats: NONE
                      BucketMapJoin: true
                      Select Operator
                        expressions: _col0 (type: int), _col1 (type: int), _col2 (type: string), _col6 (type: int), _col7 (type: int), _col8 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 137 Data size: 1984 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 7939 Basic stats: COMPLETE Column stats: NONE
                        Reduce Output Operator
                          key expressions: _col0 (type: int)
                          sort order: +
    - Statistics: Num rows: 137 Data size: 1984 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 7939 Basic stats: COMPLETE Column stats: NONE
                          tag: -1
                          TopN: 10
                          TopN Hash Memory Usage: 0.1
    @@ -897,7 +897,7 @@ STAGE PLANS:
              Select Operator
                expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string), VALUE._col2 (type: int), VALUE._col3 (type: int), VALUE._col4 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 137 Data size: 1984 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 7939 Basic stats: COMPLETE Column stats: NONE
                Limit
                  Number of rows: 10
                  Statistics: Num rows: 10 Data size: 140 Basic stats: COMPLETE Column stats: NONE

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_16.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_16.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_16.q.out
    index 6c78ee5..b4286d3 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_16.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_16.q.out
    @@ -55,7 +55,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_17.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_17.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_17.q.out
    index 944d3bc..fec6ed1 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_17.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_17.q.out
    @@ -193,7 +193,7 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_2.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_2.q.out
    index 379dc0d..32b6487 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_2.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_2.q.out
    @@ -69,7 +69,7 @@ STAGE PLANS:
                  Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 111 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -294,7 +294,7 @@ STAGE PLANS:
                  Statistics: Num rows: 2 Data size: 208 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 104 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 208 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_2.q.out b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_2.q.out
    index d8ade07..924afe9 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_2.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_2.q.out
    @@ -112,11 +112,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -137,11 +137,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -151,16 +151,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -169,10 +169,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -292,11 +292,11 @@ STAGE PLANS:
                        Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -317,11 +317,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -331,16 +331,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -349,10 +349,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -496,11 +496,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -521,11 +521,11 @@ STAGE PLANS:
                        Statistics: Num rows: 168 Data size: 1472 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 168 Data size: 1472 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 168 Data size: 1472 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -535,16 +535,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 184 Data size: 1619 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 184 Data size: 1619 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: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 184 Data size: 1619 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -553,10 +553,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 184 Data size: 1619 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 184 Data size: 1619 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -704,11 +704,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -729,11 +729,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -743,16 +743,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col3) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -761,10 +761,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -894,11 +894,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), concat(value, value) (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -919,11 +919,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), concat(value, value) (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -933,16 +933,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col3) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -951,10 +951,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1084,11 +1084,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -1109,11 +1109,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1123,16 +1123,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: (_col0 + _col0) (type: int), concat(_col1, _col3) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -1141,10 +1141,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_4.q.out b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_4.q.out
    index 0c8e3bf..02d4676 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_4.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_4.q.out
    @@ -88,7 +88,7 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Spark HashTable Sink Operator
                            keys:
                              0 key (type: int)
    @@ -109,7 +109,7 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
    @@ -119,16 +119,16 @@ STAGE PLANS:
                            outputColumnNames: _col0, _col1, _col7
                            input vertices:
                              0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: int), concat(_col1, _col7) (type: string)
                              outputColumnNames: _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                key expressions: _col1 (type: int)
                                sort order: +
                                Map-reduce partition columns: _col1 (type: int)
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -137,10 +137,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -279,11 +279,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -304,11 +304,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -318,12 +318,12 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                key expressions: _col1 (type: string)
                                sort order: +
                                Map-reduce partition columns: _col1 (type: string)
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                value expressions: _col0 (type: int)
                  Local Work:
                    Map Reduce Local Work
    @@ -332,10 +332,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: VALUE._col0 (type: int), KEY.reducesinkkey0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_6.q.out b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_6.q.out
    index c445d9d..e8e1e7e 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_6.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_6.q.out
    @@ -89,12 +89,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -114,12 +114,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -129,16 +129,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -147,10 +147,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -276,12 +276,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -301,12 +301,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -316,16 +316,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -334,10 +334,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -463,12 +463,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -488,12 +488,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -503,16 +503,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col1 (type: int), _col0 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -521,10 +521,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -585,12 +585,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -610,12 +610,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -625,16 +625,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col1 (type: int), _col0 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -643,10 +643,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -713,12 +713,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -738,12 +738,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -753,16 +753,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -771,10 +771,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -918,12 +918,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -943,12 +943,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -958,16 +958,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: +-
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -976,10 +976,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1133,12 +1133,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 3 Data size: 27 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 91 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col1 (type: int)
    @@ -1158,12 +1158,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (key is not null and key2 is not null) (type: boolean)
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key2 is not null and key is not null) (type: boolean)
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), key2 (type: int), value (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 21 Data size: 244 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 979 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1173,16 +1173,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2, _col6
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: int), concat(_col2, _col6) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                Reduce Output Operator
                                  key expressions: _col0 (type: int), _col1 (type: int)
                                  sort order: --
                                  Map-reduce partition columns: _col0 (type: int), _col1 (type: int)
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -1191,10 +1191,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), KEY.reducesinkkey1 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 23 Data size: 268 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 1076 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_7.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_7.q.out b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_7.q.out
    index e04f453..ded106c 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_7.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_7.q.out
    @@ -90,11 +90,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key = 0) or (key = 5)) and key is not null) (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -115,11 +115,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key = 0) or (key = 5)) and key is not null) (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -129,16 +129,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -147,10 +147,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -272,11 +272,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key = 0) or (key = 5)) and key is not null) (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -297,11 +297,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key = 0) or (key = 5)) and key is not null) (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -311,16 +311,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col3) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -329,10 +329,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -460,11 +460,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key < 8) and ((key = 0) or (key = 5))) and key is not null) (type: boolean)
    - Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 14 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -485,11 +485,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key < 8) and ((key = 0) or (key = 5))) and key is not null) (type: boolean)
    - Statistics: Num rows: 14 Data size: 122 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 28 Data size: 245 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 122 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 28 Data size: 245 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -499,16 +499,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 15 Data size: 134 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 30 Data size: 269 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), concat(_col1, _col3) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 134 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 30 Data size: 269 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: 15 Data size: 134 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 30 Data size: 269 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -517,10 +517,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 134 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 30 Data size: 269 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 15 Data size: 134 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 30 Data size: 269 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_8.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_8.q.out b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_8.q.out
    index ea1d58a..be8fbfa 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_8.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketsortoptimize_insert_8.q.out
    @@ -88,11 +88,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -113,11 +113,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -127,16 +127,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col3 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: int), _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -145,10 +145,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -269,11 +269,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -294,11 +294,11 @@ STAGE PLANS:
                        Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 42 Data size: 368 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 84 Data size: 736 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -308,16 +308,16 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col3 (type: int), _col0 (type: int), concat(_col1, _col4) (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 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: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: int), _col2 (type: string)
                  Local Work:
                    Map Reduce Local Work
    @@ -326,10 +326,10 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: int), VALUE._col0 (type: int), VALUE._col1 (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 46 Data size: 404 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 92 Data size: 809 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_sortmerge_join_9.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_sortmerge_join_9.q.out b/ql/src/test/results/clientpositive/spark/auto_sortmerge_join_9.q.out
    index 686d7ca..be42791 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_sortmerge_join_9.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_sortmerge_join_9.q.out
    @@ -72,18 +72,18 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Sorted Merge Bucket Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
                              keys:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                mode: hash
    @@ -163,11 +163,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Sorted Merge Bucket Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -175,18 +175,18 @@ STAGE PLANS:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
                              outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
              Reducer 2
                  Reduce Operator Tree:
    @@ -195,10 +195,10 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -275,11 +275,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Sorted Merge Bucket Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -287,26 +287,26 @@ STAGE PLANS:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
                              outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
              Reducer 2
                  Reduce Operator Tree:
                    Group By Operator
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count()
                          mode: hash
    @@ -419,11 +419,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Sorted Merge Bucket Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -431,18 +431,18 @@ STAGE PLANS:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
                              outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
              Reducer 4
                  Local Work:
    @@ -453,7 +453,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -472,11 +472,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Sorted Merge Bucket Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -484,18 +484,18 @@ STAGE PLANS:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
                              outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
              Reducer 2
                  Local Work:
    @@ -506,7 +506,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -516,14 +516,14 @@ STAGE PLANS:
                        outputColumnNames: _col0, _col1, _col3
                        input vertices:
                          1 Reducer 4
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: int), _col1 (type: bigint), _col3 (type: bigint)
                          outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                            table:
                                input format: org.apache.hadoop.mapred.TextInputFormat
                                output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1068,17 +1068,20 @@ STAGE PLANS:
                      TableScan
                        alias: a
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: (key + 1) (type: int)
    - outputColumnNames: _col0
    + Filter Operator
    + predicate: (key + 1) is not null (type: boolean)
                          Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    - Filter Operator
    - predicate: _col0 is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    - Spark HashTable Sink Operator
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    + Select Operator
    + expressions: (key + 1) (type: int)
    + outputColumnNames: _col0
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Filter Operator
    + predicate: _col0 is not null (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Spark HashTable Sink Operator
    + keys:
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
                  Local Work:
                    Map Reduce Local Work

    @@ -1093,31 +1096,34 @@ STAGE PLANS:
                      TableScan
                        alias: a
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: (key + 1) (type: int)
    - outputColumnNames: _col0
    + Filter Operator
    + predicate: (key + 1) is not null (type: boolean)
                          Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    - Filter Operator
    - predicate: _col0 is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    - input vertices:
    - 1 Map 3
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    - Group By Operator
    - aggregations: count()
    - mode: hash
    - outputColumnNames: _col0
    - Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    - Reduce Output Operator
    - sort order:
    + Select Operator
    + expressions: (key + 1) (type: int)
    + outputColumnNames: _col0
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Filter Operator
    + predicate: _col0 is not null (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
    + Map Join Operator
    + condition map:
    + Inner Join 0 to 1
    + keys:
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
    + input vertices:
    + 1 Map 3
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
    + Group By Operator
    + aggregations: count()
    + mode: hash
    + outputColumnNames: _col0
                                  Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    - value expressions: _col0 (type: bigint)
    + Reduce Output Operator
    + sort order:
    + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + value expressions: _col0 (type: bigint)
                  Local Work:
                    Map Reduce Local Work
              Reducer 2
    @@ -1603,11 +1609,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -1628,11 +1634,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1641,7 +1647,7 @@ STAGE PLANS:
                                1 _col0 (type: int)
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                mode: hash
    @@ -1722,11 +1728,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -1747,11 +1753,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1761,18 +1767,18 @@ STAGE PLANS:
                              outputColumnNames: _col0
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
                  Local Work:
                    Map Reduce Local Work
    @@ -1783,10 +1789,10 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                        table:
                            input format: org.apache.hadoop.mapred.TextInputFormat
                            output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1861,11 +1867,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -1887,11 +1893,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1901,17 +1907,17 @@ STAGE PLANS:
                              outputColumnNames: _col0
                              input vertices:
                                1 Map 4
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                  Local Work:
                    Map Reduce Local Work
              Reducer 2
    @@ -1920,9 +1926,9 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                        Group By Operator
                          aggregations: count()
                          mode: hash
    @@ -2035,11 +2041,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -2060,11 +2066,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -2074,18 +2080,18 @@ STAGE PLANS:
                              outputColumnNames: _col0
                              input vertices:
                                1 Map 6
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
                  Local Work:
                    Map Reduce Local Work
    @@ -2098,7 +2104,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -2115,11 +2121,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -2140,11 +2146,11 @@ STAGE PLANS:
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -2154,18 +2160,18 @@ STAGE PLANS:
                              outputColumnNames: _col0
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Group By Operator
                                aggregations: count()
                                keys: _col0 (type: int)
                                mode: hash
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 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: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                                  value expressions: _col1 (type: bigint)
                  Local Work:
                    Map Reduce Local Work
    @@ -2178,7 +2184,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 2 Data size: 15 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2188,14 +2194,14 @@ STAGE PLANS:
                        outputColumnNames: _col0, _col1, _col3
                        input vertices:
                          1 Reducer 5
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: int), _col1 (type: bigint), _col3 (type: bigint)
                          outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
    - Statistics: Num rows: 2 Data size: 16 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
                            table:
                                input format: org.apache.hadoop.mapred.TextInputFormat
                                output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_spark1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark1.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark1.q.out
    index fb8f8d6..e162f4a 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark1.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark1.q.out
    @@ -188,11 +188,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -271,11 +271,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -286,18 +286,18 @@ STAGE PLANS:
                              input vertices:
                                1 Map 2
                              Position of Big Table: 0
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              BucketMapJoin: true
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
    @@ -533,11 +533,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -611,11 +611,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -626,17 +626,17 @@ STAGE PLANS:
                              input vertices:
                                1 Map 2
                              Position of Big Table: 0
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_spark2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark2.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark2.q.out
    index 4dd1157..58903d7 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark2.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark2.q.out
    @@ -172,11 +172,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -255,11 +255,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -270,18 +270,18 @@ STAGE PLANS:
                              input vertices:
                                1 Map 2
                              Position of Big Table: 0
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              BucketMapJoin: true
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
    @@ -517,11 +517,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -600,11 +600,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -615,18 +615,18 @@ STAGE PLANS:
                              input vertices:
                                1 Map 2
                              Position of Big Table: 0
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              BucketMapJoin: true
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_spark3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark3.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark3.q.out
    index 4133fda..60ce126 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark3.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark3.q.out
    @@ -172,11 +172,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -255,11 +255,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -270,18 +270,18 @@ STAGE PLANS:
                              input vertices:
                                0 Map 1
                              Position of Big Table: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              BucketMapJoin: true
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
    @@ -517,11 +517,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 15 Data size: 1583 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 29 Data size: 3062 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -595,11 +595,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 28 Data size: 2958 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -610,17 +610,17 @@ STAGE PLANS:
                              input vertices:
                                0 Map 1
                              Position of Big Table: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
                                  GlobalTableId: 1
      #### A masked pattern was here ####
                                  NumFilesPerFileSink: 1
    - Statistics: Num rows: 30 Data size: 3253 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_spark4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark4.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark4.q.out
    index 64fb785..338384f 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_spark4.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_spark4.q.out
    @@ -147,25 +147,25 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 1
    + Map 2
                  Map Operator Tree:
                      TableScan
    - alias: a
    + alias: b
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        GatherStats: false
                        Filter Operator
                          isSamplingPred: false
    - predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
    + predicate: key is not null (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
    - Position of Big Table: 1
    + Position of Big Table: 0
                  Local Work:
                    Map Reduce Local Work
                      Bucket Mapjoin Context:
    @@ -178,7 +178,7 @@ STAGE PLANS:
                  Path -> Partition:
      #### A masked pattern was here ####
                      Partition
    - base file name: tbl1
    + base file name: tbl2
                        input format: org.apache.hadoop.mapred.TextInputFormat
                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
                        properties:
    @@ -190,11 +190,11 @@ STAGE PLANS:
                          columns.comments
                          columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl1
    + name default.tbl2
                          numFiles 2
                          numRows 10
                          rawDataSize 70
    - serialization.ddl struct tbl1 { i32 key, string value}
    + serialization.ddl struct tbl2 { i32 key, string value}
                          serialization.format 1
                          serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                          totalSize 80
    @@ -212,20 +212,20 @@ STAGE PLANS:
                            columns.comments
                            columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl1
    + name default.tbl2
                            numFiles 2
                            numRows 10
                            rawDataSize 70
    - serialization.ddl struct tbl1 { i32 key, string value}
    + serialization.ddl struct tbl2 { i32 key, string value}
                            serialization.format 1
                            serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                            totalSize 80
      #### A masked pattern was here ####
                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
    - name: default.tbl1
    - name: default.tbl1
    + name: default.tbl2
    + name: default.tbl2
                  Truncated Path -> Alias:
    - /tbl1 [a]
    + /tbl2 [b]
              Map 3
                  Map Operator Tree:
                      TableScan
    @@ -235,11 +235,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: value (type: string)
                            outputColumnNames: _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: string)
    @@ -305,20 +305,20 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 2
    + Map 1
                  Map Operator Tree:
                      TableScan
    - alias: b
    + alias: a
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        GatherStats: false
                        Filter Operator
                          isSamplingPred: false
    - predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and value is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -327,9 +327,9 @@ STAGE PLANS:
                                1 _col0 (type: int)
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
    - 0 Map 1
    - Position of Big Table: 1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + 1 Map 2
    + Position of Big Table: 0
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              BucketMapJoin: true
                              Map Join Operator
                                condition map:
    @@ -341,17 +341,17 @@ STAGE PLANS:
                                input vertices:
                                  1 Map 3
                                Position of Big Table: 0
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
                                Select Operator
                                  expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string), _col5 (type: string)
                                  outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
                                  File Output Operator
                                    compressed: false
                                    GlobalTableId: 0
      #### A masked pattern was here ####
                                    NumFilesPerFileSink: 1
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                    table:
                                        input format: org.apache.hadoop.mapred.TextInputFormat
    @@ -380,7 +380,7 @@ STAGE PLANS:
                  Path -> Partition:
      #### A masked pattern was here ####
                      Partition
    - base file name: tbl2
    + base file name: tbl1
                        input format: org.apache.hadoop.mapred.TextInputFormat
                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
                        properties:
    @@ -392,11 +392,11 @@ STAGE PLANS:
                          columns.comments
                          columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl2
    + name default.tbl1
                          numFiles 2
                          numRows 10
                          rawDataSize 70
    - serialization.ddl struct tbl2 { i32 key, string value}
    + serialization.ddl struct tbl1 { i32 key, string value}
                          serialization.format 1
                          serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                          totalSize 80
    @@ -414,20 +414,20 @@ STAGE PLANS:
                            columns.comments
                            columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl2
    + name default.tbl1
                            numFiles 2
                            numRows 10
                            rawDataSize 70
    - serialization.ddl struct tbl2 { i32 key, string value}
    + serialization.ddl struct tbl1 { i32 key, string value}
                            serialization.format 1
                            serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                            totalSize 80
      #### A masked pattern was here ####
                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
    - name: default.tbl2
    - name: default.tbl2
    + name: default.tbl1
    + name: default.tbl1
                  Truncated Path -> Alias:
    - /tbl2 [b]
    + /tbl1 [a]

        Stage: Stage-0
          Fetch Operator
    @@ -592,25 +592,25 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 1
    + Map 2
                  Map Operator Tree:
                      TableScan
    - alias: a
    + alias: b
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        GatherStats: false
                        Filter Operator
                          isSamplingPred: false
    - predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
    + predicate: key is not null (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 3 Data size: 21 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
                                1 _col0 (type: int)
    - Position of Big Table: 1
    + Position of Big Table: 0
                  Local Work:
                    Map Reduce Local Work
                  Path -> Alias:
    @@ -618,7 +618,7 @@ STAGE PLANS:
                  Path -> Partition:
      #### A masked pattern was here ####
                      Partition
    - base file name: tbl1
    + base file name: tbl2
                        input format: org.apache.hadoop.mapred.TextInputFormat
                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
                        properties:
    @@ -630,11 +630,11 @@ STAGE PLANS:
                          columns.comments
                          columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl1
    + name default.tbl2
                          numFiles 2
                          numRows 10
                          rawDataSize 70
    - serialization.ddl struct tbl1 { i32 key, string value}
    + serialization.ddl struct tbl2 { i32 key, string value}
                          serialization.format 1
                          serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                          totalSize 80
    @@ -652,20 +652,20 @@ STAGE PLANS:
                            columns.comments
                            columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl1
    + name default.tbl2
                            numFiles 2
                            numRows 10
                            rawDataSize 70
    - serialization.ddl struct tbl1 { i32 key, string value}
    + serialization.ddl struct tbl2 { i32 key, string value}
                            serialization.format 1
                            serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                            totalSize 80
      #### A masked pattern was here ####
                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
    - name: default.tbl1
    - name: default.tbl1
    + name: default.tbl2
    + name: default.tbl2
                  Truncated Path -> Alias:
    - /tbl1 [a]
    + /tbl2 [b]
              Map 3
                  Map Operator Tree:
                      TableScan
    @@ -675,11 +675,11 @@ STAGE PLANS:
                        Filter Operator
                          isSamplingPred: false
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: value (type: string)
                            outputColumnNames: _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: string)
    @@ -745,20 +745,20 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 2
    + Map 1
                  Map Operator Tree:
                      TableScan
    - alias: b
    + alias: a
                        Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        GatherStats: false
                        Filter Operator
                          isSamplingPred: false
    - predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and value is not null) (type: boolean)
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -767,9 +767,9 @@ STAGE PLANS:
                                1 _col0 (type: int)
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
    - 0 Map 1
    - Position of Big Table: 1
    - Statistics: Num rows: 5 Data size: 38 Basic stats: COMPLETE Column stats: NONE
    + 1 Map 2
    + Position of Big Table: 0
    + Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
                              Map Join Operator
                                condition map:
                                     Inner Join 0 to 1
    @@ -780,17 +780,17 @@ STAGE PLANS:
                                input vertices:
                                  1 Map 3
                                Position of Big Table: 0
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
                                Select Operator
                                  expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string), _col5 (type: string)
                                  outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
                                  File Output Operator
                                    compressed: false
                                    GlobalTableId: 0
      #### A masked pattern was here ####
                                    NumFilesPerFileSink: 1
    - Statistics: Num rows: 5 Data size: 41 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 12 Data size: 84 Basic stats: COMPLETE Column stats: NONE
      #### A masked pattern was here ####
                                    table:
                                        input format: org.apache.hadoop.mapred.TextInputFormat
    @@ -814,7 +814,7 @@ STAGE PLANS:
                  Path -> Partition:
      #### A masked pattern was here ####
                      Partition
    - base file name: tbl2
    + base file name: tbl1
                        input format: org.apache.hadoop.mapred.TextInputFormat
                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
                        properties:
    @@ -826,11 +826,11 @@ STAGE PLANS:
                          columns.comments
                          columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl2
    + name default.tbl1
                          numFiles 2
                          numRows 10
                          rawDataSize 70
    - serialization.ddl struct tbl2 { i32 key, string value}
    + serialization.ddl struct tbl1 { i32 key, string value}
                          serialization.format 1
                          serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                          totalSize 80
    @@ -848,20 +848,20 @@ STAGE PLANS:
                            columns.comments
                            columns.types int:string
      #### A masked pattern was here ####
    - name default.tbl2
    + name default.tbl1
                            numFiles 2
                            numRows 10
                            rawDataSize 70
    - serialization.ddl struct tbl2 { i32 key, string value}
    + serialization.ddl struct tbl1 { i32 key, string value}
                            serialization.format 1
                            serialization.lib org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
                            totalSize 80
      #### A masked pattern was here ####
                          serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
    - name: default.tbl2
    - name: default.tbl2
    + name: default.tbl1
    + name: default.tbl1
                  Truncated Path -> Alias:
    - /tbl2 [b]
    + /tbl1 [a]

        Stage: Stage-0
          Fetch Operator
  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_tez1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_tez1.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_tez1.q.out
    index fa80956..b5e7846 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_tez1.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_tez1.q.out
    @@ -133,11 +133,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -156,11 +156,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -170,14 +170,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -218,11 +218,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -244,17 +244,17 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            keys: key (type: int), value (type: string)
                            mode: hash
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Reduce Output Operator
                              key expressions: _col0 (type: int), _col1 (type: string)
                              sort order: ++
                              Map-reduce partition columns: _col0 (type: int), _col1 (type: string)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
              Reducer 2
                  Local Work:
                    Map Reduce Local Work
    @@ -263,11 +263,11 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int), KEY._col1 (type: string)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col0 (type: int)
                        outputColumnNames: _col0
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
                        Map Join Operator
                          condition map:
                               Inner Join 0 to 1
    @@ -276,7 +276,7 @@ STAGE PLANS:
                            1 _col0 (type: int)
                          input vertices:
                            1 Map 4
    - Statistics: Num rows: 137 Data size: 1460 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            aggregations: count()
                            mode: hash
    @@ -359,22 +359,22 @@ STAGE PLANS:
                        Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), substr(value, 5) (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                            Group By Operator
                              aggregations: sum(_col1)
                              keys: _col0 (type: int)
                              mode: hash
                              outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 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: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                                value expressions: _col1 (type: double)
              Reducer 2
                  Local Work:
    @@ -385,11 +385,11 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 7 Data size: 728 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 13 Data size: 1352 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col1 (type: double), _col0 (type: int)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 7 Data size: 728 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 13 Data size: 1352 Basic stats: COMPLETE Column stats: NONE
                        Spark HashTable Sink Operator
                          keys:
                            0 _col1 (type: int)
    @@ -406,11 +406,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -420,14 +420,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col1 (type: int), _col0 (type: double), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -469,11 +469,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: int)
    @@ -492,11 +492,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -517,11 +517,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -531,22 +531,22 @@ STAGE PLANS:
                              outputColumnNames: _col1, _col2
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col1 (type: int), substr(_col2, 5) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                Group By Operator
                                  aggregations: sum(_col1)
                                  keys: _col0 (type: int)
                                  mode: hash
                                  outputColumnNames: _col0, _col1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 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: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                    value expressions: _col1 (type: double)
                  Local Work:
                    Map Reduce Local Work
    @@ -559,11 +559,11 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 137 Data size: 1455 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col1 (type: double), _col0 (type: int)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 137 Data size: 1455 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
                        Map Join Operator
                          condition map:
                               Inner Join 0 to 1
    @@ -573,14 +573,14 @@ STAGE PLANS:
                          outputColumnNames: _col0, _col1, _col3
                          input vertices:
                            1 Map 4
    - Statistics: Num rows: 150 Data size: 1600 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: _col1 (type: int), _col0 (type: double), _col3 (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 150 Data size: 1600 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
                            File Output Operator
                              compressed: false
    - Statistics: Num rows: 150 Data size: 1600 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
                              table:
                                  input format: org.apache.hadoop.mapred.TextInputFormat
                                  output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -620,11 +620,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -645,11 +645,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -659,22 +659,22 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), substr(_col1, 5) (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                Group By Operator
                                  aggregations: sum(_col1)
                                  keys: _col0 (type: int)
                                  mode: hash
                                  outputColumnNames: _col0, _col1
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 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: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                    value expressions: _col1 (type: double)
                  Local Work:
                    Map Reduce Local Work
    @@ -687,11 +687,11 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 66 Data size: 700 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
                      Select Operator
                        expressions: _col1 (type: double), _col0 (type: int)
                        outputColumnNames: _col0, _col1
    - Statistics: Num rows: 66 Data size: 700 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
                        Spark HashTable Sink Operator
                          keys:
                            0 _col1 (type: int)
    @@ -708,11 +708,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -722,14 +722,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col1 (type: int), _col0 (type: double), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -770,11 +770,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -789,11 +789,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -813,11 +813,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -830,14 +830,14 @@ STAGE PLANS:
                              input vertices:
                                1 Map 2
                                2 Map 3
    - Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1100 Data size: 11686 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1100 Data size: 11686 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1100 Data size: 11686 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -876,11 +876,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -894,11 +894,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -917,11 +917,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -931,7 +931,7 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1
                              input vertices:
                                1 Map 2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Map Join Operator
                                condition map:
                                     Inner Join 0 to 1
    @@ -941,14 +941,14 @@ STAGE PLANS:
                                outputColumnNames: _col0, _col1, _col3
                                input vertices:
                                  1 Map 3
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
                                Select Operator
                                  expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                  outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
                                  File Output Operator
                                    compressed: false
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
                                    table:
                                        input format: org.apache.hadoop.mapred.TextInputFormat
                                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -993,22 +993,22 @@ STAGE PLANS:
                        Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), substr(value, 5) (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                            Group By Operator
                              aggregations: sum(_col1)
                              keys: _col0 (type: int)
                              mode: hash
                              outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 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: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                                value expressions: _col1 (type: double)
              Reducer 2
                  Local Work:
    @@ -1019,7 +1019,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 7 Data size: 728 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 13 Data size: 1352 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -1036,11 +1036,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1050,14 +1050,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: double), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1100,16 +1100,16 @@ STAGE PLANS:
                        Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), substr(value, 5) (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 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: 14 Data size: 1456 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 27 Data size: 2808 Basic stats: COMPLETE Column stats: NONE
                              value expressions: _col1 (type: string)
              Reducer 2
                  Local Work:
    @@ -1120,7 +1120,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: complete
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 7 Data size: 728 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 13 Data size: 1352 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -1137,11 +1137,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1151,14 +1151,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: double), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1199,11 +1199,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: string)
    @@ -1222,11 +1222,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: value (type: string)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1236,10 +1236,10 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col2
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              File Output Operator
                                compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                table:
                                    input format: org.apache.hadoop.mapred.TextInputFormat
                                    output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1300,11 +1300,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -1323,11 +1323,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1337,14 +1337,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1372,36 +1372,18 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 1
    - Map Operator Tree:
    - TableScan
    - alias: a
    - Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    - Filter Operator
    - predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: key (type: int), value (type: string)
    - outputColumnNames: _col0, _col1
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    - Spark HashTable Sink Operator
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    - Local Work:
    - Map Reduce Local Work
    - Map 3
    + Map 4
                  Map Operator Tree:
                      TableScan
                        alias: a
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: string)
    @@ -1411,53 +1393,78 @@ STAGE PLANS:

        Stage: Stage-1
          Spark
    + Edges:
    + Reducer 2 <- Map 1 (PARTITION-LEVEL SORT, 2), Map 3 (PARTITION-LEVEL SORT, 2)
      #### A masked pattern was here ####
            Vertices:
    - Map 2
    + Map 1
    + Map Operator Tree:
    + TableScan
    + alias: a
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Filter Operator
    + predicate: (key is not null and value is not null) (type: boolean)
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Select Operator
    + expressions: key (type: int), value (type: string)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 500 Data size: 5312 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: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + value expressions: _col1 (type: string)
    + Map 3
                  Map Operator Tree:
                      TableScan
                        alias: a
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    - outputColumnNames: _col0, _col1
    - input vertices:
    - 0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col1 (type: string)
    - 1 _col1 (type: string)
    - outputColumnNames: _col0, _col3
    - input vertices:
    - 1 Map 3
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: _col0 (type: int), _col3 (type: int)
    - outputColumnNames: _col0, _col1
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    - File Output Operator
    - compressed: false
    - Statistics: Num rows: 302 Data size: 3213 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
    + Statistics: Num rows: 500 Data size: 5312 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: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Reducer 2
                  Local Work:
                    Map Reduce Local Work
    + Reduce Operator Tree:
    + Join Operator
    + condition map:
    + Inner Join 0 to 1
    + keys:
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Map Join Operator
    + condition map:
    + Inner Join 0 to 1
    + keys:
    + 0 _col1 (type: string)
    + 1 _col1 (type: string)
    + outputColumnNames: _col0, _col3
    + input vertices:
    + 1 Map 4
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
    + Select Operator
    + expressions: _col0 (type: int), _col3 (type: int)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
    + File Output Operator
    + compressed: false
    + Statistics: Num rows: 605 Data size: 6427 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

        Stage: Stage-0
          Fetch Operator
    @@ -1490,11 +1497,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string), ds (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int), _col2 (type: string)
    @@ -1513,11 +1520,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string), ds (type: string)
                            outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1527,14 +1534,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col4
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col4 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -1612,11 +1619,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1625,10 +1632,10 @@ STAGE PLANS:
                                1 _col0 (type: int)
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                sort order:
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                  Local Work:
                    Map Reduce Local Work
              Reducer 2
    @@ -1733,11 +1740,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -1746,10 +1753,10 @@ STAGE PLANS:
                                1 _col0 (type: int)
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                sort order:
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                  Local Work:
                    Map Reduce Local Work
              Reducer 2

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucket_map_join_tez2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucket_map_join_tez2.q.out b/ql/src/test/results/clientpositive/spark/bucket_map_join_tez2.q.out
    index c0169de..a54b03c 100644
    --- a/ql/src/test/results/clientpositive/spark/bucket_map_join_tez2.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucket_map_join_tez2.q.out
    @@ -122,36 +122,18 @@ STAGE PLANS:
          Spark
      #### A masked pattern was here ####
            Vertices:
    - Map 1
    - Map Operator Tree:
    - TableScan
    - alias: a
    - Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    - Filter Operator
    - predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: key (type: int), value (type: string)
    - outputColumnNames: _col0, _col1
    - Statistics: Num rows: 125 Data size: 1328 Basic stats: COMPLETE Column stats: NONE
    - Spark HashTable Sink Operator
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    - Local Work:
    - Map Reduce Local Work
    - Map 3
    + Map 4
                  Map Operator Tree:
                      TableScan
                        alias: a
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: value is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col1 (type: string)
    @@ -161,53 +143,78 @@ STAGE PLANS:

        Stage: Stage-1
          Spark
    + Edges:
    + Reducer 2 <- Map 1 (PARTITION-LEVEL SORT, 2), Map 3 (PARTITION-LEVEL SORT, 2)
      #### A masked pattern was here ####
            Vertices:
    - Map 2
    + Map 1
    + Map Operator Tree:
    + TableScan
    + alias: a
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Filter Operator
    + predicate: (key is not null and value is not null) (type: boolean)
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Select Operator
    + expressions: key (type: int), value (type: string)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 500 Data size: 5312 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: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + value expressions: _col1 (type: string)
    + Map 3
                  Map Operator Tree:
                      TableScan
                        alias: a
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col0 (type: int)
    - 1 _col0 (type: int)
    - outputColumnNames: _col0, _col1
    - input vertices:
    - 0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col1 (type: string)
    - 1 _col1 (type: string)
    - outputColumnNames: _col0, _col3
    - input vertices:
    - 1 Map 3
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: _col0 (type: int), _col3 (type: int)
    - outputColumnNames: _col0, _col1
    - Statistics: Num rows: 302 Data size: 3213 Basic stats: COMPLETE Column stats: NONE
    - File Output Operator
    - compressed: false
    - Statistics: Num rows: 302 Data size: 3213 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
    + Statistics: Num rows: 500 Data size: 5312 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: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Reducer 2
                  Local Work:
                    Map Reduce Local Work
    + Reduce Operator Tree:
    + Join Operator
    + condition map:
    + Inner Join 0 to 1
    + keys:
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Map Join Operator
    + condition map:
    + Inner Join 0 to 1
    + keys:
    + 0 _col1 (type: string)
    + 1 _col1 (type: string)
    + outputColumnNames: _col0, _col3
    + input vertices:
    + 1 Map 4
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
    + Select Operator
    + expressions: _col0 (type: int), _col3 (type: int)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE Column stats: NONE
    + File Output Operator
    + compressed: false
    + Statistics: Num rows: 605 Data size: 6427 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

        Stage: Stage-0
          Fetch Operator
    @@ -261,12 +268,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: UDFToDouble(key) is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and UDFToDouble(key) is not null) (type: boolean)
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 UDFToDouble(_col0) (type: double)
    @@ -284,12 +291,12 @@ STAGE PLANS:
                        alias: b
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: UDFToDouble(key) is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and UDFToDouble(key) is not null) (type: boolean)
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -299,14 +306,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1, _col3
                              input vertices:
                                0 Map 1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: int), _col1 (type: string), _col3 (type: string)
                                outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -343,11 +350,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key > 2) and (key > 1)) and key is not null) (type: boolean)
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: int)
    @@ -366,11 +373,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((key > 1) and (key > 2)) and key is not null) (type: boolean)
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -380,10 +387,10 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1
                              input vertices:
                                1 Map 2
    - Statistics: Num rows: 30 Data size: 326 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
                              File Output Operator
                                compressed: false
    - Statistics: Num rows: 30 Data size: 326 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
                                table:
                                    input format: org.apache.hadoop.mapred.TextInputFormat
                                    output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -574,17 +581,17 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            keys: key (type: int)
                            mode: hash
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 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: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
              Reducer 2
                  Local Work:
                    Map Reduce Local Work
    @@ -593,7 +600,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: int)
                      mode: mergepartial
                      outputColumnNames: _col0
    - Statistics: Num rows: 60 Data size: 636 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 _col0 (type: int)
    @@ -610,11 +617,11 @@ STAGE PLANS:
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int)
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -624,10 +631,10 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col1
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                              File Output Operator
                                compressed: false
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                table:
                                    input format: org.apache.hadoop.mapred.TextInputFormat
                                    output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -663,18 +670,18 @@ STAGE PLANS:
                        alias: tab
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: UDFToDouble(value) is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + predicate: (value is not null and UDFToDouble(value) is not null) (type: boolean)
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            keys: value (type: string)
                            mode: hash
                            outputColumnNames: _col0
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Reduce Output Operator
                              key expressions: _col0 (type: string)
                              sort order: +
                              Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
              Reducer 2
                  Local Work:
                    Map Reduce Local Work
    @@ -683,7 +690,7 @@ STAGE PLANS:
                      keys: KEY._col0 (type: string)
                      mode: mergepartial
                      outputColumnNames: _col0
    - Statistics: Num rows: 60 Data size: 636 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
                      Spark HashTable Sink Operator
                        keys:
                          0 UDFToDouble(_col0) (type: double)
    @@ -699,12 +706,12 @@ STAGE PLANS:
                        alias: tab
                        Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: UDFToDouble(key) is not null (type: boolean)
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + predicate: (key is not null and UDFToDouble(key) is not null) (type: boolean)
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: int), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 121 Data size: 1283 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 242 Data size: 2566 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -714,14 +721,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col2
                              input vertices:
                                0 Reducer 2
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: _col0 (type: string), _col2 (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 133 Data size: 1411 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 266 Data size: 2822 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/bucketizedhiveinputformat.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/bucketizedhiveinputformat.q.out b/ql/src/test/results/clientpositive/spark/bucketizedhiveinputformat.q.out
    index c8fc4d3..98c5802 100644
    --- a/ql/src/test/results/clientpositive/spark/bucketizedhiveinputformat.q.out
    +++ b/ql/src/test/results/clientpositive/spark/bucketizedhiveinputformat.q.out
    @@ -22,8 +22,6 @@ POSTHOOK: query: CREATE TABLE T2(name STRING) STORED AS SEQUENCEFILE
      POSTHOOK: type: CREATETABLE
      POSTHOOK: Output: database:default
      POSTHOOK: Output: default@T2
    -Warning: Shuffle Join JOIN[10][tables = [$hdt$_0, $hdt$_1]] in Work 'Reducer 2' is a cross product
    -Warning: Shuffle Join JOIN[13][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in Work 'Reducer 3' is a cross product
      PREHOOK: query: INSERT OVERWRITE TABLE T2 SELECT * FROM (
      SELECT tmp1.name as name FROM (
        SELECT name, 'MMM' AS n FROM T1) tmp1
  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/multiMapJoin1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/multiMapJoin1.q.out b/ql/src/test/results/clientpositive/multiMapJoin1.q.out
    index f0d86f2..02b2707 100644
    --- a/ql/src/test/results/clientpositive/multiMapJoin1.q.out
    +++ b/ql/src/test/results/clientpositive/multiMapJoin1.q.out
    @@ -202,11 +202,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -217,11 +217,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: value (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -235,11 +235,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -247,18 +247,18 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col1
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col1 (type: string)
                          outputColumnNames: _col0
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
                            keys:
                              0 _col0 (type: string)
                              1 _col0 (type: string)
    - Statistics: Num rows: 1512 Data size: 16068 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 64275 Basic stats: COMPLETE Column stats: NONE
                            Group By Operator
                              aggregations: count()
                              mode: hash
    @@ -361,11 +361,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -376,11 +376,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: value (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -394,11 +394,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -406,18 +406,18 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col1
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col1 (type: string)
                          outputColumnNames: _col0
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
                            keys:
                              0 _col0 (type: string)
                              1 _col0 (type: string)
    - Statistics: Num rows: 1512 Data size: 16068 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 64275 Basic stats: COMPLETE Column stats: NONE
                            Group By Operator
                              aggregations: count()
                              mode: hash
    @@ -524,11 +524,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -539,11 +539,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -557,11 +557,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: (key is not null and value is not null) (type: boolean)
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1250 Data size: 13280 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 53120 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -569,11 +569,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col1
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col1 (type: string)
                          outputColumnNames: _col0
    - Statistics: Num rows: 1375 Data size: 14608 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 58432 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
    @@ -581,18 +581,18 @@ STAGE PLANS:
                              0 _col0 (type: string)
                              1 _col1 (type: string)
                            outputColumnNames: _col1
    - Statistics: Num rows: 1512 Data size: 16068 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 64275 Basic stats: COMPLETE Column stats: NONE
                            Group By Operator
                              aggregations: count()
                              keys: _col1 (type: string)
                              mode: hash
                              outputColumnNames: _col0, _col1
    - Statistics: Num rows: 1512 Data size: 16068 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 64275 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                key expressions: _col0 (type: string)
                                sort order: +
                                Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 1512 Data size: 16068 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 64275 Basic stats: COMPLETE Column stats: NONE
                                value expressions: _col1 (type: bigint)
            Local Work:
              Map Reduce Local Work
    @@ -602,14 +602,14 @@ STAGE PLANS:
                keys: KEY._col0 (type: string)
                mode: mergepartial
                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 756 Data size: 8034 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3025 Data size: 32137 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col1 (type: bigint)
                  outputColumnNames: _col0
    - Statistics: Num rows: 756 Data size: 8034 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3025 Data size: 32137 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
    - Statistics: Num rows: 756 Data size: 8034 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 3025 Data size: 32137 Basic stats: COMPLETE Column stats: NONE
                    table:
                        input format: org.apache.hadoop.mapred.TextInputFormat
                        output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
    @@ -846,11 +846,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -864,11 +864,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -876,11 +876,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -906,11 +906,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col3 (type: string)
    @@ -927,11 +927,11 @@ STAGE PLANS:
                      0 _col3 (type: string)
                      1 _col1 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
                        table:
    @@ -957,11 +957,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col1 (type: string)
    @@ -978,11 +978,11 @@ STAGE PLANS:
                      0 _col1 (type: string)
                      1 _col0 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
                        table:
    @@ -1008,11 +1008,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col2 (type: string)
    @@ -1029,11 +1029,11 @@ STAGE PLANS:
                      0 _col2 (type: string)
                      1 _col0 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                        mode: hash
    @@ -1092,11 +1092,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -1104,11 +1104,11 @@ STAGE PLANS:
                          0 _col2 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                            mode: hash
    @@ -1131,23 +1131,23 @@ STAGE PLANS:
                    key expressions: _col2 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col2 (type: string)
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
                TableScan
                  alias: smalltbl4
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -1156,11 +1156,11 @@ STAGE PLANS:
                  0 _col2 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                  Group By Operator
                    aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                    mode: hash
    @@ -1195,11 +1195,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -1207,11 +1207,11 @@ STAGE PLANS:
                          0 _col1 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -1229,23 +1229,23 @@ STAGE PLANS:
                    key expressions: _col1 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col1 (type: string)
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
                TableScan
                  alias: smalltbl3
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -1254,11 +1254,11 @@ STAGE PLANS:
                  0 _col1 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -1288,11 +1288,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -1300,11 +1300,11 @@ STAGE PLANS:
                          0 _col3 (type: string)
                          1 _col1 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -1322,23 +1322,23 @@ STAGE PLANS:
                    key expressions: _col3 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col3 (type: string)
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col4 (type: string)
                TableScan
                  alias: smalltbl2
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col1 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col1 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col0 (type: string)
            Reduce Operator Tree:
              Join Operator
    @@ -1348,11 +1348,11 @@ STAGE PLANS:
                  0 _col3 (type: string)
                  1 _col1 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -1373,11 +1373,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -1391,11 +1391,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -1403,11 +1403,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -1425,32 +1425,32 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string), _col2 (type: string)
                TableScan
                  alias: smalltbl1
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -1459,11 +1459,11 @@ STAGE PLANS:
                  0 _col0 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -1667,11 +1667,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -1682,11 +1682,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col3 (type: string)
    @@ -1697,11 +1697,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col1 (type: string)
    @@ -1712,11 +1712,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col2 (type: string)
    @@ -1730,11 +1730,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -1742,11 +1742,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
    @@ -1754,11 +1754,11 @@ STAGE PLANS:
                              0 _col3 (type: string)
                              1 _col1 (type: string)
                            outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                              outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                              Map Join Operator
                                condition map:
                                     Inner Join 0 to 1
    @@ -1766,11 +1766,11 @@ STAGE PLANS:
                                  0 _col1 (type: string)
                                  1 _col0 (type: string)
                                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                                Select Operator
                                  expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                                  Map Join Operator
                                    condition map:
                                         Inner Join 0 to 1
    @@ -1778,11 +1778,11 @@ STAGE PLANS:
                                      0 _col2 (type: string)
                                      1 _col0 (type: string)
                                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                                    Select Operator
                                      expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                                      Group By Operator
                                        aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                                        mode: hash
    @@ -1991,11 +1991,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -2006,11 +2006,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col3 (type: string)
    @@ -2024,11 +2024,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2036,11 +2036,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
    @@ -2048,11 +2048,11 @@ STAGE PLANS:
                              0 _col3 (type: string)
                              1 _col1 (type: string)
                            outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                              outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                              File Output Operator
                                compressed: false
                                table:
    @@ -2078,11 +2078,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col1 (type: string)
    @@ -2093,11 +2093,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col2 (type: string)
    @@ -2114,11 +2114,11 @@ STAGE PLANS:
                      0 _col1 (type: string)
                      1 _col0 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2126,11 +2126,11 @@ STAGE PLANS:
                          0 _col2 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                            mode: hash
    @@ -2358,11 +2358,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -2376,11 +2376,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2388,11 +2388,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -2418,11 +2418,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col3 (type: string)
    @@ -2439,11 +2439,11 @@ STAGE PLANS:
                      0 _col3 (type: string)
                      1 _col1 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
                        table:
    @@ -2469,11 +2469,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col1 (type: string)
    @@ -2490,11 +2490,11 @@ STAGE PLANS:
                      0 _col1 (type: string)
                      1 _col0 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                      File Output Operator
                        compressed: false
                        table:
    @@ -2520,11 +2520,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col2 (type: string)
    @@ -2541,11 +2541,11 @@ STAGE PLANS:
                      0 _col2 (type: string)
                      1 _col0 (type: string)
                    outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                      outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                        mode: hash
    @@ -2604,11 +2604,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2616,11 +2616,11 @@ STAGE PLANS:
                          0 _col2 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                          Group By Operator
                            aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                            mode: hash
    @@ -2643,23 +2643,23 @@ STAGE PLANS:
                    key expressions: _col2 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col2 (type: string)
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
                TableScan
                  alias: smalltbl4
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -2668,11 +2668,11 @@ STAGE PLANS:
                  0 _col2 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: hash(_col0) (type: int), hash(_col1) (type: int), hash(_col2) (type: int), hash(_col3) (type: int), hash(_col4) (type: int), hash(_col7) (type: int), hash(_col5) (type: int), hash(_col6) (type: int)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7
    - Statistics: Num rows: 913 Data size: 13207 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 7320 Data size: 105677 Basic stats: COMPLETE Column stats: NONE
                  Group By Operator
                    aggregations: sum(_col0), sum(_col1), sum(_col2), sum(_col3), sum(_col4), sum(_col5), sum(_col6), sum(_col7)
                    mode: hash
    @@ -2707,11 +2707,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2719,11 +2719,11 @@ STAGE PLANS:
                          0 _col1 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -2741,23 +2741,23 @@ STAGE PLANS:
                    key expressions: _col1 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col1 (type: string)
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
                TableScan
                  alias: smalltbl3
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -2766,11 +2766,11 @@ STAGE PLANS:
                  0 _col1 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col6 (type: string), _col4 (type: string), _col5 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
    - Statistics: Num rows: 830 Data size: 12007 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6655 Data size: 96070 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -2800,11 +2800,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2812,11 +2812,11 @@ STAGE PLANS:
                          0 _col3 (type: string)
                          1 _col1 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -2834,23 +2834,23 @@ STAGE PLANS:
                    key expressions: _col3 (type: string)
                    sort order: +
                    Map-reduce partition columns: _col3 (type: string)
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                    value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col4 (type: string)
                TableScan
                  alias: smalltbl2
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: value is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string), value (type: string)
                      outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col1 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col1 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col0 (type: string)
            Reduce Operator Tree:
              Join Operator
    @@ -2860,11 +2860,11 @@ STAGE PLANS:
                  0 _col3 (type: string)
                  1 _col1 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col5 (type: string), _col3 (type: string), _col4 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
    - Statistics: Num rows: 755 Data size: 10916 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 6050 Data size: 87337 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
    @@ -2885,11 +2885,11 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
                          0 _col0 (type: string)
    @@ -2903,11 +2903,11 @@ STAGE PLANS:
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Map Join Operator
                        condition map:
                             Inner Join 0 to 1
    @@ -2915,11 +2915,11 @@ STAGE PLANS:
                          0 _col0 (type: string)
                          1 _col0 (type: string)
                        outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                        Select Operator
                          expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                          outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                          File Output Operator
                            compressed: false
                            table:
    @@ -2937,32 +2937,32 @@ STAGE PLANS:
                  Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key1 is not null and value is not null) and key2 is not null) (type: boolean)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key1 (type: string), key2 (type: string), value (type: string)
                      outputColumnNames: _col0, _col1, _col2
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 625 Data size: 9022 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5000 Data size: 72180 Basic stats: COMPLETE Column stats: NONE
                        value expressions: _col1 (type: string), _col2 (type: string)
                TableScan
                  alias: smalltbl1
                  Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: key (type: string)
                      outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
                        key expressions: _col0 (type: string)
                        sort order: +
                        Map-reduce partition columns: _col0 (type: string)
    - Statistics: Num rows: 5 Data size: 35 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
    @@ -2971,11 +2971,11 @@ STAGE PLANS:
                  0 _col0 (type: string)
                  1 _col0 (type: string)
                outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: _col0 (type: string), _col1 (type: string), _col3 (type: string), _col2 (type: string), _col2 (type: string)
                  outputColumnNames: _col0, _col1, _col2, _col3, _col4
    - Statistics: Num rows: 687 Data size: 9924 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 5500 Data size: 79398 Basic stats: COMPLETE Column stats: NONE
                  File Output Operator
                    compressed: false
                    table:
  • Jpullokk at Dec 12, 2015 at 6:54 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out
    index 441338e..57ee16a 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_25.q.out
    @@ -46,9 +46,6 @@ POSTHOOK: query: load data local inpath '../../data/files/smbbucket_3.rc' overwr
      POSTHOOK: type: LOAD
      #### A masked pattern was here ####
      POSTHOOK: Output: default@smb_bucket_3
    -Warning: Shuffle Join JOIN[27][tables = [$hdt$_0, $hdt$_1]] in Stage 'Stage-2:MAPRED' is a cross product
    -Warning: Shuffle Join JOIN[9][tables = [$hdt$_0, $hdt$_1]] in Stage 'Stage-1:MAPRED' is a cross product
    -Warning: Shuffle Join JOIN[22][tables = [$hdt$_1, $hdt$_2]] in Stage 'Stage-4:MAPRED' is a cross product
      PREHOOK: query: explain
      select * from (select a.key from smb_bucket_1 a join smb_bucket_2 b on (a.key = b.key) where a.key = 5) t1 left outer join (select c.key from smb_bucket_2 c join smb_bucket_3 d on (c.key = d.key) where c.key=5) t2 on (t1.key=t2.key) where t2.key=5
      PREHOOK: type: QUERY
    @@ -74,26 +71,30 @@ STAGE PLANS:
                    Select Operator
                      Statistics: Num rows: 26 Data size: 104 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                        Statistics: Num rows: 26 Data size: 104 Basic stats: COMPLETE Column stats: NONE
                TableScan
                  alias: b
                  Statistics: Num rows: 51 Data size: 206 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: (5 = key) (type: boolean)
    + predicate: (key = 5) (type: boolean)
                    Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                        Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
                     Inner Join 0 to 1
                keys:
    - 0
    - 1
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
                Statistics: Num rows: 28 Data size: 114 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
    @@ -107,19 +108,23 @@ STAGE PLANS:
            Map Operator Tree:
                TableScan
                  Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                    Statistics: Num rows: 28 Data size: 114 Basic stats: COMPLETE Column stats: NONE
                TableScan
                  Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                    Statistics: Num rows: 29 Data size: 118 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
                     Inner Join 0 to 1
                keys:
    - 0
    - 1
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
                Statistics: Num rows: 31 Data size: 129 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: 5 (type: int), 5 (type: int)
    @@ -145,26 +150,30 @@ STAGE PLANS:
                    Select Operator
                      Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                        Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                TableScan
                  alias: d
                  Statistics: Num rows: 55 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: (5 = key) (type: boolean)
    + predicate: (key = 5) (type: boolean)
                    Statistics: Num rows: 27 Data size: 108 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      Statistics: Num rows: 27 Data size: 108 Basic stats: COMPLETE Column stats: NONE
                      Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                        Statistics: Num rows: 27 Data size: 108 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
                     Inner Join 0 to 1
                keys:
    - 0
    - 1
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
                Statistics: Num rows: 29 Data size: 118 Basic stats: COMPLETE Column stats: NONE
                File Output Operator
                  compressed: false
    @@ -179,11 +188,6 @@ STAGE PLANS:
            Processor Tree:
              ListSink

    -Warning: Map Join MAPJOIN[56][bigTable=?] in task 'Stage-7:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[48][bigTable=?] in task 'Stage-6:MAPRED' is a cross product
    -Warning: Shuffle Join JOIN[27][tables = [$hdt$_0, $hdt$_1]] in Stage 'Stage-2:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[57][bigTable=?] in task 'Stage-9:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[58][bigTable=?] in task 'Stage-10:MAPRED' is a cross product
      PREHOOK: query: -- explain
      -- select * from smb_bucket_1 a left outer join smb_bucket_2 b on a.key = b.key left outer join src c on a.key=c.value

    @@ -226,14 +230,14 @@ STAGE PLANS:
                  alias: b
                  Statistics: Num rows: 51 Data size: 206 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: (5 = key) (type: boolean)
    + predicate: (key = 5) (type: boolean)
                    Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)

        Stage: Stage-9
          Map Reduce
    @@ -250,8 +254,8 @@ STAGE PLANS:
                        condition map:
                             Inner Join 0 to 1
                        keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)
                        Statistics: Num rows: 28 Data size: 114 Basic stats: COMPLETE Column stats: NONE
                        File Output Operator
                          compressed: false
    @@ -276,8 +280,8 @@ STAGE PLANS:
                TableScan
                  HashTable Sink Operator
                    keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)

        Stage: Stage-6
          Map Reduce
    @@ -287,8 +291,8 @@ STAGE PLANS:
                    condition map:
                         Inner Join 0 to 1
                    keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)
                    Statistics: Num rows: 31 Data size: 129 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: 5 (type: int), 5 (type: int)
    @@ -315,8 +319,8 @@ STAGE PLANS:
                TableScan
                  HashTable Sink Operator
                    keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)

        Stage: Stage-7
          Map Reduce
    @@ -326,8 +330,8 @@ STAGE PLANS:
                    condition map:
                         Inner Join 0 to 1
                    keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)
                    Statistics: Num rows: 31 Data size: 129 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      expressions: 5 (type: int), 5 (type: int)
    @@ -348,19 +352,23 @@ STAGE PLANS:
            Map Operator Tree:
                TableScan
                  Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                    Statistics: Num rows: 28 Data size: 114 Basic stats: COMPLETE Column stats: NONE
                TableScan
                  Reduce Output Operator
    - sort order:
    + key expressions: 5 (type: int)
    + sort order: +
    + Map-reduce partition columns: 5 (type: int)
                    Statistics: Num rows: 29 Data size: 118 Basic stats: COMPLETE Column stats: NONE
            Reduce Operator Tree:
              Join Operator
                condition map:
                     Inner Join 0 to 1
                keys:
    - 0
    - 1
    + 0 _col0 (type: int)
    + 1 _col0 (type: int)
                Statistics: Num rows: 31 Data size: 129 Basic stats: COMPLETE Column stats: NONE
                Select Operator
                  expressions: 5 (type: int), 5 (type: int)
    @@ -377,11 +385,11 @@ STAGE PLANS:
        Stage: Stage-14
          Map Reduce Local Work
            Alias -> Map Local Tables:
    - $hdt$_1:$hdt$_1:$hdt$_1:b
    + $hdt$_1:$hdt$_1:b
                Fetch Operator
                  limit: -1
            Alias -> Map Local Operator Tree:
    - $hdt$_1:$hdt$_1:$hdt$_1:b
    + $hdt$_1:$hdt$_1:b
                TableScan
                  alias: b
                  Statistics: Num rows: 51 Data size: 206 Basic stats: COMPLETE Column stats: NONE
    @@ -392,8 +400,8 @@ STAGE PLANS:
                      Statistics: Num rows: 25 Data size: 100 Basic stats: COMPLETE Column stats: NONE
                      HashTable Sink Operator
                        keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)

        Stage: Stage-10
          Map Reduce
    @@ -402,7 +410,7 @@ STAGE PLANS:
                  alias: d
                  Statistics: Num rows: 55 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
    - predicate: (5 = key) (type: boolean)
    + predicate: (key = 5) (type: boolean)
                    Statistics: Num rows: 27 Data size: 108 Basic stats: COMPLETE Column stats: NONE
                    Select Operator
                      Statistics: Num rows: 27 Data size: 108 Basic stats: COMPLETE Column stats: NONE
    @@ -410,8 +418,8 @@ STAGE PLANS:
                        condition map:
                             Inner Join 0 to 1
                        keys:
    - 0
    - 1
    + 0 5 (type: int)
    + 1 5 (type: int)
                        Statistics: Num rows: 29 Data size: 118 Basic stats: COMPLETE Column stats: NONE
                        File Output Operator
                          compressed: false
    @@ -428,11 +436,6 @@ STAGE PLANS:
            Processor Tree:
              ListSink

    -Warning: Map Join MAPJOIN[56][bigTable=?] in task 'Stage-7:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[48][bigTable=?] in task 'Stage-6:MAPRED' is a cross product
    -Warning: Shuffle Join JOIN[27][tables = [$hdt$_0, $hdt$_1]] in Stage 'Stage-2:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[57][bigTable=?] in task 'Stage-9:MAPRED' is a cross product
    -Warning: Map Join MAPJOIN[58][bigTable=?] in task 'Stage-10:MAPRED' is a cross product
      PREHOOK: query: select * from (select a.key from smb_bucket_1 a join smb_bucket_2 b on (a.key = b.key) where a.key = 5) t1 left outer join (select c.key from smb_bucket_2 c join smb_bucket_3 d on (c.key = d.key) where c.key=5) t2 on (t1.key=t2.key) where t2.key=5
      PREHOOK: type: QUERY
      PREHOOK: Input: default@smb_bucket_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_3.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_3.q.out
    index 26fa5d4..f6fb649 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_3.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_3.q.out
    @@ -73,7 +73,7 @@ STAGE PLANS:
                  Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 111 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_4.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_4.q.out
    index 9fc7f93..0dbd4f4 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_4.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_4.q.out
    @@ -69,7 +69,7 @@ STAGE PLANS:
                  Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 1 Data size: 111 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 2 Data size: 222 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/smb_mapjoin_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/smb_mapjoin_6.q.out b/ql/src/test/results/clientpositive/smb_mapjoin_6.q.out
    index 5e128a3..e8af090 100644
    --- a/ql/src/test/results/clientpositive/smb_mapjoin_6.q.out
    +++ b/ql/src/test/results/clientpositive/smb_mapjoin_6.q.out
    @@ -81,7 +81,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 4812 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2406 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 4812 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -1263,7 +1263,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 4812 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2406 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 4812 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_2.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_2.q.out
    index 398e711..9450084 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_2.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_2.q.out
    @@ -75,7 +75,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 435 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_3.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_3.q.out
    index dc449fd..6d11948 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_3.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_3.q.out
    @@ -75,7 +75,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 435 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_4.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_4.q.out
    index 09b9622..d814b9d 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_4.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_4.q.out
    @@ -79,7 +79,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 435 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 key (type: string), value (type: string)
    @@ -93,14 +93,14 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 435 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
                      keys:
                        0 key (type: string), value (type: string)
                        1 key (type: string), value (type: string)
    - Statistics: Num rows: 45 Data size: 478 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 182 Data size: 1939 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: count()
                        mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_5.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_5.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_5.q.out
    index 259d0b3..fd16246 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_5.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_5.q.out
    @@ -126,7 +126,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Sorted Merge Bucket Map Join Operator
                      condition map:
                           Inner Join 0 to 1

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_6.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_6.q.out
    index aa4e1bf..d66f45a 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_6.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_6.q.out
    @@ -178,7 +178,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 key (type: int)
    @@ -202,7 +202,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -210,7 +210,7 @@ STAGE PLANS:
                        0 key (type: int)
                        1 key (type: int)
                      Position of Big Table: 0
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                      BucketMapJoin: true
                      Group By Operator
                        aggregations: count()

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_7.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_7.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_7.q.out
    index 863a4d1..f737de1 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_7.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_7.q.out
    @@ -259,7 +259,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1000 Data size: 10624 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 key (type: int)
    @@ -276,7 +276,7 @@ STAGE PLANS:
                  Filter Operator
                    isSamplingPred: false
                    predicate: key is not null (type: boolean)
    - Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1000 Data size: 10624 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
    @@ -284,7 +284,7 @@ STAGE PLANS:
                        0 key (type: int)
                        1 key (type: int)
                      Position of Big Table: 0
    - Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 1100 Data size: 11686 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: count()
                        mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/sort_merge_join_desc_8.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sort_merge_join_desc_8.q.out b/ql/src/test/results/clientpositive/sort_merge_join_desc_8.q.out
    index d9c8cdc..2eb3289 100644
    --- a/ql/src/test/results/clientpositive/sort_merge_join_desc_8.q.out
    +++ b/ql/src/test/results/clientpositive/sort_merge_join_desc_8.q.out
    @@ -196,7 +196,7 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 6312 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value2 is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 517 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 2095 Basic stats: COMPLETE Column stats: NONE
                    HashTable Sink Operator
                      keys:
                        0 key (type: string), value2 (type: string)
    @@ -210,14 +210,14 @@ STAGE PLANS:
                  Statistics: Num rows: 500 Data size: 10218 Basic stats: COMPLETE Column stats: NONE
                  Filter Operator
                    predicate: ((key is not null and value2 is not null) and (key < 10)) (type: boolean)
    - Statistics: Num rows: 41 Data size: 837 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 3392 Basic stats: COMPLETE Column stats: NONE
                    Map Join Operator
                      condition map:
                           Inner Join 0 to 1
                      keys:
                        0 key (type: string), value2 (type: string)
                        1 key (type: string), value2 (type: string)
    - Statistics: Num rows: 45 Data size: 920 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 182 Data size: 3731 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: count()
                        mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/annotate_stats_join.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/annotate_stats_join.q.out b/ql/src/test/results/clientpositive/spark/annotate_stats_join.q.out
    index 9cbc411..baa1dcb 100644
    --- a/ql/src/test/results/clientpositive/spark/annotate_stats_join.q.out
    +++ b/ql/src/test/results/clientpositive/spark/annotate_stats_join.q.out
    @@ -268,7 +268,7 @@ STAGE PLANS:
                        alias: dept
                        Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                        Filter Operator
    - predicate: (deptid is not null and deptname is not null) (type: boolean)
    + predicate: (deptname is not null and deptid is not null) (type: boolean)
                          Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                          Select Operator
                            expressions: deptid (type: int), deptname (type: string)
    @@ -342,7 +342,7 @@ STAGE PLANS:
                        alias: d
                        Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                        Filter Operator
    - predicate: (deptid is not null and deptname is not null) (type: boolean)
    + predicate: (deptname is not null and deptid is not null) (type: boolean)
                          Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                          Select Operator
                            expressions: deptid (type: int), deptname (type: string)
    @@ -420,7 +420,7 @@ STAGE PLANS:
                        alias: dept
                        Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                        Filter Operator
    - predicate: (deptid is not null and deptname is not null) (type: boolean)
    + predicate: (deptname is not null and deptid is not null) (type: boolean)
                          Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                          Select Operator
                            expressions: deptid (type: int), deptname (type: string)
    @@ -694,7 +694,7 @@ STAGE PLANS:
                        alias: d
                        Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                        Filter Operator
    - predicate: (deptid is not null and deptname is not null) (type: boolean)
    + predicate: (deptname is not null and deptid is not null) (type: boolean)
                          Statistics: Num rows: 6 Data size: 570 Basic stats: COMPLETE Column stats: COMPLETE
                          Select Operator
                            expressions: deptid (type: int), deptname (type: string)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join1.q.out b/ql/src/test/results/clientpositive/spark/auto_join1.q.out
    index 31eebde..919adec 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join1.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join1.q.out
    @@ -36,11 +36,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string)
    @@ -59,11 +59,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -73,14 +73,14 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col2
                              input vertices:
                                1 Map 2
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: UDFToInteger(_col0) (type: int), _col2 (type: string)
                                outputColumnNames: _col0, _col1
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                File Output Operator
                                  compressed: false
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                  table:
                                      input format: org.apache.hadoop.mapred.TextInputFormat
                                      output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join10.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join10.q.out b/ql/src/test/results/clientpositive/spark/auto_join10.q.out
    index 7e814d0..7441838 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join10.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join10.q.out
    @@ -31,11 +31,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string)
    @@ -56,11 +56,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string)
                            outputColumnNames: _col0
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -70,11 +70,11 @@ STAGE PLANS:
                              outputColumnNames: _col1, _col2
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: hash(_col1,_col2) (type: int)
                                outputColumnNames: _col0
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                                Group By Operator
                                  aggregations: sum(_col0)
                                  mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join12.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join12.q.out b/ql/src/test/results/clientpositive/spark/auto_join12.q.out
    index 1f480bb..3c7877f 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join12.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join12.q.out
    @@ -36,91 +36,86 @@ STAGE PLANS:
                        alias: src
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (((UDFToDouble(key) < 80.0) and (UDFToDouble(key) < 100.0)) and key is not null) (type: boolean)
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + predicate: (((UDFToDouble(key) < 100.0) and (UDFToDouble(key) < 80.0)) and key is not null) (type: boolean)
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string)
                            outputColumnNames: _col0
    - Statistics: Num rows: 28 Data size: 297 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string)
                                1 _col0 (type: string)
    + 2 _col0 (type: string)
                  Local Work:
                    Map Reduce Local Work
    - Map 4
    + Map 2
                  Map Operator Tree:
                      TableScan
                        alias: src
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: ((UDFToDouble(key) < 100.0) and (UDFToDouble(key) < 80.0)) (type: boolean)
    + predicate: (((UDFToDouble(key) < 80.0) and (UDFToDouble(key) < 100.0)) and key is not null) (type: boolean)
                          Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
    - expressions: key (type: string), value (type: string)
    - outputColumnNames: _col0, _col1
    + expressions: key (type: string)
    + outputColumnNames: _col0
                            Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string)
                                1 _col0 (type: string)
    + 2 _col0 (type: string)
                  Local Work:
                    Map Reduce Local Work

        Stage: Stage-1
          Spark
            Edges:
    - Reducer 3 <- Map 2 (GROUP, 1)
    + Reducer 4 <- Map 3 (GROUP, 1)
      #### A masked pattern was here ####
            Vertices:
    - Map 2
    + Map 3
                  Map Operator Tree:
                      TableScan
                        alias: src
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: ((UDFToDouble(key) < 100.0) and (UDFToDouble(key) < 80.0)) (type: boolean)
    - Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
    + predicate: (UDFToDouble(key) < 100.0) (type: boolean)
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
    - expressions: key (type: string)
    - outputColumnNames: _col0
    - Statistics: Num rows: 55 Data size: 584 Basic stats: COMPLETE Column stats: NONE
    + expressions: key (type: string), value (type: string)
    + outputColumnNames: _col0, _col1
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    + Inner Join 0 to 2
                              keys:
                                0 _col0 (type: string)
                                1 _col0 (type: string)
    - outputColumnNames: _col0, _col2
    + 2 _col0 (type: string)
    + outputColumnNames: _col0, _col3
                              input vertices:
    - 1 Map 4
    - Statistics: Num rows: 60 Data size: 642 Basic stats: COMPLETE Column stats: NONE
    - Map Join Operator
    - condition map:
    - Inner Join 0 to 1
    - keys:
    - 0 _col0 (type: string)
    - 1 _col0 (type: string)
    - outputColumnNames: _col1, _col3
    - input vertices:
    - 0 Map 1
    - Statistics: Num rows: 66 Data size: 706 Basic stats: COMPLETE Column stats: NONE
    - Select Operator
    - expressions: hash(_col1,_col3) (type: int)
    + 0 Map 1
    + 1 Map 2
    + Statistics: Num rows: 365 Data size: 3878 Basic stats: COMPLETE Column stats: NONE
    + Select Operator
    + expressions: hash(_col0,_col3) (type: int)
    + outputColumnNames: _col0
    + Statistics: Num rows: 365 Data size: 3878 Basic stats: COMPLETE Column stats: NONE
    + Group By Operator
    + aggregations: sum(_col0)
    + mode: hash
                                  outputColumnNames: _col0
    - Statistics: Num rows: 66 Data size: 706 Basic stats: COMPLETE Column stats: NONE
    - Group By Operator
    - aggregations: sum(_col0)
    - mode: hash
    - outputColumnNames: _col0
    + Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    + Reduce Output Operator
    + sort order:
                                    Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    - Reduce Output Operator
    - sort order:
    - Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column stats: NONE
    - value expressions: _col0 (type: bigint)
    + value expressions: _col0 (type: bigint)
                  Local Work:
                    Map Reduce Local Work
    - Reducer 3
    + Reducer 4
                  Reduce Operator Tree:
                    Group By Operator
                      aggregations: sum(VALUE._col0)

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join13.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join13.q.out b/ql/src/test/results/clientpositive/spark/auto_join13.q.out
    index 0ffe9e3..b46de18 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join13.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join13.q.out
    @@ -55,11 +55,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: ((UDFToDouble(key) < 200.0) and UDFToDouble(key) is not null) (type: boolean)
    - Statistics: Num rows: 83 Data size: 881 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string)
                            outputColumnNames: _col0
    - Statistics: Num rows: 83 Data size: 881 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 (UDFToDouble(_col2) + UDFToDouble(_col0)) (type: double)
    @@ -97,7 +97,7 @@ STAGE PLANS:
                              Statistics: Num rows: 182 Data size: 1939 Basic stats: COMPLETE Column stats: NONE
                              Filter Operator
                                predicate: (UDFToDouble(_col2) + UDFToDouble(_col0)) is not null (type: boolean)
    - Statistics: Num rows: 91 Data size: 969 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 182 Data size: 1939 Basic stats: COMPLETE Column stats: NONE
                                Map Join Operator
                                  condition map:
                                       Inner Join 0 to 1
    @@ -107,11 +107,11 @@ STAGE PLANS:
                                  outputColumnNames: _col1, _col2
                                  input vertices:
                                    1 Map 4
    - Statistics: Num rows: 100 Data size: 1065 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 200 Data size: 2132 Basic stats: COMPLETE Column stats: NONE
                                  Select Operator
                                    expressions: hash(_col2,_col1) (type: int)
                                    outputColumnNames: _col0
    - Statistics: Num rows: 100 Data size: 1065 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 200 Data size: 2132 Basic stats: COMPLETE Column stats: NONE
                                    Group By Operator
                                      aggregations: sum(_col0)
                                      mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join15.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join15.q.out b/ql/src/test/results/clientpositive/spark/auto_join15.q.out
    index 5b1234f..72598ae 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join15.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join15.q.out
    @@ -31,7 +31,7 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Spark HashTable Sink Operator
                            keys:
                              0 key (type: string)
    @@ -53,7 +53,7 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Map Join Operator
                            condition map:
                                 Inner Join 0 to 1
    @@ -63,15 +63,15 @@ STAGE PLANS:
                            outputColumnNames: _col0, _col1, _col5, _col6
                            input vertices:
                              1 Map 4
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                            Select Operator
                              expressions: _col0 (type: string), _col1 (type: string), _col5 (type: string), _col6 (type: string)
                              outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                              Reduce Output Operator
                                key expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
                                sort order: ++++
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                  Local Work:
                    Map Reduce Local Work
              Reducer 2
    @@ -79,7 +79,7 @@ STAGE PLANS:
                    Select Operator
                      expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 (type: string), KEY.reducesinkkey2 (type: string), KEY.reducesinkkey3 (type: string)
                      outputColumnNames: _col0, _col1, _col2, _col3
    - Statistics: Num rows: 275 Data size: 2921 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE Column stats: NONE
                      Group By Operator
                        aggregations: sum(hash(_col0,_col1,_col2,_col3))
                        mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join16.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join16.q.out b/ql/src/test/results/clientpositive/spark/auto_join16.q.out
    index 5c4bbb3..6da1c50 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join16.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join16.q.out
    @@ -30,12 +30,12 @@ STAGE PLANS:
                        alias: a
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
    - predicate: (((((UDFToDouble(value) < 200.0) and (UDFToDouble(key) > 10.0)) and (UDFToDouble(key) > 20.0)) and key is not null) and value is not null) (type: boolean)
    - Statistics: Num rows: 5 Data size: 53 Basic stats: COMPLETE Column stats: NONE
    + predicate: (((((UDFToDouble(value) < 200.0) and (UDFToDouble(key) > 20.0)) and (UDFToDouble(key) > 10.0)) and key is not null) and value is not null) (type: boolean)
    + Statistics: Num rows: 18 Data size: 191 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 53 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 18 Data size: 191 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string), _col1 (type: string)
    @@ -56,11 +56,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: (((((UDFToDouble(key) > 10.0) and (UDFToDouble(key) > 20.0)) and (UDFToDouble(value) < 200.0)) and key is not null) and value is not null) (type: boolean)
    - Statistics: Num rows: 5 Data size: 53 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 18 Data size: 191 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 5 Data size: 53 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 18 Data size: 191 Basic stats: COMPLETE Column stats: NONE
                            Map Join Operator
                              condition map:
                                   Inner Join 0 to 1
    @@ -70,11 +70,11 @@ STAGE PLANS:
                              outputColumnNames: _col0, _col3
                              input vertices:
                                1 Map 3
    - Statistics: Num rows: 5 Data size: 58 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 19 Data size: 210 Basic stats: COMPLETE Column stats: NONE
                              Select Operator
                                expressions: hash(_col0,_col3) (type: int)
                                outputColumnNames: _col0
    - Statistics: Num rows: 5 Data size: 58 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 19 Data size: 210 Basic stats: COMPLETE Column stats: NONE
                                Group By Operator
                                  aggregations: sum(_col0)
                                  mode: hash

    http://git-wip-us.apache.org/repos/asf/hive/blob/08f73adc/ql/src/test/results/clientpositive/spark/auto_join17.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/auto_join17.q.out b/ql/src/test/results/clientpositive/spark/auto_join17.q.out
    index bc492c9..4a93678 100644
    --- a/ql/src/test/results/clientpositive/spark/auto_join17.q.out
    +++ b/ql/src/test/results/clientpositive/spark/auto_join17.q.out
    @@ -32,11 +32,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                          Select Operator
                            expressions: key (type: string), value (type: string)
                            outputColumnNames: _col0, _col1
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                            Spark HashTable Sink Operator
                              keys:
                                0 _col0 (type: string)
    @@ -55,11 +55,11 @@ STAGE PLANS:
                        Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                        Filter Operator
                          predicate: key is not null (type: boolean)
    - Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE Column stats: NONE
    + Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
                &n