Repository: hive
Updated Branches:
  refs/heads/master 503b9e9f0 -> 7d766d0bd


http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/constant_prop_3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/constant_prop_3.q.out 
b/ql/src/test/results/clientpositive/constant_prop_3.q.out
new file mode 100644
index 0000000..3635913
--- /dev/null
+++ b/ql/src/test/results/clientpositive/constant_prop_3.q.out
@@ -0,0 +1,384 @@
+PREHOOK: query: drop table part_hive
+PREHOOK: type: DROPTABLE
+POSTHOOK: query: drop table part_hive
+POSTHOOK: type: DROPTABLE
+PREHOOK: query: drop table partsupp_hive
+PREHOOK: type: DROPTABLE
+POSTHOOK: query: drop table partsupp_hive
+POSTHOOK: type: DROPTABLE
+PREHOOK: query: drop table supplier_hive
+PREHOOK: type: DROPTABLE
+POSTHOOK: query: drop table supplier_hive
+POSTHOOK: type: DROPTABLE
+PREHOOK: query: create table part_hive (P_PARTKEY INT, P_NAME STRING, P_MFGR 
STRING, P_BRAND STRING, P_TYPE STRING, 
+P_SIZE INT, P_CONTAINER STRING, P_RETAILPRICE DOUBLE, P_COMMENT STRING)
+PREHOOK: type: CREATETABLE
+PREHOOK: Output: database:default
+PREHOOK: Output: default@part_hive
+POSTHOOK: query: create table part_hive (P_PARTKEY INT, P_NAME STRING, P_MFGR 
STRING, P_BRAND STRING, P_TYPE STRING, 
+P_SIZE INT, P_CONTAINER STRING, P_RETAILPRICE DOUBLE, P_COMMENT STRING)
+POSTHOOK: type: CREATETABLE
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@part_hive
+PREHOOK: query: create table partsupp_hive (PS_PARTKEY INT, PS_SUPPKEY INT, 
PS_AVAILQTY INT, PS_SUPPLYCOST DOUBLE, 
+PS_COMMENT STRING)
+PREHOOK: type: CREATETABLE
+PREHOOK: Output: database:default
+PREHOOK: Output: default@partsupp_hive
+POSTHOOK: query: create table partsupp_hive (PS_PARTKEY INT, PS_SUPPKEY INT, 
PS_AVAILQTY INT, PS_SUPPLYCOST DOUBLE, 
+PS_COMMENT STRING)
+POSTHOOK: type: CREATETABLE
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@partsupp_hive
+PREHOOK: query: create table supplier_hive (S_SUPPKEY INT, S_NAME STRING, 
S_ADDRESS STRING, S_NATIONKEY INT, 
+S_PHONE STRING, S_ACCTBAL DOUBLE, S_COMMENT STRING)
+PREHOOK: type: CREATETABLE
+PREHOOK: Output: database:default
+PREHOOK: Output: default@supplier_hive
+POSTHOOK: query: create table supplier_hive (S_SUPPKEY INT, S_NAME STRING, 
S_ADDRESS STRING, S_NATIONKEY INT, 
+S_PHONE STRING, S_ACCTBAL DOUBLE, S_COMMENT STRING)
+POSTHOOK: type: CREATETABLE
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@supplier_hive
+PREHOOK: query: analyze table part_hive compute statistics
+PREHOOK: type: QUERY
+PREHOOK: Input: default@part_hive
+PREHOOK: Output: default@part_hive
+POSTHOOK: query: analyze table part_hive compute statistics
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_hive
+POSTHOOK: Output: default@part_hive
+PREHOOK: query: analyze table part_hive compute statistics for columns
+PREHOOK: type: QUERY
+PREHOOK: Input: default@part_hive
+#### A masked pattern was here ####
+POSTHOOK: query: analyze table part_hive compute statistics for columns
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@part_hive
+#### A masked pattern was here ####
+PREHOOK: query: analyze table partsupp_hive compute statistics
+PREHOOK: type: QUERY
+PREHOOK: Input: default@partsupp_hive
+PREHOOK: Output: default@partsupp_hive
+POSTHOOK: query: analyze table partsupp_hive compute statistics
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@partsupp_hive
+POSTHOOK: Output: default@partsupp_hive
+PREHOOK: query: analyze table partsupp_hive compute statistics for columns
+PREHOOK: type: QUERY
+PREHOOK: Input: default@partsupp_hive
+#### A masked pattern was here ####
+POSTHOOK: query: analyze table partsupp_hive compute statistics for columns
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@partsupp_hive
+#### A masked pattern was here ####
+PREHOOK: query: analyze table supplier_hive compute statistics
+PREHOOK: type: QUERY
+PREHOOK: Input: default@supplier_hive
+PREHOOK: Output: default@supplier_hive
+POSTHOOK: query: analyze table supplier_hive compute statistics
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@supplier_hive
+POSTHOOK: Output: default@supplier_hive
+PREHOOK: query: analyze table supplier_hive compute statistics for columns
+PREHOOK: type: QUERY
+PREHOOK: Input: default@supplier_hive
+#### A masked pattern was here ####
+POSTHOOK: query: analyze table supplier_hive compute statistics for columns
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@supplier_hive
+#### A masked pattern was here ####
+Warning: Shuffle Join JOIN[24][tables = [$hdt$_0, $hdt$_1, $hdt$_2]] in Stage 
'Stage-2:MAPRED' is a cross product
+PREHOOK: query: explain select
+       p_brand,
+       p_type,
+       p_size,
+       count(distinct ps_suppkey) as supplier_cnt
+from
+       partsupp_hive,
+       part_hive
+where
+       p_partkey = ps_partkey
+       and p_brand <> 'Brand#34'
+       and p_type not like 'ECONOMY BRUSHED%'
+       and p_size in (22, 14, 27, 49, 21, 33, 35, 28)
+       and partsupp_hive.ps_suppkey not in (
+               select
+                       s_suppkey
+               from
+                       supplier_hive
+               where
+                       s_comment like '%Customer%Complaints%'
+       )
+group by
+       p_brand,
+       p_type,
+       p_size
+order by
+       supplier_cnt desc,
+       p_brand,
+       p_type,
+       p_size
+PREHOOK: type: QUERY
+POSTHOOK: query: explain select
+       p_brand,
+       p_type,
+       p_size,
+       count(distinct ps_suppkey) as supplier_cnt
+from
+       partsupp_hive,
+       part_hive
+where
+       p_partkey = ps_partkey
+       and p_brand <> 'Brand#34'
+       and p_type not like 'ECONOMY BRUSHED%'
+       and p_size in (22, 14, 27, 49, 21, 33, 35, 28)
+       and partsupp_hive.ps_suppkey not in (
+               select
+                       s_suppkey
+               from
+                       supplier_hive
+               where
+                       s_comment like '%Customer%Complaints%'
+       )
+group by
+       p_brand,
+       p_type,
+       p_size
+order by
+       supplier_cnt desc,
+       p_brand,
+       p_type,
+       p_size
+POSTHOOK: type: QUERY
+STAGE DEPENDENCIES:
+  Stage-1 is a root stage
+  Stage-2 depends on stages: Stage-1, Stage-7
+  Stage-3 depends on stages: Stage-2
+  Stage-4 depends on stages: Stage-3
+  Stage-5 depends on stages: Stage-4
+  Stage-7 is a root stage
+  Stage-0 depends on stages: Stage-5
+
+STAGE PLANS:
+  Stage: Stage-1
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            alias: partsupp_hive
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            Filter Operator
+              predicate: ps_partkey is not null (type: boolean)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              Select Operator
+                expressions: ps_partkey (type: int), ps_suppkey (type: int)
+                outputColumnNames: _col0, _col1
+                Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col0 (type: int)
+                  sort order: +
+                  Map-reduce partition columns: _col0 (type: int)
+                  Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                  value expressions: _col1 (type: int)
+          TableScan
+            alias: part_hive
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            Filter Operator
+              predicate: ((p_size) IN (22, 14, 27, 49, 21, 33, 35, 28) and 
(p_brand <> 'Brand#34') and p_partkey is not null and (not (p_type like 
'ECONOMY BRUSHED%'))) (type: boolean)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              Select Operator
+                expressions: p_partkey (type: int), p_brand (type: string), 
p_type (type: string), p_size (type: int)
+                outputColumnNames: _col0, _col1, _col2, _col3
+                Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col0 (type: int)
+                  sort order: +
+                  Map-reduce partition columns: _col0 (type: int)
+                  Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                  value expressions: _col1 (type: string), _col2 (type: 
string), _col3 (type: int)
+      Reduce Operator Tree:
+        Join Operator
+          condition map:
+               Inner Join 0 to 1
+          keys:
+            0 _col0 (type: int)
+            1 _col0 (type: int)
+          outputColumnNames: _col1, _col3, _col4, _col5
+          Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+          File Output Operator
+            compressed: false
+            table:
+                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+
+  Stage: Stage-2
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            Reduce Output Operator
+              sort order: 
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              value expressions: _col1 (type: int), _col3 (type: string), 
_col4 (type: string), _col5 (type: int)
+          TableScan
+            Reduce Output Operator
+              sort order: 
+              Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE 
Column stats: NONE
+      Reduce Operator Tree:
+        Join Operator
+          condition map:
+               Inner Join 0 to 1
+          keys:
+            0 
+            1 
+          outputColumnNames: _col1, _col3, _col4, _col5
+          Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+          File Output Operator
+            compressed: false
+            table:
+                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+
+  Stage: Stage-3
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            Reduce Output Operator
+              key expressions: _col1 (type: int)
+              sort order: +
+              Map-reduce partition columns: _col1 (type: int)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              value expressions: _col3 (type: string), _col4 (type: string), 
_col5 (type: int)
+          TableScan
+            alias: supplier_hive
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            Filter Operator
+              predicate: (s_comment like '%Customer%Complaints%') (type: 
boolean)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              Select Operator
+                expressions: s_suppkey (type: int)
+                outputColumnNames: _col0
+                Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                Reduce Output Operator
+                  key expressions: _col0 (type: int)
+                  sort order: +
+                  Map-reduce partition columns: _col0 (type: int)
+                  Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+      Reduce Operator Tree:
+        Join Operator
+          condition map:
+               Left Outer Join0 to 1
+          keys:
+            0 _col1 (type: int)
+            1 _col0 (type: int)
+          outputColumnNames: _col1, _col3, _col4, _col5, _col7
+          Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+          Filter Operator
+            predicate: _col7 is null (type: boolean)
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            Select Operator
+              expressions: _col3 (type: string), _col4 (type: string), _col5 
(type: int), _col1 (type: int)
+              outputColumnNames: _col3, _col4, _col5, _col1
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              Group By Operator
+                aggregations: count(DISTINCT _col1)
+                keys: _col3 (type: string), _col4 (type: string), _col5 (type: 
int), _col1 (type: int)
+                mode: hash
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4
+                Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
+                File Output Operator
+                  compressed: false
+                  table:
+                      input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                      output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                      serde: 
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+
+  Stage: Stage-4
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            Reduce Output Operator
+              key expressions: _col0 (type: string), _col1 (type: string), 
_col2 (type: int), _col3 (type: int)
+              sort order: ++++
+              Map-reduce partition columns: _col0 (type: string), _col1 (type: 
string), _col2 (type: int)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+      Reduce Operator Tree:
+        Group By Operator
+          aggregations: count(DISTINCT KEY._col3:0._col0)
+          keys: KEY._col0 (type: string), KEY._col1 (type: string), KEY._col2 
(type: int)
+          mode: mergepartial
+          outputColumnNames: _col0, _col1, _col2, _col3
+          Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+          File Output Operator
+            compressed: false
+            table:
+                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                serde: org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+
+  Stage: Stage-5
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            Reduce Output Operator
+              key expressions: _col3 (type: bigint), _col0 (type: string), 
_col1 (type: string), _col2 (type: int)
+              sort order: -+++
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+      Reduce Operator Tree:
+        Select Operator
+          expressions: KEY.reducesinkkey1 (type: string), KEY.reducesinkkey2 
(type: string), KEY.reducesinkkey3 (type: int), KEY.reducesinkkey0 (type: 
bigint)
+          outputColumnNames: _col0, _col1, _col2, _col3
+          Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+          File Output Operator
+            compressed: false
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            table:
+                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
+                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+
+  Stage: Stage-7
+    Map Reduce
+      Map Operator Tree:
+          TableScan
+            alias: supplier_hive
+            Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+            Filter Operator
+              predicate: ((s_comment like '%Customer%Complaints%') and 
s_suppkey is null) (type: boolean)
+              Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
+              Select Operator
+                Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
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: 
+                    Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE 
Column stats: NONE
+                    value expressions: _col0 (type: bigint)
+      Reduce Operator Tree:
+        Group By Operator
+          aggregations: count(VALUE._col0)
+          mode: mergepartial
+          outputColumnNames: _col0
+          Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column 
stats: NONE
+          Filter Operator
+            predicate: (_col0 = 0) (type: boolean)
+            Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE Column 
stats: NONE
+            Select Operator
+              Statistics: Num rows: 1 Data size: 8 Basic stats: COMPLETE 
Column stats: NONE
+              File Output Operator
+                compressed: false
+                table:
+                    input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                    output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                    serde: 
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
+
+  Stage: Stage-0
+    Fetch Operator
+      limit: -1
+      Processor Tree:
+        ListSink
+

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/cte_7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/cte_7.q.out 
b/ql/src/test/results/clientpositive/cte_7.q.out
new file mode 100644
index 0000000..daab3dc
--- /dev/null
+++ b/ql/src/test/results/clientpositive/cte_7.q.out
@@ -0,0 +1,55 @@
+PREHOOK: query: create table t (i int,a string,b string)
+PREHOOK: type: CREATETABLE
+PREHOOK: Output: database:default
+PREHOOK: Output: default@t
+POSTHOOK: query: create table t (i int,a string,b string)
+POSTHOOK: type: CREATETABLE
+POSTHOOK: Output: database:default
+POSTHOOK: Output: default@t
+PREHOOK: query: insert into t values (1,'hello','world'),(2,'bye',null)
+PREHOOK: type: QUERY
+PREHOOK: Input: default@values__tmp__table__1
+PREHOOK: Output: default@t
+POSTHOOK: query: insert into t values (1,'hello','world'),(2,'bye',null)
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@values__tmp__table__1
+POSTHOOK: Output: default@t
+POSTHOOK: Lineage: t.a SIMPLE 
[(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col2, 
type:string, comment:), ]
+POSTHOOK: Lineage: t.b SIMPLE 
[(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col3, 
type:string, comment:), ]
+POSTHOOK: Lineage: t.i EXPRESSION 
[(values__tmp__table__1)values__tmp__table__1.FieldSchema(name:tmp_values_col1, 
type:string, comment:), ]
+PREHOOK: query: select * from t where t.b is null
+PREHOOK: type: QUERY
+PREHOOK: Input: default@t
+#### A masked pattern was here ####
+POSTHOOK: query: select * from t where t.b is null
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t
+#### A masked pattern was here ####
+2      bye     NULL
+PREHOOK: query: with cte as (select t.a as a,t.a as b,t.a as c from t where 
t.b is null) select * from cte
+PREHOOK: type: QUERY
+PREHOOK: Input: default@t
+#### A masked pattern was here ####
+POSTHOOK: query: with cte as (select t.a as a,t.a as b,t.a as c from t where 
t.b is null) select * from cte
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t
+#### A masked pattern was here ####
+bye    bye     bye
+PREHOOK: query: select t.a as a,t.a as b,t.a as c from t where t.b is null
+PREHOOK: type: QUERY
+PREHOOK: Input: default@t
+#### A masked pattern was here ####
+POSTHOOK: query: select t.a as a,t.a as b,t.a as c from t where t.b is null
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t
+#### A masked pattern was here ####
+bye    bye     bye
+PREHOOK: query: with cte as (select t.a as a,t.a as b,t.a as c from t where 
t.b is not null) select * from cte
+PREHOOK: type: QUERY
+PREHOOK: Input: default@t
+#### A masked pattern was here ####
+POSTHOOK: query: with cte as (select t.a as a,t.a as b,t.a as c from t where 
t.b is not null) select * from cte
+POSTHOOK: type: QUERY
+POSTHOOK: Input: default@t
+#### A masked pattern was here ####
+hello  hello   hello

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/dynpart_sort_optimization.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/dynpart_sort_optimization.q.out 
b/ql/src/test/results/clientpositive/dynpart_sort_optimization.q.out
index 13383fb..dec872a 100644
--- a/ql/src/test/results/clientpositive/dynpart_sort_optimization.q.out
+++ b/ql/src/test/results/clientpositive/dynpart_sort_optimization.q.out
@@ -2305,7 +2305,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 1974 Data size: 53304 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
@@ -2365,7 +2365,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), 27 (type: 
tinyint), KEY._col5 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 429 Data size: 53255 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
@@ -2425,7 +2425,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), 100 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 429 Data size: 53255 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
@@ -2485,7 +2485,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), 27 (type: 
tinyint), 100 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 214 Data size: 26565 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
@@ -2545,7 +2545,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), KEY._col4 (type: 
tinyint), 100 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 987 Data size: 26652 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
@@ -2605,7 +2605,7 @@ STAGE PLANS:
                   value expressions: _col0 (type: smallint), _col1 (type: 
bigint), _col2 (type: float)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+          expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), 27 (type: tinyint), 
KEY._col5 (type: int)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 987 Data size: 26652 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out 
b/ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out
index 62399e3..8325803 100644
--- a/ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out
+++ b/ql/src/test/results/clientpositive/dynpart_sort_optimization_acid.q.out
@@ -418,10 +418,9 @@ STAGE PLANS:
               key expressions: _col3 (type: string), '_bucket_number' (type: 
string), _col0 (type: struct<transactionid:bigint,bucketid:int,rowid:bigint>)
               sort order: +++
               Map-reduce partition columns: _col3 (type: string)
