Modified: 
hive/trunk/ql/src/test/results/clientpositive/subquery_unqualcolumnrefs.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/subquery_unqualcolumnrefs.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- 
hive/trunk/ql/src/test/results/clientpositive/subquery_unqualcolumnrefs.q.out 
(original)
+++ 
hive/trunk/ql/src/test/results/clientpositive/subquery_unqualcolumnrefs.q.out 
Tue Mar 31 01:48:43 2015
@@ -207,46 +207,42 @@ STAGE PLANS:
           TableScan
             alias: part2
             Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
-            Select Operator
-              expressions: p2_mfgr (type: string), p2_size (type: int)
-              outputColumnNames: _col0, _col1
+            Reduce Output Operator
+              key expressions: p2_mfgr (type: string), p2_size (type: int)
+              sort order: ++
+              Map-reduce partition columns: p2_mfgr (type: string)
               Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
-              Reduce Output Operator
-                key expressions: _col0 (type: string), _col1 (type: int)
-                sort order: ++
-                Map-reduce partition columns: _col0 (type: string)
-                Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
       Reduce Operator Tree:
         Select Operator
           expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 
(type: int)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col2, _col5
           Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column stats: 
NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: int
+                  output shape: _col2: string, _col5: int
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col1
-                  partition by: _col0
+                  order by: _col5
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col1
+                        arguments: _col5
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
                         isPivotResult: true
             Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
             Filter Operator
-              predicate: ((_wcol0 <= 2) and _col0 is not null) (type: boolean)
+              predicate: ((_wcol0 <= 2) and _col2 is not null) (type: boolean)
               Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
               Select Operator
-                expressions: _col0 (type: string), _col1 (type: int)
+                expressions: _col2 (type: string), _col5 (type: int)
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 0 Data size: 0 Basic stats: NONE Column 
stats: NONE
                 Group By Operator
@@ -379,46 +375,42 @@ STAGE PLANS:
           TableScan
             alias: b
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: p_mfgr (type: string), p_size (type: int)
-              outputColumnNames: _col0, _col1
+            Reduce Output Operator
+              key expressions: p_mfgr (type: string), p_size (type: int)
+              sort order: ++
+              Map-reduce partition columns: p_mfgr (type: string)
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col0 (type: string), _col1 (type: int)
-                sort order: ++
-                Map-reduce partition columns: _col0 (type: string)
-                Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
       Reduce Operator Tree:
         Select Operator
           expressions: KEY.reducesinkkey0 (type: string), KEY.reducesinkkey1 
(type: int)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col2, _col5
           Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: int
+                  output shape: _col2: string, _col5: int
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col1
-                  partition by: _col0
+                  order by: _col5
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col1
+                        arguments: _col5
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
                         isPivotResult: true
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((_wcol0 <= 2) and _col0 is not null) (type: boolean)
+              predicate: ((_wcol0 <= 2) and _col2 is not null) (type: boolean)
               Statistics: Num rows: 4 Data size: 484 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: _col0 (type: string), _col1 (type: int)
+                expressions: _col2 (type: string), _col5 (type: int)
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 4 Data size: 484 Basic stats: COMPLETE 
Column stats: NONE
                 Group By Operator
