You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2014/06/05 20:28:15 UTC

svn commit: r1600719 [18/40] - in /hive/trunk: contrib/src/test/results/clientpositive/ hbase-handler/src/test/results/positive/ ql/src/java/org/apache/hadoop/hive/ql/exec/ ql/src/java/org/apache/hadoop/hive/ql/exec/persistence/ ql/src/java/org/apache/...

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/mrr.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/mrr.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/mrr.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/mrr.q.out Thu Jun  5 18:28:07 2014
@@ -53,10 +53,12 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 3 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
@@ -418,7 +420,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Map 5 
             Map Operator Tree:
                 TableScan
@@ -436,7 +438,7 @@ STAGE PLANS:
                      Inner Join 0 to 1
                 condition expressions:
                   0 
-                  1 {VALUE._col0} {VALUE._col1}
+                  1 {KEY.reducesinkkey0} {VALUE._col0}
                 outputColumnNames: _col4, _col5
                 Statistics: Num rows: 63 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -470,10 +472,12 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 31 Data size: 3145 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 4 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 3145 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
@@ -835,7 +839,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Map 2 
             Map Operator Tree:
                 TableScan
@@ -883,10 +887,12 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 31 Data size: 3145 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 4 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 3145 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
@@ -1353,17 +1359,19 @@ STAGE PLANS:
                       key expressions: _col1 (type: bigint)
                       sort order: +
                       Statistics: Num rows: 4 Data size: 801 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: bigint)
+                      value expressions: _col0 (type: string)
         Reducer 11 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 4 Data size: 801 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: 4 Data size: 801 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: bigint)
+                  value expressions: _col1 (type: bigint)
         Reducer 2 
             Reduce Operator Tree:
               Group By Operator
@@ -1380,17 +1388,19 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 3 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 14 Data size: 2805 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: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: bigint)
+                  value expressions: _col1 (type: bigint)
         Reducer 4 
             Reduce Operator Tree:
               Join Operator
@@ -1398,9 +1408,9 @@ STAGE PLANS:
                      Inner Join 0 to 1
                      Inner Join 0 to 2
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
-                  1 {VALUE._col0} {VALUE._col1}
-                  2 {VALUE._col0} {VALUE._col1}
+                  0 {KEY.reducesinkkey0} {VALUE._col0}
+                  1 {KEY.reducesinkkey0} {VALUE._col0}
+                  2 {KEY.reducesinkkey0} {VALUE._col0}
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 30 Data size: 6171 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -1411,10 +1421,12 @@ STAGE PLANS:
                     key expressions: _col0 (type: string)
                     sort order: +
                     Statistics: Num rows: 30 Data size: 6171 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint), _col2 (type: string), _col3 (type: bigint), _col4 (type: string), _col5 (type: bigint)
+                    value expressions: _col1 (type: bigint), _col2 (type: string), _col3 (type: bigint), _col4 (type: string), _col5 (type: bigint)
         Reducer 5 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: bigint), VALUE._col1 (type: string), VALUE._col2 (type: bigint), VALUE._col3 (type: string), VALUE._col4 (type: bigint)
+                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 30 Data size: 6171 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
@@ -1439,17 +1451,19 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 8 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 14 Data size: 2805 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: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: bigint)
+                  value expressions: _col1 (type: bigint)
 
   Stage: Stage-0
     Fetch Operator
@@ -1718,7 +1732,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col0 (type: string)
                     Statistics: Num rows: 14 Data size: 2805 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col1 (type: bigint)
 
   Stage: Stage-0
     Fetch Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/ptf.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/ptf.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/ptf.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/ptf.q.out Thu Jun  5 18:28:07 2014
@@ -806,7 +806,7 @@ Manufacturer#1	Brand#15	1602.59	8749.73
 Manufacturer#2	Brand#22	3491.38	3491.38
 Manufacturer#2	Brand#23	2031.98	5523.360000000001
 Manufacturer#2	Brand#24	1698.66	7222.02
-Manufacturer#2	Brand#25	1701.6	5432.24
+Manufacturer#2	Brand#25	1701.6	5432.240000000001
 Manufacturer#3	Brand#31	1671.68	1671.68
 Manufacturer#3	Brand#32	3333.37	5005.05
 Manufacturer#3	Brand#34	1337.29	6342.34

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/script_pipe.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/script_pipe.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/script_pipe.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/script_pipe.q.out Thu Jun  5 18:28:07 2014
@@ -33,7 +33,9 @@ STAGE PLANS:
                         value expressions: _col0 (type: string), _col1 (type: string)
         Reducer 2 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), VALUE._col1 (type: string)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 1 Data size: 200 Basic stats: COMPLETE Column stats: NONE
                 Limit
                   Number of rows: 1

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/scriptfile1.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/scriptfile1.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/scriptfile1.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/scriptfile1.q.out Thu Jun  5 18:28:07 2014
@@ -37,8 +37,6 @@ POSTHOOK: query: SELECT dest1.* FROM des
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@dest1
 #### A masked pattern was here ####