-              value expressions: 'foo' (type: string), 'bar' (type: string)
       Reduce Operator Tree:
         Select Operator
-          expressions: KEY._col0 (type: 
struct<transactionid:bigint,bucketid:int,rowid:bigint>), VALUE._col1 (type: 
string), VALUE._col2 (type: string), KEY._col3 (type: string), 
KEY.'_bucket_number' (type: string)
+          expressions: KEY._col0 (type: 
struct<transactionid:bigint,bucketid:int,rowid:bigint>), 'foo' (type: string), 
'bar' (type: string), KEY._col3 (type: string), KEY.'_bucket_number' (type: 
string)
           outputColumnNames: _col0, _col1, _col2, _col3, '_bucket_number'
           File Output Operator
             compressed: false
@@ -933,10 +932,9 @@ STAGE PLANS:
               key expressions: '2008-04-08' (type: string), _col4 (type: int), 
'_bucket_number' (type: string), _col0 (type: 
struct<transactionid:bigint,bucketid:int,rowid:bigint>)
               sort order: ++++
               Map-reduce partition columns: '2008-04-08' (type: string), _col4 
(type: int)
-              value expressions: 'foo' (type: string), 'bar' (type: string)
       Reduce Operator Tree:
         Select Operator
-          expressions: KEY._col0 (type: 
struct<transactionid:bigint,bucketid:int,rowid:bigint>), VALUE._col1 (type: 
string), VALUE._col2 (type: string), KEY._col3 (type: string), KEY._col4 (type: 
int), KEY.'_bucket_number' (type: string)
+          expressions: KEY._col0 (type: 
struct<transactionid:bigint,bucketid:int,rowid:bigint>), 'foo' (type: string), 
'bar' (type: string), '2008-04-08' (type: string), KEY._col4 (type: int), 
KEY.'_bucket_number' (type: string)
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
'_bucket_number'
           File Output Operator
             compressed: false

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/groupby_duplicate_key.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/groupby_duplicate_key.q.out 
b/ql/src/test/results/clientpositive/groupby_duplicate_key.q.out
index dd2ea75..6e19930 100644
--- a/ql/src/test/results/clientpositive/groupby_duplicate_key.q.out
+++ b/ql/src/test/results/clientpositive/groupby_duplicate_key.q.out
@@ -26,18 +26,18 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: _col0 (type: string), _col2 (type: string)
+                  key expressions: _col0 (type: string), '' (type: string)
                   sort order: ++