@@ -789,7 +781,7 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-Warning: Shuffle Join JOIN[32][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
+Warning: Shuffle Join JOIN[29][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
 PREHOOK: query: -- non agg, corr
 explain
 select p_mfgr, b.p_name, p_size 
@@ -825,44 +817,40 @@ STAGE PLANS:
           TableScan
             alias: b
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: p_name (type: string), p_mfgr (type: string), 
p_size (type: int)
-              outputColumnNames: _col0, _col1, _col2
+            Reduce Output Operator
+              key expressions: p_mfgr (type: string), p_size (type: int)
+              sort order: ++
+              Map-reduce partition columns: p_mfgr (type: string)
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col1 (type: string), _col2 (type: int)
-                sort order: ++
-                Map-reduce partition columns: _col1 (type: string)
-                Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-                value expressions: _col0 (type: string)
+              value expressions: p_name (type: string)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: 
string), KEY.reducesinkkey1 (type: int)
-          outputColumnNames: _col0, _col1, _col2
+          expressions: VALUE._col1 (type: string), KEY.reducesinkkey0 (type: 
string), KEY.reducesinkkey1 (type: int)
+          outputColumnNames: _col1, _col2, _col5
           Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: string, _col2: int
+                  output shape: _col1: string, _col2: string, _col5: int
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col2
-                  partition by: _col1
+                  order by: _col5
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col2
+                        arguments: _col5
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
                         isPivotResult: true
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
             Filter Operator
-              predicate: ((_wcol0 <= 2) and (_col0 is null or _col1 is null)) 
(type: boolean)
+              predicate: ((_wcol0 <= 2) and (_col1 is null or _col2 is null)) 
(type: boolean)
               Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
@@ -984,37 +972,33 @@ STAGE PLANS:
           TableScan
             alias: b
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: p_name (type: string), p_mfgr (type: string), 
p_size (type: int)
-              outputColumnNames: _col0, _col1, _col2
+            Reduce Output Operator
+              key expressions: p_mfgr (type: string), p_size (type: int)
+              sort order: ++
+              Map-reduce partition columns: p_mfgr (type: string)
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col1 (type: string), _col2 (type: int)
-                sort order: ++
-                Map-reduce partition columns: _col1 (type: string)
-                Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-                value expressions: _col0 (type: string)
+              value expressions: p_name (type: string)
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: string), KEY.reducesinkkey0 (type: 
string), KEY.reducesinkkey1 (type: int)
-          outputColumnNames: _col0, _col1, _col2
+          expressions: VALUE._col1 (type: string), KEY.reducesinkkey0 (type: 
string), KEY.reducesinkkey1 (type: int)
+          outputColumnNames: _col1, _col2, _col5
           Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: string, _col2: int
+                  output shape: _col1: string, _col2: string, _col5: int
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col2
-                  partition by: _col1
+                  order by: _col5
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col2
+                        arguments: _col5
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
@@ -1024,7 +1008,7 @@ STAGE PLANS:
               predicate: (_wcol0 <= 2) (type: boolean)
               Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: _col0 (type: string), _col1 (type: string)
+                expressions: _col1 (type: string), _col2 (type: string)
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
                 File Output Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/subquery_views.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/subquery_views.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/subquery_views.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/subquery_views.q.out Tue Mar 