-POSTHOOK: Lineage: dest1.key SCRIPT [(src)src.FieldSchema(name:key, type:string, comment:default), (src)src.FieldSchema(name:value, type:string, comment:default), ]
-POSTHOOK: Lineage: dest1.value SCRIPT [(src)src.FieldSchema(name:key, type:string, comment:default), (src)src.FieldSchema(name:value, type:string, comment:default), ]
 10	val_10
 100	val_100
 100	val_100

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/subquery_exists.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/subquery_exists.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/subquery_exists.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/subquery_exists.q.out Thu Jun  5 18:28:07 2014
@@ -39,7 +39,6 @@ STAGE PLANS:
                     sort order: ++
                     Map-reduce partition columns: value (type: string), key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
         Map 3 
             Map Operator Tree:
                 TableScan
@@ -68,7 +67,7 @@ STAGE PLANS:
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
+                  0 {KEY.reducesinkkey1} {KEY.reducesinkkey0}
                   1 
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/subquery_in.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/subquery_in.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/subquery_in.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/subquery_in.q.out Thu Jun  5 18:28:07 2014
@@ -151,14 +151,14 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Reducer 2 
             Reduce Operator Tree:
               Join Operator
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
+                  0 {KEY.reducesinkkey0} {VALUE._col0}
                   1 
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
@@ -247,7 +247,6 @@ STAGE PLANS:
                     sort order: ++
                     Map-reduce partition columns: key (type: string), value (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
         Map 3 
             Map Operator Tree:
                 TableScan
@@ -276,7 +275,7 @@ STAGE PLANS:
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
+                  0 {KEY.reducesinkkey0} {KEY.reducesinkkey1}
                   1 
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
@@ -524,7 +523,7 @@ STAGE PLANS:
                     sort order: ++
                     Map-reduce partition columns: p_size (type: int), p_mfgr (type: string)
                     Statistics: Num rows: 15 Data size: 3173 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: p_name (type: string), p_mfgr (type: string), p_size (type: int)
+                    value expressions: p_name (type: string)
         Map 3 
             Map Operator Tree:
                 TableScan
@@ -542,7 +541,7 @@ STAGE PLANS:
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col1} {VALUE._col2} {VALUE._col5}
+                  0 {VALUE._col1} {KEY.reducesinkkey1} {KEY.reducesinkkey0}
                   1 
                 outputColumnNames: _col1, _col2, _col5
                 Statistics: Num rows: 16 Data size: 3490 Basic stats: COMPLETE Column stats: NONE
@@ -680,7 +679,6 @@ STAGE PLANS:
                     sort order: ++
                     Map-reduce partition columns: key (type: string), value (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
         Map 3 
             Map Operator Tree:
                 TableScan
@@ -709,7 +707,7 @@ STAGE PLANS:
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
+                  0 {KEY.reducesinkkey0} {KEY.reducesinkkey1}
                   1 
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
@@ -896,8 +894,8 @@ STAGE PLANS:
                 condition map:
                      Inner Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col0}
-                  1 {VALUE._col0} {VALUE._col2}
+                  0 {KEY.reducesinkkey0}
+                  1 {VALUE._col0} {VALUE._col1}
                 outputColumnNames: _col0, _col1, _col3
                 Statistics: Num rows: 1663 Data size: 6653 Basic stats: COMPLETE Column stats: NONE
                 Reduce Output Operator
@@ -905,19 +903,19 @@ STAGE PLANS:
                   sort order: +
                   Map-reduce partition columns: _col1 (type: int)
                   Statistics: Num rows: 1663 Data size: 6653 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col3 (type: int), _col0 (type: int)
+                  value expressions: _col0 (type: int), _col3 (type: int)
         Reducer 3 
             Reduce Operator Tree:
               Join Operator
                 condition map:
                      Left Semi Join 0 to 1
                 condition expressions:
-                  0 {VALUE._col2} {VALUE._col18}
+                  0 {VALUE._col0} {VALUE._col2}
                   1 
-                outputColumnNames: _col2, _col18
+                outputColumnNames: _col0, _col3
                 Statistics: Num rows: 1829 Data size: 7318 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col18 (type: int), _col2 (type: int)