-                  Map-reduce partition columns: _col0 (type: string), _col2 
(type: string)
+                  Map-reduce partition columns: _col0 (type: string), '' 
(type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
       Reduce Operator Tree:
         Group By Operator
-          keys: KEY._col0 (type: string), KEY._col1 (type: string), KEY._col1 
(type: string)
+          keys: KEY._col0 (type: string), '' (type: string), '' (type: string)
           mode: mergepartial
           outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: _col0 (type: string), _col2 (type: string), _col2 
(type: string)
+            expressions: _col0 (type: string), '' (type: string), '' (type: 
string)
             outputColumnNames: _col0, _col1, _col2
             Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
@@ -104,18 +104,18 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: _col0 (type: string), _col2 (type: string)
+                  key expressions: _col0 (type: string), 'X' (type: string)
                   sort order: ++
-                  Map-reduce partition columns: _col0 (type: string), _col2 
(type: string)
+                  Map-reduce partition columns: _col0 (type: string), 'X' 
(type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
       Reduce Operator Tree:
         Group By Operator
-          keys: KEY._col0 (type: string), KEY._col1 (type: string), KEY._col1 
(type: string)
+          keys: KEY._col0 (type: string), 'X' (type: string), 'X' (type: 
string)
           mode: mergepartial
           outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: _col0 (type: string), _col2 (type: string), _col2 
(type: string)
+            expressions: _col0 (type: string), 'X' (type: string), 'X' (type: 
string)
             outputColumnNames: _col0, _col1, _col2
             Statistics: Num rows: 250 Data size: 2656 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/quotedid_basic.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/quotedid_basic.q.out 
b/ql/src/test/results/clientpositive/quotedid_basic.q.out
index 9ca3f6a..76bd883 100644
--- a/ql/src/test/results/clientpositive/quotedid_basic.q.out
+++ b/ql/src/test/results/clientpositive/quotedid_basic.q.out
@@ -227,7 +227,7 @@ STAGE PLANS:
                         isPivotResult: true
             Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
-              expressions: _col0 (type: string), _col1 (type: string), '1' 
(type: string), rank_window_0 (type: int)
+              expressions: _col0 (type: string), _col1 (type: string), _col2 
(type: string), rank_window_0 (type: int)
               outputColumnNames: _col0, _col1, _col2, _col3
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               File Output Operator
@@ -335,7 +335,7 @@ STAGE PLANS:
                         isPivotResult: true
             Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
-              expressions: _col0 (type: string), _col1 (type: string), '1' 
(type: string), rank_window_0 (type: int)
+              expressions: _col0 (type: string), _col1 (type: string), _col2 
(type: string), rank_window_0 (type: int)
               outputColumnNames: _col0, _col1, _col2, _col3
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/subquery_notin_having.q.java1.7.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/subquery_notin_having.q.java1.7.out 
b/ql/src/test/results/clientpositive/subquery_notin_having.q.java1.7.out
index 70f9591..5114296 100644
--- a/ql/src/test/results/clientpositive/subquery_notin_having.q.java1.7.out
+++ b/ql/src/test/results/clientpositive/subquery_notin_having.q.java1.7.out
@@ -619,25 +619,25 @@ STAGE PLANS:
               predicate: p_mfgr is null (type: boolean)
               Statistics: Num rows: 13 Data size: 1573 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: null (type: string), p_retailprice (type: double)
-                outputColumnNames: p_mfgr, p_retailprice
+                expressions: p_retailprice (type: double)
+                outputColumnNames: p_retailprice
                 Statistics: Num rows: 13 Data size: 1573 Basic stats: COMPLETE 
Column stats: NONE
                 Group By Operator
                   aggregations: max(p_retailprice), min(p_retailprice)
-                  keys: p_mfgr (type: string)
+                  keys: null (type: string)
                   mode: hash
                   outputColumnNames: _col0, _col1, _col2
                   Statistics: Num rows: 13 Data size: 1573 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator
-                    key expressions: _col0 (type: string)
+                    key expressions: null (type: string)
                     sort order: +
-                    Map-reduce partition columns: _col0 (type: string)
+                    Map-reduce partition columns: null (type: string)
                     Statistics: Num rows: 13 Data size: 1573 Basic stats: 
COMPLETE Column stats: NONE
                     value expressions: _col1 (type: double), _col2 (type: 
double)
       Reduce Operator Tree:
         Group By Operator
           aggregations: max(VALUE._col0), min(VALUE._col1)
-          keys: KEY._col0 (type: string)
+          keys: null (type: string)
           mode: mergepartial
           outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 6 Data size: 726 Basic stats: COMPLETE Column 
stats: NONE

http://git-wip-us.apache.org/repos/asf/hive/blob/7d766d0b/ql/src/test/results/clientpositive/tez/dynpart_sort_optimization.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/tez/dynpart_sort_optimization.q.out 
b/ql/src/test/results/clientpositive/tez/dynpart_sort_optimization.q.out
index 0bf92ef..723e819 100644
--- a/ql/src/test/results/clientpositive/tez/dynpart_sort_optimization.q.out
+++ b/ql/src/test/results/clientpositive/tez/dynpart_sort_optimization.q.out
@@ -2438,7 +2438,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 1974 Data size: 53304 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator
@@ -2509,7 +2509,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), 27 (type: 
tinyint), KEY._col5 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 429 Data size: 53255 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator
@@ -2580,7 +2580,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), 100 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 429 Data size: 53255 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator
@@ -2651,7 +2651,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), 27 (type: 
tinyint), 100 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 214 Data size: 26565 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator
@@ -2722,7 +2722,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), KEY._col4 (type: 
tinyint), 100 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 987 Data size: 26652 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator
@@ -2793,7 +2793,7 @@ STAGE PLANS:
         Reducer 2 
             Reduce Operator Tree:
               Select Operator
-                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), KEY._col3 (type: string), KEY._col4 (type: 
tinyint), KEY._col5 (type: int)
+                expressions: VALUE._col0 (type: smallint), VALUE._col1 (type: 
bigint), VALUE._col2 (type: float), 'foo' (type: string), 27 (type: tinyint), 
KEY._col5 (type: int)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 987 Data size: 26652 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator

Reply via email to