31 01:48:43 2015
@@ -69,8 +69,8 @@ POSTHOOK: type: CREATEVIEW
 POSTHOOK: Input: default@src
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@cv2
-Warning: Shuffle Join JOIN[21][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
-Warning: Shuffle Join JOIN[50][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Stage-6:MAPRED' is a cross product
+Warning: Shuffle Join JOIN[19][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
+Warning: Shuffle Join JOIN[46][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Stage-6:MAPRED' is a cross product
 PREHOOK: query: explain
 select * 
 from cv2 where cv2.key in (select key from cv2 c where c.key < '11')
@@ -378,8 +378,8 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-Warning: Shuffle Join JOIN[21][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
-Warning: Shuffle Join JOIN[50][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Stage-6:MAPRED' is a cross product
+Warning: Shuffle Join JOIN[19][tables = [$hdt$_0, $hdt$_1]] in Stage 
'Stage-1:MAPRED' is a cross product
+Warning: Shuffle Join JOIN[46][tables = [$hdt$_1, $hdt$_2]] in Stage 
'Stage-6:MAPRED' is a cross product
 PREHOOK: query: select * 
 from cv2 where cv2.key in (select key from cv2 c where c.key < '11')
 PREHOOK: type: QUERY

Modified: 
hive/trunk/ql/src/test/results/clientpositive/table_access_keys_stats.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/table_access_keys_stats.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/table_access_keys_stats.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/table_access_keys_stats.q.out 
Tue Mar 31 01:48:43 2015
@@ -22,7 +22,7 @@ SELECT key, count(1) FROM T1 GROUP BY ke
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
@@ -35,7 +35,7 @@ PREHOOK: query: SELECT key, val, count(1
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key,val
 
@@ -50,7 +50,7 @@ SELECT key, count(1) FROM (SELECT key, v
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
@@ -63,7 +63,7 @@ PREHOOK: query: SELECT k, count(1) FROM
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
@@ -77,7 +77,7 @@ SELECT 1, key, count(1) FROM T1 GROUP BY
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
@@ -90,7 +90,7 @@ PREHOOK: query: SELECT key, 1, val, coun
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key,val
 
@@ -104,7 +104,7 @@ PREHOOK: query: SELECT key, 1, val, 2, c
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key,val
 
@@ -130,7 +130,7 @@ group by key + key
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
@@ -148,11 +148,11 @@ SELECT key, count(1) as c FROM T1 GROUP
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_4
+Operator:GBY_3
 Table:default@t1
 Keys:key
 
-Operator:GBY_12
+Operator:GBY_10
 Table:default@t1
 Keys:key
 
@@ -218,7 +218,7 @@ group by key, constant, val
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_5
+Operator:GBY_3
 Table:default@t1
 Keys:key,val
 
@@ -242,7 +242,7 @@ GROUP BY key, constant3, val
 PREHOOK: type: QUERY
 PREHOOK: Input: default@t1
 #### A masked pattern was here ####
-Operator:GBY_5
+Operator:GBY_3
 Table:default@t1
 Keys:key,val
 

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=1670236&r1=1670235&r2=1670236&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 Tue Mar 
31 01:48:43 2015
@@ -293,15 +293,11 @@ STAGE PLANS:
                 TableScan
                   alias: part
                   Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: p_mfgr (type: string), p_size (type: int)
-                    outputColumnNames: _col0, _col1
+                  Reduce Output Operator
+                    key expressions: p_mfgr (type: string), p_size (type: int)
+                    sort order: ++
+                    Map-reduce partition columns: p_mfgr (type: string)
                     Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
-                    Reduce Output Operator
-                      key expressions: _col0 (type: string), _col1 (type: int)
-                      sort order: ++
-                      Map-reduce partition columns: _col0 (type: string)
-                      Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
         Reducer 2 
             Reduce Operator Tree:
               Merge Join Operator
@@ -323,24 +319,24 @@ STAGE PLANS:
             Reduce Operator Tree:
               Select Operator
                 expressions: KEY.reducesinkkey0 (type: string), 
KEY.reducesinkkey1 (type: int)
-                outputColumnNames: _col0, _col1
+                outputColumnNames: _col2, _col5
                 Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
                 PTF Operator
                   Function definitions:
                       Input definition
                         input alias: ptf_0
-                        output shape: _col0: string, _col1: int
+                        output shape: _col2: string, _col5: int
                         type: WINDOWING
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1
-                        partition by: _col0
+                        order by: _col5
+                        partition by: _col2
                         raw input shape:
                         window functions:
                             window function definition
                               alias: _wcol0
-                              arguments: _col1
+                              arguments: _col5
                               name: rank
                               window function: GenericUDAFRankEvaluator
                               window frame: PRECEDING(MAX)~FOLLOWING(MAX)
@@ -350,7 +346,7 @@ STAGE PLANS:
                     predicate: (_wcol0 <= 2) (type: boolean)
                     Statistics: Num rows: 8 Data size: 968 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: _col1 (type: int)
+                      expressions: _col5 (type: int)
                       outputColumnNames: _col0
                       Statistics: Num rows: 8 Data size: 968 Basic stats: 
COMPLETE Column stats: NONE
                       Group By Operator
@@ -465,15 +461,11 @@ STAGE PLANS:
                 TableScan
                   alias: b
                   Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
-                  Select Operator
-                    expressions: p_mfgr (type: string), p_size (type: int)
-                    outputColumnNames: _col0, _col1
+                  Reduce Output Operator
+                    key expressions: p_mfgr (type: string), p_size (type: int)
+                    sort order: ++
+                    Map-reduce partition columns: p_mfgr (type: string)
                     Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
-                    Reduce Output Operator
-                      key expressions: _col0 (type: string), _col1 (type: int)
-                      sort order: ++
-                      Map-reduce partition columns: _col0 (type: string)
-                      Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
         Reducer 2 
             Reduce Operator Tree:
               Merge Join Operator
@@ -499,34 +491,34 @@ STAGE PLANS:
             Reduce Operator Tree:
               Select Operator
                 expressions: KEY.reducesinkkey0 (type: string), 
KEY.reducesinkkey1 (type: int)
-                outputColumnNames: _col0, _col1
+                outputColumnNames: _col2, _col5
                 Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
                 PTF Operator
                   Function definitions:
                       Input definition
                         input alias: ptf_0
-                        output shape: _col0: string, _col1: int
+                        output shape: _col2: string, _col5: int
                         type: WINDOWING
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1
-                        partition by: _col0
+                        order by: _col5
+                        partition by: _col2
                         raw input shape:
                         window functions:
                             window function definition
                               alias: _wcol0
-                              arguments: _col1
+                              arguments: _col5
                               name: rank
                               window function: GenericUDAFRankEvaluator
                               window frame: PRECEDING(MAX)~FOLLOWING(MAX)
                               isPivotResult: true
                   Statistics: Num rows: 26 Data size: 3147 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((_wcol0 <= 2) and _col0 is not null) (type: 
boolean)
+                    predicate: ((_wcol0 <= 2) and _col2 is not null) (type: 
boolean)
                     Statistics: Num rows: 4 Data size: 484 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: _col0 (type: string), _col1 (type: int)
+                      expressions: _col2 (type: string), _col5 (type: int)
                       outputColumnNames: _col0, _col1
                       Statistics: Num rows: 4 Data size: 484 Basic stats: 
COMPLETE Column stats: NONE
                       Group By Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/udf_reflect2.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/udf_reflect2.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/udf_reflect2.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/udf_reflect2.q.out Tue Mar 31 
01:48:43 2015
@@ -320,17 +320,13 @@ STAGE PLANS:
           Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
           GatherStats: false
           Select Operator
-            expressions: UDFToInteger(key) (type: int), value (type: string)
-            outputColumnNames: _col0, _col1
+            expressions: UDFToInteger(key) (type: int), 
reflect2(UDFToInteger(key),'byteValue') (type: tinyint), 
reflect2(UDFToInteger(key),'shortValue') (type: smallint), 
reflect2(UDFToInteger(key),'intValue') (type: int), 
reflect2(UDFToInteger(key),'longValue') (type: bigint), 
reflect2(UDFToInteger(key),'floatValue') (type: float), 
reflect2(UDFToInteger(key),'doubleValue') (type: double), 
reflect2(UDFToInteger(key),'toString') (type: string), value (type: string), 
reflect2(value,'concat','_concat') (type: string), 
reflect2(value,'contains','86') (type: boolean), 
reflect2(value,'startsWith','v') (type: boolean), 
reflect2(value,'endsWith','6') (type: boolean), 
reflect2(value,'equals','val_86') (type: boolean), 
reflect2(value,'equalsIgnoreCase','VAL_86') (type: boolean), 
reflect2(value,'getBytes') (type: binary), reflect2(value,'indexOf','1') (type: 
int), reflect2(value,'lastIndexOf','1') (type: int), 
reflect2(value,'replace','val','VALUE') (type: string), 
reflect2(value,'substring',
 1) (type: string), reflect2(value,'substring',1,5) (type: string), 
reflect2(value,'toUpperCase') (type: string), reflect2(value,'trim') (type: 
string), 2013-02-15 19:41:20.0 (type: timestamp), 113 (type: int), 1 (type: 
int), 5 (type: int), 19 (type: int), 41 (type: int), 20 (type: int), 
1360986080000 (type: bigint)
+            outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20, _col21, _col22, _col23, _col24, _col25, 
_col26, _col27, _col28, _col29, _col30
             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: _col0 (type: int), reflect2(_col0,'byteValue') 
(type: tinyint), reflect2(_col0,'shortValue') (type: smallint), 
reflect2(_col0,'intValue') (type: int), reflect2(_col0,'longValue') (type: 
bigint), reflect2(_col0,'floatValue') (type: float), 
reflect2(_col0,'doubleValue') (type: double), reflect2(_col0,'toString') (type: 
string), _col1 (type: string), reflect2(_col1,'concat','_concat') (type: 
string), reflect2(_col1,'contains','86') (type: boolean), 
reflect2(_col1,'startsWith','v') (type: boolean), 
reflect2(_col1,'endsWith','6') (type: boolean), 
reflect2(_col1,'equals','val_86') (type: boolean), 
reflect2(_col1,'equalsIgnoreCase','VAL_86') (type: boolean), 
reflect2(_col1,'getBytes') (type: binary), reflect2(_col1,'indexOf','1') (type: 
int), reflect2(_col1,'lastIndexOf','1') (type: int), 
reflect2(_col1,'replace','val','VALUE') (type: string), 
reflect2(_col1,'substring',1) (type: string), reflect2(_col1,'substring',1,5) 
(type: string), reflect2(_col1,'toUpperCase
 ') (type: string), reflect2(_col1,'trim') (type: string), 2013-02-15 
19:41:20.0 (type: timestamp), 113 (type: int), 1 (type: int), 5 (type: int), 19 
(type: int), 41 (type: int), 20 (type: int), 1360986080000 (type: bigint)
-              outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20, _col21, _col22, _col23, _col24, _col25, 
_col26, _col27, _col28, _col29, _col30
-              Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
-              Limit
-                Number of rows: 5
-                Statistics: Num rows: 5 Data size: 50 Basic stats: COMPLETE 
Column stats: NONE
-                ListSink
+            Limit
+              Number of rows: 5
+              Statistics: Num rows: 5 Data size: 50 Basic stats: COMPLETE 
Column stats: NONE
+              ListSink
 
 PREHOOK: query: SELECT key,
        reflect2(key,   "byteValue"),

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=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/union24.q.out (original)
+++ hive/trunk/ql/src/test/results/clientpositive/union24.q.out Tue Mar 31 
01:48:43 2015
@@ -262,7 +262,7 @@ STAGE PLANS:
               name: default.src5
             name: default.src5
       Truncated Path -> Alias:
-        /src5 [null-subquery2:$hdt$_0-subquery2:$hdt$_0:$hdt$_0:src5]
+        /src5 [null-subquery2:$hdt$_0-subquery2:$hdt$_0:src5]
       Needs Tagging: false
       Reduce Operator Tree:
         Group By Operator

Modified: hive/trunk/ql/src/test/results/clientpositive/unionDistinct_1.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/unionDistinct_1.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/unionDistinct_1.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/unionDistinct_1.q.out Tue Mar 
31 01:48:43 2015
@@ -9089,7 +9089,7 @@ STAGE PLANS:
               name: default.src5
             name: default.src5
       Truncated Path -> Alias:
-        /src5 [$hdt$_0-subquery2:$hdt$_0-subquery2:$hdt$_0:$hdt$_0:src5]
+        /src5 [$hdt$_0-subquery2:$hdt$_0-subquery2:$hdt$_0:src5]
       Needs Tagging: false
       Reduce Operator Tree:
         Group By Operator

Modified: 
hive/trunk/ql/src/test/results/clientpositive/vector_decimal_round.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/vector_decimal_round.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/vector_decimal_round.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/vector_decimal_round.q.out 
Tue Mar 31 01:48:43 2015
@@ -102,17 +102,17 @@ STAGE PLANS:
             alias: decimal_tbl_txt
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
             Select Operator
-              expressions: dec (type: decimal(10,0)), round(dec, -1) (type: 
decimal(11,0))
-              outputColumnNames: _col0, _col1
+              expressions: dec (type: decimal(10,0))
+              outputColumnNames: _col0
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Reduce Output Operator
                 key expressions: round(_col0, (- 1)) (type: decimal(11,0))
                 sort order: +
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
-                value expressions: _col0 (type: decimal(10,0)), _col1 (type: 
decimal(11,0))
+                value expressions: _col0 (type: decimal(10,0))
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: decimal(10,0)), VALUE._col1 (type: 
decimal(11,0))
+          expressions: VALUE._col0 (type: decimal(10,0)), KEY.reducesinkkey0 
(type: decimal(11,0))
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator
@@ -238,17 +238,17 @@ STAGE PLANS:
             alias: decimal_tbl_rc
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
             Select Operator
-              expressions: dec (type: decimal(10,0)), round(dec, -1) (type: 
decimal(11,0))
-              outputColumnNames: _col0, _col1
+              expressions: dec (type: decimal(10,0))
+              outputColumnNames: _col0
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Reduce Output Operator
                 key expressions: round(_col0, (- 1)) (type: decimal(11,0))
                 sort order: +
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
-                value expressions: _col0 (type: decimal(10,0)), _col1 (type: 
decimal(11,0))
+                value expressions: _col0 (type: decimal(10,0))
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: decimal(10,0)), VALUE._col1 (type: 
decimal(11,0))
+          expressions: VALUE._col0 (type: decimal(10,0)), KEY.reducesinkkey0 
(type: decimal(11,0))
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator
@@ -375,18 +375,18 @@ STAGE PLANS:
             alias: decimal_tbl_orc
             Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE 
Column stats: NONE
             Select Operator
-              expressions: dec (type: decimal(10,0)), round(dec, -1) (type: 
decimal(11,0))
-              outputColumnNames: _col0, _col1
+              expressions: dec (type: decimal(10,0))
+              outputColumnNames: _col0
               Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE 
Column stats: NONE
               Reduce Output Operator
                 key expressions: round(_col0, (- 1)) (type: decimal(11,0))
                 sort order: +
                 Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE 
Column stats: NONE
-                value expressions: _col0 (type: decimal(10,0)), _col1 (type: 
decimal(11,0))
+                value expressions: _col0 (type: decimal(10,0))
       Execution mode: vectorized
       Reduce Operator Tree:
         Select Operator
-          expressions: VALUE._col0 (type: decimal(10,0)), VALUE._col1 (type: 
decimal(11,0))
+          expressions: VALUE._col0 (type: decimal(10,0)), KEY.reducesinkkey0 
(type: decimal(11,0))
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 1 Data size: 112 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator

Modified: 
hive/trunk/ql/src/test/results/clientpositive/vector_mapjoin_reduce.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/vector_mapjoin_reduce.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/vector_mapjoin_reduce.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/vector_mapjoin_reduce.q.out 
Tue Mar 31 01:48:43 2015
@@ -77,11 +77,11 @@ STAGE PLANS:
   Stage: Stage-9
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$INTNAME1 
+        $INTNAME1 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$INTNAME1 
+        $INTNAME1 
           TableScan
             HashTable Sink Operator
               keys:
@@ -114,11 +114,11 @@ STAGE PLANS:
   Stage: Stage-10
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$INTNAME 
+        $INTNAME 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$INTNAME 
+        $INTNAME 
           TableScan
             HashTable Sink Operator
               keys:
@@ -188,11 +188,11 @@ STAGE PLANS:
   Stage: Stage-11
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$hdt$_1:$hdt$_1:lineitem 
+        $hdt$_1:lineitem 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$hdt$_1:$hdt$_1:lineitem 
+        $hdt$_1:lineitem 
           TableScan
             alias: lineitem
             Statistics: Num rows: 100 Data size: 11999 Basic stats: COMPLETE 
Column stats: NONE
@@ -342,11 +342,11 @@ STAGE PLANS:
   Stage: Stage-9
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$INTNAME1 
+        $INTNAME1 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$INTNAME1 
+        $INTNAME1 
           TableScan
             HashTable Sink Operator
               keys:
@@ -379,11 +379,11 @@ STAGE PLANS:
   Stage: Stage-10
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$INTNAME 
+        $INTNAME 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$INTNAME 
+        $INTNAME 
           TableScan
             HashTable Sink Operator
               keys:
@@ -453,11 +453,11 @@ STAGE PLANS:
   Stage: Stage-11
     Map Reduce Local Work
       Alias -> Map Local Tables:
-        $hdt$_0:$hdt$_1:$hdt$_1:lineitem 
+        $hdt$_1:lineitem 
           Fetch Operator
             limit: -1
       Alias -> Map Local Operator Tree:
-        $hdt$_0:$hdt$_1:$hdt$_1:lineitem 
+        $hdt$_1:lineitem 
           TableScan
             alias: lineitem
             Statistics: Num rows: 100 Data size: 11999 Basic stats: COMPLETE 
Column stats: NONE

Modified: 
hive/trunk/ql/src/test/results/clientpositive/windowing_streaming.q.out
URL: 
http://svn.apache.org/viewvc/hive/trunk/ql/src/test/results/clientpositive/windowing_streaming.q.out?rev=1670236&r1=1670235&r2=1670236&view=diff
==============================================================================
--- hive/trunk/ql/src/test/results/clientpositive/windowing_streaming.q.out 
(original)
+++ hive/trunk/ql/src/test/results/clientpositive/windowing_streaming.q.out Tue 
Mar 31 01:48:43 2015
@@ -65,43 +65,39 @@ STAGE PLANS:
           TableScan
             alias: part
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: p_name (type: string), p_mfgr (type: string)
-              outputColumnNames: _col0, _col1
+            Reduce Output Operator
+              key expressions: p_mfgr (type: string), p_name (type: string)
+              sort order: ++
+              Map-reduce partition columns: p_mfgr (type: string)
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col1 (type: string), _col0 (type: string)
-                sort order: ++
-                Map-reduce partition columns: _col1 (type: string)
-                Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
       Reduce Operator Tree:
         Select Operator
           expressions: KEY.reducesinkkey1 (type: string), KEY.reducesinkkey0 
(type: string)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col1, _col2
           Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: string
+                  output shape: _col1: string, _col2: string
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col0
-                  partition by: _col1
+                  order by: _col1
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col0
+                        arguments: _col1
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
                         isPivotResult: true
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
             Select Operator
-              expressions: _col1 (type: string), _wcol0 (type: int)
+              expressions: _col2 (type: string), _wcol0 (type: int)
               outputColumnNames: _col0, _col1
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
               File Output Operator
@@ -139,37 +135,33 @@ STAGE PLANS:
           TableScan
             alias: part
             Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-            Select Operator
-              expressions: p_name (type: string), p_mfgr (type: string)
-              outputColumnNames: _col0, _col1
+            Reduce Output Operator
+              key expressions: p_mfgr (type: string), p_name (type: string)
+              sort order: ++
+              Map-reduce partition columns: p_mfgr (type: string)
               Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col1 (type: string), _col0 (type: string)
-                sort order: ++
-                Map-reduce partition columns: _col1 (type: string)
-                Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
-                TopN Hash Memory Usage: 0.8
+              TopN Hash Memory Usage: 0.8
       Reduce Operator Tree:
         Select Operator
           expressions: KEY.reducesinkkey1 (type: string), KEY.reducesinkkey0 
(type: string)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col1, _col2
           Statistics: Num rows: 26 Data size: 3147 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: string, _col1: string
+                  output shape: _col1: string, _col2: string
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col0
-                  partition by: _col1
+                  order by: _col1
+                  partition by: _col2
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col0
+                        arguments: _col1
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
@@ -179,7 +171,7 @@ STAGE PLANS:
               predicate: (_wcol0 < 4) (type: boolean)
               Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: _col1 (type: string), _wcol0 (type: int)
+                expressions: _col2 (type: string), _wcol0 (type: int)
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 8 Data size: 968 Basic stats: COMPLETE 
Column stats: NONE
                 File Output Operator
@@ -312,37 +304,33 @@ STAGE PLANS:
           TableScan
             alias: alltypesorc
             Statistics: Num rows: 12288 Data size: 2641964 Basic stats: 
COMPLETE Column stats: NONE
-            Select Operator
-              expressions: ctinyint (type: tinyint), cdouble (type: double)
-              outputColumnNames: _col0, _col1
+            Reduce Output Operator
+              key expressions: ctinyint (type: tinyint), cdouble (type: double)
+              sort order: ++
+              Map-reduce partition columns: ctinyint (type: tinyint)
               Statistics: Num rows: 12288 Data size: 2641964 Basic stats: 
COMPLETE Column stats: NONE
-              Reduce Output Operator
-                key expressions: _col0 (type: tinyint), _col1 (type: double)
-                sort order: ++
-                Map-reduce partition columns: _col0 (type: tinyint)
-                Statistics: Num rows: 12288 Data size: 2641964 Basic stats: 
COMPLETE Column stats: NONE
-                TopN Hash Memory Usage: 0.8
+              TopN Hash Memory Usage: 0.8
       Reduce Operator Tree:
         Select Operator
           expressions: KEY.reducesinkkey0 (type: tinyint), KEY.reducesinkkey1 
(type: double)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col0, _col5
           Statistics: Num rows: 12288 Data size: 2641964 Basic stats: COMPLETE 
Column stats: NONE
           PTF Operator
             Function definitions:
                 Input definition
                   input alias: ptf_0
-                  output shape: _col0: tinyint, _col1: double
+                  output shape: _col0: tinyint, _col5: double
                   type: WINDOWING
                 Windowing table definition
                   input alias: ptf_1
                   name: windowingtablefunction
-                  order by: _col1
+                  order by: _col5
                   partition by: _col0
                   raw input shape:
                   window functions:
                       window function definition
                         alias: _wcol0
-                        arguments: _col1
+                        arguments: _col5
                         name: rank
                         window function: GenericUDAFRankEvaluator
                         window frame: PRECEDING(MAX)~FOLLOWING(MAX)
@@ -352,7 +340,7 @@ STAGE PLANS:
               predicate: (_wcol0 < 5) (type: boolean)
               Statistics: Num rows: 4096 Data size: 880654 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
-                expressions: _col0 (type: tinyint), _col1 (type: double), 
_wcol0 (type: int)
+                expressions: _col0 (type: tinyint), _col5 (type: double), 
_wcol0 (type: int)
                 outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 4096 Data size: 880654 Basic stats: 
COMPLETE Column stats: NONE
                 File Output Operator


Reply via email to