+                  expressions: _col0 (type: int), _col3 (type: int)
                   outputColumnNames: _col0, _col1
                   Statistics: Num rows: 1829 Data size: 7318 Basic stats: COMPLETE Column stats: NONE
                   File Output Operator
@@ -943,7 +941,6 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col0 (type: int)
                     Statistics: Num rows: 1512 Data size: 6049 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: int)
 
   Stage: Stage-0
     Fetch Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/tez_dml.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/tez_dml.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/tez_dml.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/tez_dml.q.out Thu Jun  5 18:28:07 2014
@@ -56,10 +56,12 @@ STAGE PLANS:
                     key expressions: _col1 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 29 Data size: 2906 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: bigint)
+                    value expressions: _col0 (type: string)
         Reducer 3 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: bigint)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 29 Data size: 2906 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/tez_join_tests.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/tez_join_tests.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/tez_join_tests.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/tez_join_tests.q.out Thu Jun  5 18:28:07 2014
@@ -28,7 +28,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Map 6 
             Map Operator Tree:
                 TableScan
@@ -39,7 +39,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: value (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: key (type: string)
         Map 7 
             Map Operator Tree:
                 TableScan
@@ -57,7 +57,7 @@ STAGE PLANS:
                      Left Outer Join0 to 1
                 condition expressions:
                   0 
-                  1 {VALUE._col0} {VALUE._col1}
+                  1 {KEY.reducesinkkey0} {VALUE._col0}
                 outputColumnNames: _col4, _col5
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -68,25 +68,27 @@ STAGE PLANS:
                     key expressions: _col0 (type: string)
                     sort order: +
                     Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: string)
+                    value expressions: _col1 (type: string)
         Reducer 3 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 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: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: string)
+                  value expressions: _col0 (type: string)
         Reducer 4 
             Reduce Operator Tree:
               Join Operator
                 condition map:
                      Right Outer Join0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
-                  1 {VALUE._col0} {VALUE._col1}
+                  0 {VALUE._col0} {KEY.reducesinkkey0}
+                  1 {VALUE._col0} {KEY.reducesinkkey0}
                 outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -97,10 +99,12 @@ STAGE PLANS:
                     key expressions: _col0 (type: string)
                     sort order: +
                     Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
+                    value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string)
         Reducer 5 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string)
+                outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/tez_joins_explain.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/tez_joins_explain.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/tez_joins_explain.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/tez_joins_explain.q.out Thu Jun  5 18:28:07 2014
@@ -28,7 +28,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Map 6 
             Map Operator Tree:
                 TableScan
@@ -39,7 +39,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: value (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: key (type: string)
         Map 7 
             Map Operator Tree:
                 TableScan
@@ -57,7 +57,7 @@ STAGE PLANS:
                      Left Outer Join0 to 1
                 condition expressions:
                   0 
-                  1 {VALUE._col0} {VALUE._col1}
+                  1 {KEY.reducesinkkey0} {VALUE._col0}
                 outputColumnNames: _col4, _col5
                 Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -68,25 +68,27 @@ STAGE PLANS:
                     key expressions: _col0 (type: string)
                     sort order: +
                     Statistics: Num rows: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: string)
+                    value expressions: _col1 (type: string)
         Reducer 3 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 31 Data size: 6393 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: 31 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: string)
+                  value expressions: _col0 (type: string)
         Reducer 4 
             Reduce Operator Tree:
               Join Operator
                 condition map:
                      Right Outer Join0 to 1
                 condition expressions:
-                  0 {VALUE._col0} {VALUE._col1}
-                  1 {VALUE._col0} {VALUE._col1}
+                  0 {VALUE._col0} {KEY.reducesinkkey0}
+                  1 {VALUE._col0} {KEY.reducesinkkey0}
                 outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
                 Select Operator
@@ -97,10 +99,12 @@ STAGE PLANS:
                     key expressions: _col0 (type: string)
                     sort order: +
                     Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
+                    value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string)
         Reducer 5 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string)
+                outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 34 Data size: 7032 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/tez_schema_evolution.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/tez_schema_evolution.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/tez_schema_evolution.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/tez_schema_evolution.q.out Thu Jun  5 18:28:07 2014
@@ -99,16 +99,6 @@ POSTHOOK: Input: default@test
 POSTHOOK: Input: default@test@p=1
 POSTHOOK: Input: default@test@p=2
 #### A masked pattern was here ####
-484	val_484	2
-98	val_98	2
-278	val_278	2
-255	val_255	2
-409	val_409	2
-165	val_165	2
-27	val_27	2
-311	val_311	2
-86	val_86	2
-238	val_238	2
 484	val_484	1
 98	val_98	1
 278	val_278	1
@@ -119,3 +109,13 @@ POSTHOOK: Input: default@test@p=2
 311	val_311	1
 86	val_86	1
 238	val_238	1
+484	val_484	2
+98	val_98	2
+278	val_278	2
+255	val_255	2
+409	val_409	2
+165	val_165	2
+27	val_27	2
+311	val_311	2
+86	val_86	2
+238	val_238	2

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/tez_union.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/tez_union.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/tez_union.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/tez_union.q.out Thu Jun  5 18:28:07 2014
@@ -309,13 +309,11 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
         Map 2 
             Map Operator Tree:
                 TableScan
@@ -466,19 +464,16 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
         Map 10 
             Map Operator Tree:
                 TableScan
@@ -525,7 +520,7 @@ STAGE PLANS:
                           Reduce Output Operator
                             key expressions: _col2 (type: string)
                             sort order: +
-                            value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
+                            value expressions: _col0 (type: string), _col1 (type: string)
         Map 5 
             Map Operator Tree:
                 TableScan
@@ -582,7 +577,7 @@ STAGE PLANS:
                           Reduce Output Operator
                             key expressions: _col2 (type: string)
                             sort order: +
-                            value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
+                            value expressions: _col0 (type: string), _col1 (type: string)
         Map 8 
             Map Operator Tree:
                 TableScan
@@ -593,19 +588,16 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string)
         Map 9 
             Map Operator Tree:
                 TableScan
@@ -642,10 +634,12 @@ STAGE PLANS:
                           Reduce Output Operator
                             key expressions: _col2 (type: string)
                             sort order: +
-                            value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
+                            value expressions: _col0 (type: string), _col1 (type: string)
         Reducer 4 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: VALUE._col0 (type: string), VALUE._col1 (type: string), KEY.reducesinkkey0 (type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 415 Data size: 42193 Basic stats: COMPLETE Column stats: NONE
                 File Output Operator
                   compressed: false
@@ -1016,13 +1010,13 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
                   Reduce Output Operator
                     key expressions: key (type: string)
                     sort order: +
                     Map-reduce partition columns: key (type: string)
                     Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: key (type: string), value (type: string)
+                    value expressions: value (type: string)
         Map 4 
             Map Operator Tree:
                 TableScan
@@ -1092,7 +1086,6 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Map-reduce partition columns: _col0 (type: string)
-                      value expressions: _col0 (type: string)
         Map 3 
             Map Operator Tree:
                 TableScan
@@ -1131,7 +1124,6 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Map-reduce partition columns: _col0 (type: string)
-                      value expressions: _col0 (type: string)
         Union 2 
             Vertex: Union 2
 

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr1.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr1.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr1.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr1.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr2.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr2.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr2.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/tez/transform_ppr2.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/tez/union3.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/tez/union3.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/tez/union3.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/tez/union3.q.out Thu Jun  5 18:28:07 2014
@@ -104,7 +104,7 @@ STAGE PLANS:
                         Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
         Reducer 10 
             Reduce Operator Tree:
-              Extract
+              Select Operator
                 Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
                 Limit
                   Number of rows: 1
@@ -118,10 +118,11 @@ STAGE PLANS:
                       sort order: +
                       Map-reduce partition columns: _col0 (type: int)
                       Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
-                      value expressions: _col0 (type: int)
         Reducer 11 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: int)
+                outputColumnNames: _col0
                 Select Operator
                   expressions: _col0 (type: int)
                   outputColumnNames: _col0
@@ -133,7 +134,7 @@ STAGE PLANS:
                         serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
         Reducer 2 
             Reduce Operator Tree:
-              Extract
+              Select Operator
                 Limit
                   Number of rows: 1
                   Select Operator
@@ -150,7 +151,7 @@ STAGE PLANS:
                             serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
         Reducer 5 
             Reduce Operator Tree:
-              Extract
+              Select Operator
                 Limit
                   Number of rows: 1
                   Select Operator
@@ -167,7 +168,7 @@ STAGE PLANS:
                             serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
         Reducer 7 
             Reduce Operator Tree:
-              Extract
+              Select Operator
                 Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
                 Limit
                   Number of rows: 1
@@ -181,10 +182,11 @@ STAGE PLANS:
                       sort order: +
                       Map-reduce partition columns: _col0 (type: int)
                       Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
-                      value expressions: _col0 (type: int)
         Reducer 8 
             Reduce Operator Tree:
-              Extract
+              Select Operator
+                expressions: KEY.reducesinkkey0 (type: int)
+                outputColumnNames: _col0
                 Select Operator
                   expressions: _col0 (type: int)
                   outputColumnNames: _col0

Modified: hive/trunk/ql/src/test/results/clientpositive/transform_ppr1.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/transform_ppr1.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/transform_ppr1.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/transform_ppr1.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/transform_ppr2.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/transform_ppr2.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/transform_ppr2.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/transform_ppr2.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/type_widening.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/type_widening.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/type_widening.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/type_widening.q.out Thu Jun  5 18:28:07 2014
@@ -62,7 +62,6 @@ STAGE PLANS:
                     key expressions: _col0 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 0 Data size: 11624 Basic stats: PARTIAL Column stats: COMPLETE
-                    value expressions: _col0 (type: bigint)
           TableScan
             alias: src
             Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
@@ -80,9 +79,10 @@ STAGE PLANS:
                     key expressions: _col0 (type: bigint)
                     sort order: +
                     Statistics: Num rows: 0 Data size: 11624 Basic stats: PARTIAL Column stats: COMPLETE
-                    value expressions: _col0 (type: bigint)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: bigint)
+          outputColumnNames: _col0
           Statistics: Num rows: 0 Data size: 11624 Basic stats: PARTIAL Column stats: COMPLETE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/udf_case_column_pruning.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/udf_case_column_pruning.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/udf_case_column_pruning.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/udf_case_column_pruning.q.out Thu Jun  5 18:28:07 2014
@@ -43,13 +43,12 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
             1 
           outputColumnNames: _col0
           Statistics: Num rows: 63 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
@@ -72,9 +71,10 @@ STAGE PLANS:
               key expressions: _col0 (type: int)
               sort order: +
               Statistics: Num rows: 63 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
-              value expressions: _col0 (type: int)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: int)
+          outputColumnNames: _col0
           Statistics: Num rows: 63 Data size: 6393 Basic stats: COMPLETE Column stats: NONE
           Limit
             Number of rows: 10

Modified: hive/trunk/ql/src/test/results/clientpositive/udtf_explode.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/udtf_explode.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/udtf_explode.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/udtf_explode.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/udtf_json_tuple.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/udtf_json_tuple.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/udtf_json_tuple.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/udtf_json_tuple.q.out Thu Jun  5 18:28:07 2014
@@ -75,7 +75,7 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
+                      value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
               Select Operator
                 expressions: jstring (type: string), 'f1' (type: string), 'f2' (type: string), 'f3' (type: string), 'f4' (type: string), 'f5' (type: string)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
@@ -94,9 +94,11 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
+                        value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -154,9 +156,11 @@ STAGE PLANS:
                   key expressions: c0 (type: string), c1 (type: string), c2 (type: string)
                   sort order: +++
                   Statistics: Num rows: 6 Data size: 236 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: c0 (type: string), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string)
+                  value expressions: c3 (type: string), c4 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 (type: string), KEY.reducesinkkey2 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4
           Statistics: Num rows: 6 Data size: 236 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -220,7 +224,7 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
+                      value expressions: _col1 (type: string), _col2 (type: string)
               Select Operator
                 expressions: jstring (type: string), 'f1' (type: string), 'f2' (type: string), 'f3' (type: string), 'f4' (type: string), 'f5' (type: string)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
@@ -239,9 +243,11 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
+                        value expressions: _col1 (type: string), _col2 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string)
+          outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 12 Data size: 472 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -367,9 +373,11 @@ STAGE PLANS:
               key expressions: _col0 (type: string)
               sort order: +
               Statistics: Num rows: 4 Data size: 157 Basic stats: COMPLETE Column stats: NONE
-              value expressions: _col0 (type: string), _col1 (type: bigint)
+              value expressions: _col1 (type: bigint)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: bigint)
+          outputColumnNames: _col0, _col1
           Statistics: Num rows: 4 Data size: 157 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/udtf_parse_url_tuple.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/udtf_parse_url_tuple.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/udtf_parse_url_tuple.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/udtf_parse_url_tuple.q.out Thu Jun  5 18:28:07 2014
@@ -92,7 +92,7 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string)
+                      value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string)
               Select Operator
                 expressions: fullurl (type: string), 'HOST' (type: string), 'PATH' (type: string), 'QUERY' (type: string), 'REF' (type: string), 'PROTOCOL' (type: string), 'FILE' (type: string), 'AUTHORITY' (type: string), 'USERINFO' (type: string), 'QUERY:k1' (type: string)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9
@@ -111,9 +111,11 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string)
+                        value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string), _col7 (type: string), _col8 (type: string), _col9 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string), VALUE._col6 (type: string), VALUE._col7 (type: string), VALUE._col8 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9
           Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -171,9 +173,11 @@ STAGE PLANS:
                   key expressions: c0 (type: string), c1 (type: string), c2 (type: string)
                   sort order: +++
                   Statistics: Num rows: 6 Data size: 213 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: c0 (type: string), c1 (type: string), c2 (type: string), c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string)
+                  value expressions: c3 (type: string), c4 (type: string), c5 (type: string), c6 (type: string), c7 (type: string), c8 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 (type: string), KEY.reducesinkkey2 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8
           Statistics: Num rows: 6 Data size: 213 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -239,7 +243,7 @@ STAGE PLANS:
                       key expressions: _col0 (type: string)
                       sort order: +
                       Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
+                      value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
               Select Operator
                 expressions: fullurl (type: string), 'HOST' (type: string), 'PATH' (type: string), 'QUERY' (type: string), 'REF' (type: string), 'PROTOCOL' (type: string), 'FILE' (type: string), 'AUTHORITY' (type: string), 'USERINFO' (type: string), 'QUERY:k1' (type: string), 'host' (type: string), 'query' (type: string), 'QUERY:nonExistCol' (type: string)
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12
@@ -258,9 +262,11 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
+                        value expressions: _col1 (type: string), _col2 (type: string), _col3 (type: string), _col4 (type: string), _col5 (type: string), _col6 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string), VALUE._col4 (type: string), VALUE._col5 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6
           Statistics: Num rows: 12 Data size: 426 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/union20.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union20.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union20.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union20.q.out Thu Jun  5 18:28:07 2014
@@ -76,7 +76,7 @@ STAGE PLANS:
                 sort order: +
                 Map-reduce partition columns: _col0 (type: string)
                 Statistics: Num rows: 10 Data size: 2075 Basic stats: COMPLETE Column stats: PARTIAL
-                value expressions: _col0 (type: string), _col1 (type: string)
+                value expressions: _col1 (type: string)
           TableScan
             alias: s4
             Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
@@ -94,7 +94,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col0 (type: string)
                     Statistics: Num rows: 10 Data size: 2075 Basic stats: COMPLETE Column stats: PARTIAL
-                    value expressions: _col0 (type: string), _col1 (type: string)
+                    value expressions: _col1 (type: string)
           TableScan
             alias: s2
             Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
@@ -112,7 +112,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col0 (type: string)
                     Statistics: Num rows: 10 Data size: 2075 Basic stats: COMPLETE Column stats: PARTIAL
-                    value expressions: _col0 (type: string), _col1 (type: string)
+                    value expressions: _col1 (type: string)
           TableScan
             Union
               Statistics: Num rows: 10 Data size: 2075 Basic stats: COMPLETE Column stats: PARTIAL
@@ -121,23 +121,23 @@ STAGE PLANS:
                 sort order: +
                 Map-reduce partition columns: _col0 (type: string)
                 Statistics: Num rows: 10 Data size: 2075 Basic stats: COMPLETE Column stats: PARTIAL
-                value expressions: _col0 (type: string), _col1 (type: string)
+                value expressions: _col1 (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0} {VALUE._col1}
-            1 {VALUE._col0} {VALUE._col1}
+            0 {KEY.reducesinkkey0} {VALUE._col0}
+            1 {KEY.reducesinkkey0} {VALUE._col0}
           outputColumnNames: _col0, _col1, _col2, _col3
-          Statistics: Num rows: 50 Data size: 27200 Basic stats: COMPLETE Column stats: PARTIAL
+          Statistics: Num rows: 50 Data size: 0 Basic stats: PARTIAL Column stats: PARTIAL
           Select Operator
             expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
             outputColumnNames: _col0, _col1, _col2, _col3
-            Statistics: Num rows: 50 Data size: 27200 Basic stats: COMPLETE Column stats: PARTIAL
+            Statistics: Num rows: 50 Data size: 0 Basic stats: PARTIAL Column stats: PARTIAL
             File Output Operator
               compressed: false
-              Statistics: Num rows: 50 Data size: 27200 Basic stats: COMPLETE Column stats: PARTIAL
+              Statistics: Num rows: 50 Data size: 0 Basic stats: PARTIAL Column stats: PARTIAL
               table:
                   input format: org.apache.hadoop.mapred.TextInputFormat
                   output format: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat

Modified: hive/trunk/ql/src/test/results/clientpositive/union22.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union22.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/union22.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/union22.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/union23.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union23.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union23.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union23.q.out Thu Jun  5 18:28:07 2014
@@ -41,7 +41,6 @@ STAGE PLANS:
                     key expressions: _col0 (type: string), _col1 (type: string)
                     sort order: ++
                     Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: string)
           TableScan
             alias: src
             Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
@@ -66,9 +65,10 @@ STAGE PLANS:
                       key expressions: _col0 (type: string), _col1 (type: string)
                       sort order: ++
                       Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
-                      value expressions: _col0 (type: string), _col1 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 (type: string)
+          outputColumnNames: _col0, _col1
           Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/union24.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union24.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/union24.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/union24.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/union26.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union26.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union26.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union26.q.out Thu Jun  5 18:28:07 2014
@@ -71,13 +71,13 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string), value (type: string)
+              value expressions: value (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0} {VALUE._col1}
+            0 {KEY.reducesinkkey0} {VALUE._col0}
             1 
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 63 Data size: 6393 Basic stats: COMPLETE Column stats: NONE

Modified: hive/trunk/ql/src/test/results/clientpositive/union3.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union3.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union3.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union3.q.out Thu Jun  5 18:28:07 2014
@@ -60,7 +60,7 @@ STAGE PLANS:
                   sort order: 
                   Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
       Reduce Operator Tree:
-        Extract
+        Select Operator
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           Limit
             Number of rows: 1
@@ -151,7 +151,7 @@ STAGE PLANS:
                   sort order: 
                   Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
       Reduce Operator Tree:
-        Extract
+        Select Operator
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           Limit
             Number of rows: 1
@@ -182,7 +182,7 @@ STAGE PLANS:
                   sort order: 
                   Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
       Reduce Operator Tree:
-        Extract
+        Select Operator
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           Limit
             Number of rows: 1
@@ -207,9 +207,10 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: _col0 (type: int)
               Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
-              value expressions: _col0 (type: int)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: int)
+          outputColumnNames: _col0
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           File Output Operator
             compressed: false
@@ -233,7 +234,7 @@ STAGE PLANS:
                   sort order: 
                   Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
       Reduce Operator Tree:
-        Extract
+        Select Operator
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           Limit
             Number of rows: 1
@@ -258,9 +259,10 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: _col0 (type: int)
               Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
-              value expressions: _col0 (type: int)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: int)
+          outputColumnNames: _col0
           Statistics: Num rows: 0 Data size: 5812 Basic stats: PARTIAL Column stats: COMPLETE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/union32.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union32.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union32.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union32.q.out Thu Jun  5 18:28:07 2014
@@ -63,7 +63,6 @@ STAGE PLANS:
                     key expressions: _col0 (type: double)
                     sort order: +
                     Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: double)
           TableScan
             alias: t2
             Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
@@ -81,9 +80,10 @@ STAGE PLANS:
                     key expressions: _col0 (type: double)
                     sort order: +
                     Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: double)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: double)
+          outputColumnNames: _col0
           Statistics: Num rows: 20 Data size: 140 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -174,13 +174,12 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
             1 
           outputColumnNames: _col0
           Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
@@ -318,7 +317,6 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
           TableScan
             alias: b
             Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
@@ -332,7 +330,7 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
             1 
           outputColumnNames: _col0
           Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
@@ -470,7 +468,6 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
           TableScan
             alias: a
             Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
@@ -479,14 +476,13 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
-            1 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
+            1 {KEY.reducesinkkey0}
           outputColumnNames: _col0, _col4
           Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
           Select Operator
@@ -623,7 +619,6 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
           TableScan
             alias: b
             Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
@@ -632,14 +627,13 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 10 Data size: 70 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
-            1 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
+            1 {KEY.reducesinkkey0}
           outputColumnNames: _col0, _col4
           Statistics: Num rows: 11 Data size: 77 Basic stats: COMPLETE Column stats: NONE
           Select Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/union34.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union34.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union34.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union34.q.out Thu Jun  5 18:28:07 2014
@@ -129,7 +129,7 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string)
+                        value expressions: _col1 (type: string)
           TableScan
             alias: src10_4
             Statistics: Num rows: 10 Data size: 104 Basic stats: COMPLETE Column stats: NONE
@@ -153,7 +153,7 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string)
+                        value expressions: _col1 (type: string)
           TableScan
             alias: src10_2
             Statistics: Num rows: 10 Data size: 104 Basic stats: COMPLETE Column stats: NONE
@@ -186,11 +186,13 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string)
+                        value expressions: _col1 (type: string)
       Local Work:
         Map Reduce Local Work
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string)
+          outputColumnNames: _col0, _col1
           Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false
@@ -313,13 +315,13 @@ STAGE PLANS:
                 sort order: +
                 Map-reduce partition columns: _col0 (type: string)
                 Statistics: Num rows: 10 Data size: 104 Basic stats: COMPLETE Column stats: NONE
-                value expressions: _col0 (type: string), _col1 (type: string)
+                value expressions: _col1 (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0} {VALUE._col1}
+            0 {KEY.reducesinkkey0} {VALUE._col0}
             1 
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 11 Data size: 114 Basic stats: COMPLETE Column stats: NONE
@@ -348,7 +350,7 @@ STAGE PLANS:
                   key expressions: _col0 (type: string)
                   sort order: +
                   Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                  value expressions: _col0 (type: string), _col1 (type: string)
+                  value expressions: _col1 (type: string)
           TableScan
             alias: src10_3
             Statistics: Num rows: 10 Data size: 104 Basic stats: COMPLETE Column stats: NONE
@@ -372,7 +374,7 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string)
+                        value expressions: _col1 (type: string)
           TableScan
             alias: src10_4
             Statistics: Num rows: 10 Data size: 104 Basic stats: COMPLETE Column stats: NONE
@@ -396,9 +398,11 @@ STAGE PLANS:
                         key expressions: _col0 (type: string)
                         sort order: +
                         Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
-                        value expressions: _col0 (type: string), _col1 (type: string)
+                        value expressions: _col1 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: string), VALUE._col0 (type: string)
+          outputColumnNames: _col0, _col1
           Statistics: Num rows: 31 Data size: 322 Basic stats: COMPLETE Column stats: NONE
           File Output Operator
             compressed: false

Modified: hive/trunk/ql/src/test/results/clientpositive/union_lateralview.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union_lateralview.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union_lateralview.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union_lateralview.q.out Thu Jun  5 18:28:07 2014
@@ -60,7 +60,6 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 58 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
-              value expressions: key (type: string)
           TableScan
             alias: src
             Statistics: Num rows: 29 Data size: 5812 Basic stats: COMPLETE Column stats: NONE
@@ -162,8 +161,8 @@ STAGE PLANS:
           condition map:
                Left Outer Join0 to 1
           condition expressions:
-            0 {VALUE._col0} {VALUE._col2}
-            1 {VALUE._col0}
+            0 {VALUE._col0} {VALUE._col1}
+            1 {KEY.reducesinkkey0}
           outputColumnNames: _col0, _col2, _col3
           Statistics: Num rows: 127 Data size: 25572 Basic stats: COMPLETE Column stats: NONE
           Select Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/union_ppr.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union_ppr.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
Files hive/trunk/ql/src/test/results/clientpositive/union_ppr.q.out (original) and hive/trunk/ql/src/test/results/clientpositive/union_ppr.q.out Thu Jun  5 18:28:07 2014 differ

Modified: hive/trunk/ql/src/test/results/clientpositive/union_remove_23.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union_remove_23.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union_remove_23.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union_remove_23.q.out Thu Jun  5 18:28:07 2014
@@ -140,13 +140,12 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: key (type: string)
               Statistics: Num rows: 0 Data size: 30 Basic stats: PARTIAL Column stats: NONE
-              value expressions: key (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           condition expressions:
-            0 {VALUE._col0}
+            0 {KEY.reducesinkkey0}
             1 
           outputColumnNames: _col0
           Statistics: Num rows: 0 Data size: 33 Basic stats: PARTIAL Column stats: NONE

Modified: hive/trunk/ql/src/test/results/clientpositive/union_remove_25.q.out
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/union_remove_25.q.out?rev=1600719&r1=1600718&r2=1600719&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union_remove_25.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union_remove_25.q.out Thu Jun  5 18:28:07 2014
@@ -299,7 +299,9 @@ STAGE PLANS:
                   Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string)
+          outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
           Limit
             Number of rows: 500
@@ -347,7 +349,9 @@ STAGE PLANS:
                   Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string)
+          outputColumnNames: _col0, _col1, _col2
           Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
           Limit
             Number of rows: 500
@@ -479,7 +483,9 @@ STAGE PLANS:
                   Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3
           Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
           Limit
             Number of rows: 1000
@@ -528,7 +534,9 @@ STAGE PLANS:
                   Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string), _col2 (type: string), _col3 (type: string)
       Reduce Operator Tree:
-        Extract
+        Select Operator
+          expressions: VALUE._col0 (type: string), VALUE._col1 (type: string), VALUE._col2 (type: string), VALUE._col3 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3
           Statistics: Num rows: 58 Data size: 11624 Basic stats: COMPLETE Column stats: NONE
           Limit
             Number of rows: 1000