http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/encrypted/encryption_join_unencrypted_tbl.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/encrypted/encryption_join_unencrypted_tbl.q.out
 
b/ql/src/test/results/clientpositive/encrypted/encryption_join_unencrypted_tbl.q.out
index 1e195bc..b6d726e 100644
--- 
a/ql/src/test/results/clientpositive/encrypted/encryption_join_unencrypted_tbl.q.out
+++ 
b/ql/src/test/results/clientpositive/encrypted/encryption_join_unencrypted_tbl.q.out
@@ -542,13 +542,13 @@ POSTHOOK: type: QUERY
 POSTHOOK: Input: default@encrypted_table
 POSTHOOK: Input: default@src
 POSTHOOK: Output: hdfs://### HDFS PATH ###
-OPTIMIZED SQL: SELECT *
-FROM (SELECT `key`, `value`
+OPTIMIZED SQL: SELECT `t0`.`key`, `t0`.`value`, `t2`.`key` AS `key1`, 
`t2`.`value` AS `value1`
+FROM (SELECT `key`, `value`, CAST(`key` AS DOUBLE) AS `CAST`
 FROM `default`.`src`
 WHERE `key` IS NOT NULL) AS `t0`
-INNER JOIN (SELECT `key`, `value`
+INNER JOIN (SELECT `key`, `value`, CAST(`key` AS DOUBLE) AS `CAST`
 FROM `default`.`encrypted_table`
-WHERE `key` IS NOT NULL) AS `t2` ON CAST(`t0`.`key` AS DOUBLE) = 
CAST(`t2`.`key` AS DOUBLE)
+WHERE `key` IS NOT NULL) AS `t2` ON `t0`.`CAST` = `t2`.`CAST`
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
   Stage-0 depends on stages: Stage-1
@@ -567,14 +567,14 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), value (type: string), 
UDFToDouble(key) (type: double)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: UDFToDouble(_col0) (type: double)
+                  key expressions: _col2 (type: double)
                   null sort order: a
                   sort order: +
-                  Map-reduce partition columns: UDFToDouble(_col0) (type: 
double)
+                  Map-reduce partition columns: _col2 (type: double)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   tag: 0
                   value expressions: _col0 (type: string), _col1 (type: string)
@@ -589,14 +589,14 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: int), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: int), value (type: string), 
UDFToDouble(key) (type: double)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: UDFToDouble(_col0) (type: double)
+                  key expressions: _col2 (type: double)
                   null sort order: a
                   sort order: +
-                  Map-reduce partition columns: UDFToDouble(_col0) (type: 
double)
+                  Map-reduce partition columns: _col2 (type: double)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   tag: 1
                   value expressions: _col0 (type: int), _col1 (type: string)
@@ -714,32 +714,36 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 UDFToDouble(_col0) (type: double)
-            1 UDFToDouble(_col0) (type: double)
-          outputColumnNames: _col0, _col1, _col2, _col3
+            0 _col2 (type: double)
+            1 _col2 (type: double)
+          outputColumnNames: _col0, _col1, _col3, _col4
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
-          File Output Operator
-            compressed: false
-            GlobalTableId: 0
-            directory: hdfs://### HDFS PATH ###
-            NumFilesPerFileSink: 1
+          Select Operator
+            expressions: _col0 (type: string), _col1 (type: string), _col3 
(type: int), _col4 (type: string)
+            outputColumnNames: _col0, _col1, _col2, _col3
             Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
-            Stats Publishing Key Prefix: hdfs://### HDFS PATH ###
-            table:
-                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                properties:
-                  columns _col0,_col1,_col2,_col3
-                  columns.types string:string:int:string
-                  escape.delim \
-                  hive.serialization.extend.additional.nesting.levels true
-                  serialization.escape.crlf true
-                  serialization.format 1
-                  serialization.lib 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
-                serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
-            TotalFiles: 1
-            GatherStats: false
-            MultiFileSpray: false
+            File Output Operator
+              compressed: false
+              GlobalTableId: 0
+              directory: hdfs://### HDFS PATH ###
+              NumFilesPerFileSink: 1
+              Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
+              Stats Publishing Key Prefix: hdfs://### HDFS PATH ###
+              table:
+                  input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  properties:
+                    columns _col0,_col1,_col2,_col3
+                    columns.types string:string:int:string
+                    escape.delim \
+                    hive.serialization.extend.additional.nesting.levels true
+                    serialization.escape.crlf true
+                    serialization.format 1
+                    serialization.lib 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+              TotalFiles: 1
+              GatherStats: false
+              MultiFileSpray: false
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/filter_cond_pushdown.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/filter_cond_pushdown.q.out 
b/ql/src/test/results/clientpositive/filter_cond_pushdown.q.out
index 5209b44..28c13c1 100644
--- a/ql/src/test/results/clientpositive/filter_cond_pushdown.q.out
+++ b/ql/src/test/results/clientpositive/filter_cond_pushdown.q.out
@@ -29,15 +29,15 @@ STAGE PLANS:
               predicate: ((value <> '') and key is not null) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), value (type: string), (value 
= '2008-04-08') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: string), _col2 (type: 
boolean)
           TableScan
             alias: f
             filterExpr: ((value) IN ('2008-04-08', '2008-04-09') and key is 
not null) (type: boolean)
@@ -46,15 +46,15 @@ STAGE PLANS:
               predicate: ((value) IN ('2008-04-08', '2008-04-09') and key is 
not null) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), (value = '2008-04-08') (type: 
boolean), (value = '2008-04-09') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: boolean), _col2 (type: 
boolean)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -62,10 +62,10 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col1, _col2, _col3
+          outputColumnNames: _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Filter Operator
-            predicate: (((_col3 = '2008-04-08') and (_col1 = '2008-04-08')) or 
(_col3 = '2008-04-09')) (type: boolean)
+            predicate: ((_col4 and _col2) or _col5) (type: boolean)
             Statistics: Num rows: 412 Data size: 4376 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
               compressed: false
@@ -83,7 +83,7 @@ STAGE PLANS:
               sort order: +
               Map-reduce partition columns: _col1 (type: string)
               Statistics: Num rows: 412 Data size: 4376 Basic stats: COMPLETE 
Column stats: NONE
-              value expressions: _col2 (type: string)
+              value expressions: _col3 (type: string)
           TableScan
             alias: g
             filterExpr: (value <> '') (type: boolean)
@@ -107,10 +107,10 @@ STAGE PLANS:
           keys:
             0 _col1 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col2, _col4
+          outputColumnNames: _col3, _col6
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: _col2 (type: string), _col4 (type: string)
+            expressions: _col3 (type: string), _col6 (type: string)
             outputColumnNames: _col0, _col1
             Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
@@ -158,15 +158,15 @@ STAGE PLANS:
               predicate: ((value <> '') and key is not null) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), value (type: string), (value 
= '2008-04-08') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: string), _col2 (type: 
boolean)
           TableScan
             alias: f
             filterExpr: ((value) IN ('2008-04-08', '2008-04-10', '2008-04-09') 
and key is not null) (type: boolean)
@@ -175,15 +175,15 @@ STAGE PLANS:
               predicate: ((value) IN ('2008-04-08', '2008-04-10', 
'2008-04-09') and key is not null) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), (value) IN ('2008-04-08', 
'2008-04-10') (type: boolean), (value = '2008-04-09') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: boolean), _col2 (type: 
boolean)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -191,11 +191,11 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col1, _col2, _col3
+          outputColumnNames: _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Filter Operator
-            predicate: (((_col3) IN ('2008-04-08', '2008-04-10') and (_col1 = 
'2008-04-08')) or (_col3 = '2008-04-09')) (type: boolean)
-            Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
+            predicate: ((_col4 and _col2) or _col5) (type: boolean)
+            Statistics: Num rows: 412 Data size: 4376 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
               compressed: false
               table:
@@ -211,8 +211,8 @@ STAGE PLANS:
               key expressions: _col1 (type: string)
               sort order: +
               Map-reduce partition columns: _col1 (type: string)
-              Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
-              value expressions: _col2 (type: string)
+              Statistics: Num rows: 412 Data size: 4376 Basic stats: COMPLETE 
Column stats: NONE
+              value expressions: _col3 (type: string)
           TableScan
             alias: g
             filterExpr: (value <> '') (type: boolean)
@@ -236,15 +236,15 @@ STAGE PLANS:
           keys:
             0 _col1 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col2, _col4
-          Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE 
Column stats: NONE
+          outputColumnNames: _col3, _col6
+          Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: _col2 (type: string), _col4 (type: string)
+            expressions: _col3 (type: string), _col6 (type: string)
             outputColumnNames: _col0, _col1
-            Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE 
Column stats: NONE
+            Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
               compressed: false
-              Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE 
Column stats: NONE
+              Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
               table:
                   input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
                   output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
@@ -305,7 +305,7 @@ STAGE PLANS:
               predicate: (UDFToDouble(key) = 1.0D) (type: boolean)
               Statistics: Num rows: 10 Data size: 131 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), c_int (type: int), c_float 
(type: float)
+                expressions: key (type: string), c_float (type: float), 
((c_int + 1) > 2) (type: boolean)
                 outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 10 Data size: 131 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
@@ -313,7 +313,7 @@ STAGE PLANS:
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 10 Data size: 131 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: int), _col2 (type: float)
+                  value expressions: _col1 (type: float), _col2 (type: boolean)
           TableScan
             alias: t3
             filterExpr: ((c_int = 1) and (UDFToDouble(key) = 1.0D)) (type: 
boolean)
@@ -341,12 +341,12 @@ STAGE PLANS:
           outputColumnNames: _col0, _col1, _col2, _col4
           Statistics: Num rows: 11 Data size: 144 Basic stats: COMPLETE Column 
stats: NONE
           Filter Operator
-            predicate: (((_col1 + 1) > 2) or ((_col2 + _col4) > 2)) (type: 
boolean)
-            Statistics: Num rows: 6 Data size: 78 Basic stats: COMPLETE Column 
stats: NONE
+            predicate: (((_col1 + _col4) > 2) or _col2) (type: boolean)
+            Statistics: Num rows: 8 Data size: 104 Basic stats: COMPLETE 
Column stats: NONE
             Select Operator
               expressions: _col0 (type: string)
               outputColumnNames: _col0
-              Statistics: Num rows: 6 Data size: 78 Basic stats: COMPLETE 
Column stats: NONE
+              Statistics: Num rows: 8 Data size: 104 Basic stats: COMPLETE 
Column stats: NONE
               File Output Operator
                 compressed: false
                 table:
@@ -378,7 +378,7 @@ STAGE PLANS:
               key expressions: _col0 (type: string)
               sort order: +
               Map-reduce partition columns: _col0 (type: string)
-              Statistics: Num rows: 6 Data size: 78 Basic stats: COMPLETE 
Column stats: NONE
+              Statistics: Num rows: 8 Data size: 104 Basic stats: COMPLETE 
Column stats: NONE
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -432,15 +432,15 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), value (type: string), (value) 
IN ('2008-04-08', '2008-04-10') (type: boolean), (value) IN ('2008-04-08', 
'2008-04-09') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: string), _col2 (type: 
boolean), _col3 (type: boolean)
           TableScan
             alias: m
             filterExpr: ((value) IN ('2008-04-10', '2008-04-08') and (value <> 
'') and key is not null) (type: boolean)
@@ -449,15 +449,15 @@ STAGE PLANS:
               predicate: ((value <> '') and (value) IN ('2008-04-10', 
'2008-04-08') and key is not null) (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: key (type: string), value (type: string), (value 
= '2008-04-10') (type: boolean), (value = '2008-04-08') (type: boolean)
+                outputColumnNames: _col0, _col1, _col2, _col3
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col1 (type: string), _col2 (type: 
boolean), _col3 (type: boolean)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -465,18 +465,18 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1, _col3
+          outputColumnNames: _col0, _col1, _col2, _col3, _col5, _col6, _col7
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Filter Operator
-            predicate: (((_col1) IN ('2008-04-08', '2008-04-10') and (_col1) 
IN ('2008-04-08', '2008-04-09') and (_col3 = '2008-04-10')) or (_col3 = 
'2008-04-08')) (type: boolean)
-            Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
+            predicate: ((_col2 and _col3 and _col6) or _col7) (type: boolean)
+            Statistics: Num rows: 343 Data size: 3643 Basic stats: COMPLETE 
Column stats: NONE
             Select Operator
-              expressions: _col0 (type: string), _col1 (type: string), _col3 
(type: string)
+              expressions: _col0 (type: string), _col1 (type: string), _col5 
(type: string)
               outputColumnNames: _col0, _col1, _col2
-              Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
+              Statistics: Num rows: 343 Data size: 3643 Basic stats: COMPLETE 
Column stats: NONE
               File Output Operator
                 compressed: false
-                Statistics: Num rows: 550 Data size: 5843 Basic stats: 
COMPLETE Column stats: NONE
+                Statistics: Num rows: 343 Data size: 3643 Basic stats: 
COMPLETE Column stats: NONE
                 table:
                     input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
                     output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/filter_join_breaktask.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/filter_join_breaktask.q.out 
b/ql/src/test/results/clientpositive/filter_join_breaktask.q.out
index 849ca3f..daa018a 100644
--- a/ql/src/test/results/clientpositive/filter_join_breaktask.q.out
+++ b/ql/src/test/results/clientpositive/filter_join_breaktask.q.out
@@ -35,13 +35,13 @@ POSTHOOK: Input: default@filter_join_breaktask
 POSTHOOK: Input: default@filter_join_breaktask@ds=2008-04-08
 #### A masked pattern was here ####
 OPTIMIZED SQL: SELECT `t2`.`key`, `t0`.`value`
-FROM (SELECT `value`, CAST('2008-04-08' AS STRING) AS `ds`
+FROM (SELECT `value`
 FROM `default`.`filter_join_breaktask`
 WHERE `ds` = '2008-04-08' AND `value` <> '') AS `t0`
-INNER JOIN ((SELECT `key`, CAST('2008-04-08' AS STRING) AS `ds`
+INNER JOIN ((SELECT `key`
 FROM `default`.`filter_join_breaktask`
 WHERE `ds` = '2008-04-08' AND `key` IS NOT NULL) AS `t2`
-INNER JOIN (SELECT `key`, `value`, CAST('2008-04-08' AS STRING) AS `ds`
+INNER JOIN (SELECT `key`, `value`
 FROM `default`.`filter_join_breaktask`
 WHERE `ds` = '2008-04-08' AND `value` <> '' AND `key` IS NOT NULL) AS `t4` ON 
`t2`.`key` = `t4`.`key`) ON `t0`.`value` = `t4`.`value`
 STAGE DEPENDENCIES:
@@ -157,7 +157,7 @@ STAGE PLANS:
           keys:
             0 _col0 (type: int)
             1 _col0 (type: int)
-          outputColumnNames: _col0, _col3
+          outputColumnNames: _col0, _col2
           Statistics: Num rows: 27 Data size: 232 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator
             compressed: false
@@ -169,7 +169,7 @@ STAGE PLANS:
                 output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
                 properties:
                   column.name.delimiter ,
-                  columns _col0,_col3
+                  columns _col0,_col2
                   columns.types int,string
                   escape.delim \
                   serialization.lib 
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
@@ -184,10 +184,10 @@ STAGE PLANS:
           TableScan
             GatherStats: false
             Reduce Output Operator
-              key expressions: _col3 (type: string)
+              key expressions: _col2 (type: string)
               null sort order: a
               sort order: +
-              Map-reduce partition columns: _col3 (type: string)
+              Map-reduce partition columns: _col2 (type: string)
               Statistics: Num rows: 27 Data size: 232 Basic stats: COMPLETE 
Column stats: NONE
               tag: 0
               value expressions: _col0 (type: int)
@@ -223,7 +223,7 @@ STAGE PLANS:
             output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
             properties:
               column.name.delimiter ,
-              columns _col0,_col3
+              columns _col0,_col2
               columns.types int,string
               escape.delim \
               serialization.lib 
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
@@ -233,7 +233,7 @@ STAGE PLANS:
               output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
               properties:
                 column.name.delimiter ,
-                columns _col0,_col3
+                columns _col0,_col2
                 columns.types int,string
                 escape.delim \
                 serialization.lib 
org.apache.hadoop.hive.serde2.lazybinary.LazyBinarySerDe
@@ -295,12 +295,12 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 _col3 (type: string)
+            0 _col2 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col5
+          outputColumnNames: _col0, _col3
           Statistics: Num rows: 29 Data size: 255 Basic stats: COMPLETE Column 
stats: NONE
           Select Operator
-            expressions: _col0 (type: int), _col5 (type: string)
+            expressions: _col0 (type: int), _col3 (type: string)
             outputColumnNames: _col0, _col1
             Statistics: Num rows: 29 Data size: 255 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/infer_bucket_sort_map_operators.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/infer_bucket_sort_map_operators.q.out 
b/ql/src/test/results/clientpositive/infer_bucket_sort_map_operators.q.out
index 786ce78..f31f363 100644
--- a/ql/src/test/results/clientpositive/infer_bucket_sort_map_operators.q.out
+++ b/ql/src/test/results/clientpositive/infer_bucket_sort_map_operators.q.out
@@ -287,12 +287,16 @@ STAGE PLANS:
                 Filter Operator
                   predicate: _col1 is not null (type: boolean)
                   Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
-                  Reduce Output Operator
-                    key expressions: UDFToDouble(_col1) (type: double)
-                    sort order: +
-                    Map-reduce partition columns: UDFToDouble(_col1) (type: 
double)
+                  Select Operator
+                    expressions: _col0 (type: string), _col1 (type: bigint), 
UDFToDouble(_col1) (type: double)
+                    outputColumnNames: _col0, _col1, _col2
                     Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
-                    value expressions: _col0 (type: string), _col1 (type: 
bigint)
+                    Reduce Output Operator
+                      key expressions: _col2 (type: double)
+                      sort order: +
+                      Map-reduce partition columns: _col2 (type: double)
+                      Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
+                      value expressions: _col0 (type: string), _col1 (type: 
bigint)
           TableScan
             alias: src
             filterExpr: value is not null (type: boolean)
@@ -301,21 +305,21 @@ STAGE PLANS:
               predicate: value is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: value (type: string)
+                expressions: UDFToDouble(value) (type: double)
                 outputColumnNames: _col0
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: UDFToDouble(_col0) (type: double)
+                  key expressions: _col0 (type: double)
                   sort order: +
-                  Map-reduce partition columns: UDFToDouble(_col0) (type: 
double)
+                  Map-reduce partition columns: _col0 (type: double)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           keys:
-            0 UDFToDouble(_col1) (type: double)
-            1 UDFToDouble(_col0) (type: double)
+            0 _col2 (type: double)
+            1 _col0 (type: double)
           outputColumnNames: _col0, _col1
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/infer_join_preds.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/infer_join_preds.q.out 
b/ql/src/test/results/clientpositive/infer_join_preds.q.out
index d08408e..48b3167 100644
--- a/ql/src/test/results/clientpositive/infer_join_preds.q.out
+++ b/ql/src/test/results/clientpositive/infer_join_preds.q.out
@@ -1178,15 +1178,15 @@ STAGE PLANS:
               predicate: prid is not null (type: boolean)
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               Select Operator
-                expressions: idp_warehouse_id (type: bigint), prid (type: 
bigint), prtimesheetid (type: bigint), prassignmentid (type: bigint), 
prchargecodeid (type: bigint), prtypecodeid (type: bigint), prsequence (type: 
bigint), prmodby (type: varchar(96)), prmodtime (type: timestamp), prrmexported 
(type: bigint), prrmckdel (type: bigint), slice_status (type: int), role_id 
(type: bigint), user_lov1 (type: varchar(30)), user_lov2 (type: varchar(30)), 
incident_id (type: bigint), incident_investment_id (type: bigint), 
odf_ss_actuals (type: bigint), practsum (type: decimal(38,20))
-                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18
+                expressions: idp_warehouse_id (type: bigint), prid (type: 
bigint), concat(CAST( prid AS STRING), ',', CASE WHEN (prtimesheetid is null) 
THEN (1) ELSE (prtimesheetid) END, ',', CASE WHEN (prassignmentid is null) THEN 
(1) ELSE (prassignmentid) END, ',', CASE WHEN (prchargecodeid is null) THEN (1) 
ELSE (prchargecodeid) END, ',', CASE WHEN (prtypecodeid is null) THEN ('') ELSE 
(prtypecodeid) END, ',', CASE WHEN (practsum is null) THEN (1) ELSE (practsum) 
END, ',', CASE WHEN (prsequence is null) THEN (1) ELSE (prsequence) END, ',', 
CASE WHEN (length(prmodby) is null) THEN ('') ELSE (prmodby) END, ',', CASE 
WHEN (prmodtime is null) THEN (TIMESTAMP'2017-12-08 00:00:00') ELSE (prmodtime) 
END, ',', CASE WHEN (prrmexported is null) THEN (1) ELSE (prrmexported) END, 
',', CASE WHEN (prrmckdel is null) THEN (1) ELSE (prrmckdel) END, ',', CASE 
WHEN (slice_status is null) THEN (1) ELSE (slice_status) END, ',', CASE WHEN 
(role_id is null) THEN (1) ELSE (role_id) END, ',', CASE WHEN 
 (length(user_lov1) is null) THEN ('') ELSE (user_lov1) END, ',', CASE WHEN 
(length(user_lov2) is null) THEN ('') ELSE (user_lov2) END, ',', CASE WHEN 
(incident_id is null) THEN (1) ELSE (incident_id) END, ',', CASE WHEN 
(incident_investment_id is null) THEN (1) ELSE (incident_investment_id) END, 
',', CASE WHEN (odf_ss_actuals is null) THEN (1) ELSE (odf_ss_actuals) END) 
(type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col1 (type: bigint)
                   sort order: +
                   Map-reduce partition columns: _col1 (type: bigint)
                   Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                  value expressions: _col0 (type: bigint), _col2 (type: 
bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), 
_col6 (type: bigint), _col7 (type: varchar(96)), _col8 (type: timestamp), _col9 
(type: bigint), _col10 (type: bigint), _col11 (type: int), _col12 (type: 
bigint), _col13 (type: varchar(30)), _col14 (type: varchar(30)), _col15 (type: 
bigint), _col16 (type: bigint), _col17 (type: bigint), _col18 (type: 
decimal(38,20))
+                  value expressions: _col0 (type: bigint), _col2 (type: string)
           TableScan
             alias: e
             filterExpr: prid is not null (type: boolean)
@@ -1211,15 +1211,15 @@ STAGE PLANS:
               predicate: prid is not null (type: boolean)
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               Select Operator
-                expressions: pruid (type: varchar(32)), prid (type: bigint), 
prtimesheetid (type: bigint), prassignmentid (type: bigint), prchargecodeid 
(type: bigint), prtypecodeid (type: bigint), prsequence (type: bigint), prmodby 
(type: varchar(96)), prmodtime (type: timestamp), prrmexported (type: bigint), 
prrmckdel (type: bigint), slice_status (type: int), role_id (type: bigint), 
user_lov1 (type: varchar(30)), user_lov2 (type: varchar(30)), incident_id 
(type: bigint), incident_investment_id (type: bigint), odf_ss_actuals (type: 
bigint), practsum (type: decimal(38,20))
-                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18
+                expressions: prid (type: bigint), concat(CASE WHEN 
(length(pruid) is null) THEN ('') ELSE (pruid) END, ',', prid, ',', CASE WHEN 
(prtimesheetid is null) THEN (1) ELSE (prtimesheetid) END, ',', CASE WHEN 
(prassignmentid is null) THEN (1) ELSE (prassignmentid) END, ',', CASE WHEN 
(prchargecodeid is null) THEN (1) ELSE (prchargecodeid) END, ',', CASE WHEN 
(prtypecodeid is null) THEN ('') ELSE (prtypecodeid) END, ',', CASE WHEN 
(practsum is null) THEN (1) ELSE (practsum) END, ',', CASE WHEN (prsequence is 
null) THEN (1) ELSE (prsequence) END, ',', CASE WHEN (length(prmodby) is null) 
THEN ('') ELSE (prmodby) END, ',', CASE WHEN (prmodtime is null) THEN 
(TIMESTAMP'2017-12-08 00:00:00') ELSE (prmodtime) END, ',', CASE WHEN 
(prrmexported is null) THEN (1) ELSE (prrmexported) END, ',', CASE WHEN 
(prrmckdel is null) THEN (1) ELSE (prrmckdel) END, ',', CASE WHEN (slice_status 
is null) THEN (1) ELSE (slice_status) END, ',', CASE WHEN (role_id is null) 
THEN (1) ELSE (role_id) END
 , ',', CASE WHEN (length(user_lov1) is null) THEN ('') ELSE (user_lov1) END, 
',', CASE WHEN (length(user_lov2) is null) THEN ('') ELSE (user_lov2) END, ',', 
CASE WHEN (incident_id is null) THEN (1) ELSE (incident_id) END, ',', CASE WHEN 
(incident_investment_id is null) THEN (1) ELSE (incident_investment_id) END, 
',', CASE WHEN (odf_ss_actuals is null) THEN (1) ELSE (odf_ss_actuals) END) 
(type: string)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: _col1 (type: bigint)
+                  key expressions: _col0 (type: bigint)
                   sort order: +
-                  Map-reduce partition columns: _col1 (type: bigint)
+                  Map-reduce partition columns: _col0 (type: bigint)
                   Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                  value expressions: _col0 (type: varchar(32)), _col2 (type: 
bigint), _col3 (type: bigint), _col4 (type: bigint), _col5 (type: bigint), 
_col6 (type: bigint), _col7 (type: varchar(96)), _col8 (type: timestamp), _col9 
(type: bigint), _col10 (type: bigint), _col11 (type: int), _col12 (type: 
bigint), _col13 (type: varchar(30)), _col14 (type: varchar(30)), _col15 (type: 
bigint), _col16 (type: bigint), _col17 (type: bigint), _col18 (type: 
decimal(38,20))
+                  value expressions: _col1 (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -1228,11 +1228,11 @@ STAGE PLANS:
           keys:
             0 _col1 (type: bigint)
             1 _col0 (type: bigint)
-            2 _col1 (type: bigint)
-          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, _col6, 
_col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, _col16, 
_col17, _col18, _col20, _col21, _col22, _col23, _col24, _col25, _col26, _col27, 
_col28, _col29, _col30, _col31, _col32, _col33, _col34, _col35, _col36, _col37, 
_col38
+            2 _col0 (type: bigint)
+          outputColumnNames: _col0, _col2, _col5
           Statistics: Num rows: 2 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
           Filter Operator
-            predicate: (concat(CAST( _col1 AS STRING), ',', CASE WHEN (_col2 
is null) THEN (1) ELSE (_col2) END, ',', CASE WHEN (_col3 is null) THEN (1) 
ELSE (_col3) END, ',', CASE WHEN (_col4 is null) THEN (1) ELSE (_col4) END, 
',', CASE WHEN (_col5 is null) THEN ('') ELSE (_col5) END, ',', CASE WHEN 
(_col18 is null) THEN (1) ELSE (_col18) END, ',', CASE WHEN (_col6 is null) 
THEN (1) ELSE (_col6) END, ',', CASE WHEN (length(_col7) is null) THEN ('') 
ELSE (_col7) END, ',', CASE WHEN (_col8 is null) THEN (TIMESTAMP'2017-12-08 
00:00:00') ELSE (_col8) END, ',', CASE WHEN (_col9 is null) THEN (1) ELSE 
(_col9) END, ',', CASE WHEN (_col10 is null) THEN (1) ELSE (_col10) END, ',', 
CASE WHEN (_col11 is null) THEN (1) ELSE (_col11) END, ',', CASE WHEN (_col12 
is null) THEN (1) ELSE (_col12) END, ',', CASE WHEN (length(_col13) is null) 
THEN ('') ELSE (_col13) END, ',', CASE WHEN (length(_col14) is null) THEN ('') 
ELSE (_col14) END, ',', CASE WHEN (_col15 is null) THEN (1) ELSE (_col15) END, '
 ,', CASE WHEN (_col16 is null) THEN (1) ELSE (_col16) END, ',', CASE WHEN 
(_col17 is null) THEN (1) ELSE (_col17) END) <> concat(CASE WHEN 
(length(_col20) is null) THEN ('') ELSE (_col20) END, ',', _col21, ',', CASE 
WHEN (_col22 is null) THEN (1) ELSE (_col22) END, ',', CASE WHEN (_col23 is 
null) THEN (1) ELSE (_col23) END, ',', CASE WHEN (_col24 is null) THEN (1) ELSE 
(_col24) END, ',', CASE WHEN (_col25 is null) THEN ('') ELSE (_col25) END, ',', 
CASE WHEN (_col38 is null) THEN (1) ELSE (_col38) END, ',', CASE WHEN (_col26 
is null) THEN (1) ELSE (_col26) END, ',', CASE WHEN (length(_col27) is null) 
THEN ('') ELSE (_col27) END, ',', CASE WHEN (_col28 is null) THEN 
(TIMESTAMP'2017-12-08 00:00:00') ELSE (_col28) END, ',', CASE WHEN (_col29 is 
null) THEN (1) ELSE (_col29) END, ',', CASE WHEN (_col30 is null) THEN (1) ELSE 
(_col30) END, ',', CASE WHEN (_col31 is null) THEN (1) ELSE (_col31) END, ',', 
CASE WHEN (_col32 is null) THEN (1) ELSE (_col32) END, ',', CASE WHEN 
(length(_col33) i
 s null) THEN ('') ELSE (_col33) END, ',', CASE WHEN (length(_col34) is null) 
THEN ('') ELSE (_col34) END, ',', CASE WHEN (_col35 is null) THEN (1) ELSE 
(_col35) END, ',', CASE WHEN (_col36 is null) THEN (1) ELSE (_col36) END, ',', 
CASE WHEN (_col37 is null) THEN (1) ELSE (_col37) END)) (type: boolean)
+            predicate: (_col2 <> _col5) (type: boolean)
             Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
               expressions: _col0 (type: bigint)

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/innerjoin1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/innerjoin1.q.out 
b/ql/src/test/results/clientpositive/innerjoin1.q.out
index e751a5c..0bde0c9 100644
--- a/ql/src/test/results/clientpositive/innerjoin1.q.out
+++ b/ql/src/test/results/clientpositive/innerjoin1.q.out
@@ -88,13 +88,13 @@ STAGE PLANS:
               predicate: CASE WHEN (a1 is not null) THEN (a1 is not null) ELSE 
(a2 is not null) END (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: a1 (type: string), a2 (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: a1 (type: string), a2 (type: string), CASE WHEN 
(a1 is not null) THEN (a1) ELSE (a2) END (type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: CASE WHEN (_col0 is not null) THEN (_col0) 
ELSE (_col1) END (type: string)
+                  key expressions: _col2 (type: string)
                   sort order: +
-                  Map-reduce partition columns: CASE WHEN (_col0 is not null) 
THEN (_col0) ELSE (_col1) END (type: string)
+                  Map-reduce partition columns: _col2 (type: string)
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string)
           TableScan
@@ -105,13 +105,13 @@ STAGE PLANS:
               predicate: CASE WHEN (b1 is not null) THEN (b1 is not null) ELSE 
(b2 is not null) END (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: b1 (type: string), b2 (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: b1 (type: string), b2 (type: string), CASE WHEN 
(b1 is not null) THEN (b1) ELSE (b2) END (type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: CASE WHEN (_col0 is not null) THEN (_col0) 
ELSE (_col1) END (type: string)
+                  key expressions: _col2 (type: string)
                   sort order: +
-                  Map-reduce partition columns: CASE WHEN (_col0 is not null) 
THEN (_col0) ELSE (_col1) END (type: string)
+                  Map-reduce partition columns: _col2 (type: string)
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string)
       Reduce Operator Tree:
@@ -119,17 +119,21 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 CASE WHEN (_col0 is not null) THEN (_col0) ELSE (_col1) END 
(type: string)
-            1 CASE WHEN (_col0 is not null) THEN (_col0) ELSE (_col1) END 
(type: string)
-          outputColumnNames: _col0, _col1, _col2, _col3
+            0 _col2 (type: string)
+            1 _col2 (type: string)
+          outputColumnNames: _col0, _col1, _col3, _col4
           Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
-          File Output Operator
-            compressed: false
+          Select Operator
+            expressions: _col0 (type: string), _col1 (type: string), _col3 
(type: string), _col4 (type: string)
+            outputColumnNames: _col0, _col1, _col2, _col3
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
-            table:
-                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -175,13 +179,13 @@ STAGE PLANS:
               predicate: CASE WHEN (a1 is not null) THEN (a1 is not null) ELSE 
(a2 is not null) END (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: a1 (type: string), a2 (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: a1 (type: string), a2 (type: string), CASE WHEN 
(a1 is not null) THEN (a1) ELSE (a2) END (type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: CASE WHEN (_col0 is not null) THEN (_col0) 
ELSE (_col1) END (type: string)
+                  key expressions: _col2 (type: string)
                   sort order: +
-                  Map-reduce partition columns: CASE WHEN (_col0 is not null) 
THEN (_col0) ELSE (_col1) END (type: string)
+                  Map-reduce partition columns: _col2 (type: string)
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string)
           TableScan
@@ -192,13 +196,13 @@ STAGE PLANS:
               predicate: CASE WHEN (b1 is not null) THEN (b1 is not null) ELSE 
(b2 is not null) END (type: boolean)
               Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: b1 (type: string), b2 (type: string)
-                outputColumnNames: _col0, _col1
+                expressions: b1 (type: string), b2 (type: string), CASE WHEN 
(b1 is not null) THEN (b1) ELSE (b2) END (type: string)
+                outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: CASE WHEN (_col0 is not null) THEN (_col0) 
ELSE (_col1) END (type: string)
+                  key expressions: _col2 (type: string)
                   sort order: +
-                  Map-reduce partition columns: CASE WHEN (_col0 is not null) 
THEN (_col0) ELSE (_col1) END (type: string)
+                  Map-reduce partition columns: _col2 (type: string)
                   Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
                   value expressions: _col0 (type: string), _col1 (type: string)
       Reduce Operator Tree:
@@ -206,17 +210,21 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 CASE WHEN (_col0 is not null) THEN (_col0) ELSE (_col1) END 
(type: string)
-            1 CASE WHEN (_col0 is not null) THEN (_col0) ELSE (_col1) END 
(type: string)
-          outputColumnNames: _col0, _col1, _col2, _col3
+            0 _col2 (type: string)
+            1 _col2 (type: string)
+          outputColumnNames: _col0, _col1, _col3, _col4
           Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
-          File Output Operator
-            compressed: false
+          Select Operator
+            expressions: _col0 (type: string), _col1 (type: string), _col3 
(type: string), _col4 (type: string)
+            outputColumnNames: _col0, _col1, _col2, _col3
             Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE Column 
stats: NONE
-            table:
-                input format: org.apache.hadoop.mapred.SequenceFileInputFormat
-                output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
-                serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 1 Data size: 3 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: 
org.apache.hadoop.mapred.SequenceFileInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/input23.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/input23.q.out 
b/ql/src/test/results/clientpositive/input23.q.out
index 6731320..4140b3c 100644
--- a/ql/src/test/results/clientpositive/input23.q.out
+++ b/ql/src/test/results/clientpositive/input23.q.out
@@ -12,10 +12,10 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
 #### A masked pattern was here ####
 OPTIMIZED SQL: SELECT `t0`.`key`, `t0`.`value`, CAST('2008-04-08' AS STRING) 
AS `ds`, CAST('11' AS STRING) AS `hr`, `t2`.`key` AS `key1`, `t2`.`value` AS 
`value1`, CAST('2008-04-08' AS STRING) AS `ds1`, CAST('14' AS STRING) AS `hr1`
-FROM (SELECT `key`, `value`, CAST('2008-04-08' AS STRING) AS `ds`, CAST('11' 
AS STRING) AS `hr`
+FROM (SELECT `key`, `value`
 FROM `default`.`srcpart`
 WHERE `ds` = '2008-04-08' AND `hr` = '11') AS `t0`,
-(SELECT `key`, `value`, CAST('2008-04-08' AS STRING) AS `ds`, CAST('14' AS 
STRING) AS `hr`
+(SELECT `key`, `value`
 FROM `default`.`srcpart`
 WHERE `ds` = '2008-04-08' AND `hr` = '14') AS `t2`
 LIMIT 5
@@ -125,10 +125,10 @@ STAGE PLANS:
           keys:
             0 
             1 
-          outputColumnNames: _col0, _col1, _col4, _col5
+          outputColumnNames: _col0, _col1, _col2, _col3
           Statistics: Num rows: 500 Data size: 5812 Basic stats: PARTIAL 
Column stats: NONE
           Select Operator
-            expressions: _col0 (type: string), _col1 (type: string), 
'2008-04-08' (type: string), '11' (type: string), _col4 (type: string), _col5 
(type: string), '2008-04-08' (type: string), '14' (type: string)
+            expressions: _col0 (type: string), _col1 (type: string), 
'2008-04-08' (type: string), '11' (type: string), _col2 (type: string), _col3 
(type: string), '2008-04-08' (type: string), '14' (type: string)
             outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7
             Statistics: Num rows: 500 Data size: 5812 Basic stats: PARTIAL 
Column stats: NONE
             Limit

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/interval_3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/interval_3.q.out 
b/ql/src/test/results/clientpositive/interval_3.q.out
index e77c4a9..f1dae98 100644
--- a/ql/src/test/results/clientpositive/interval_3.q.out
+++ b/ql/src/test/results/clientpositive/interval_3.q.out
@@ -155,24 +155,24 @@ STAGE PLANS:
             alias: d1
             Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
-              expressions: d_week_seq (type: int), d_date (type: string)
-              outputColumnNames: _col0, _col1
+              expressions: d_week_seq (type: int), ((((((CAST( d_date AS DATE) 
+ INTERVAL'1-0') + INTERVAL'0-2') + INTERVAL'5 00:00:00.000000000') + 
INTERVAL'0 04:00:00.000000000') + INTERVAL'0 00:10:00.000000000') + INTERVAL'0 
00:00:09.000000000') (type: timestamp), (CAST( d_date AS DATE) + INTERVAL'1-2') 
(type: date)
+              outputColumnNames: _col0, _col1, _col2
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               Reduce Output Operator
                 sort order: 
                 Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                value expressions: _col0 (type: int), _col1 (type: string)
+                value expressions: _col0 (type: int), _col1 (type: timestamp), 
_col2 (type: date)
           TableScan
             alias: d3
             Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
-              expressions: d_date (type: string)
-              outputColumnNames: _col0
+              expressions: CAST( CAST( d_date AS DATE) AS TIMESTAMP) (type: 
timestamp), CAST( d_date AS DATE) (type: date)
+              outputColumnNames: _col0, _col1
               Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL Column 
stats: NONE
               Reduce Output Operator
                 sort order: 
                 Statistics: Num rows: 1 Data size: 0 Basic stats: PARTIAL 
Column stats: NONE
-                value expressions: _col0 (type: string)
+                value expressions: _col0 (type: timestamp), _col1 (type: date)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -180,10 +180,10 @@ STAGE PLANS:
           keys:
             0 
             1 
-          outputColumnNames: _col0, _col1, _col2
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4
           Statistics: Num rows: 1 Data size: 1 Basic stats: PARTIAL Column 
stats: NONE
           Filter Operator
-            predicate: ((CAST( CAST( _col2 AS DATE) AS TIMESTAMP) > 
((((((CAST( _col1 AS DATE) + INTERVAL'1-0') + INTERVAL'0-2') + INTERVAL'5 
00:00:00.000000000') + INTERVAL'0 04:00:00.000000000') + INTERVAL'0 
00:10:00.000000000') + INTERVAL'0 00:00:09.000000000')) and (CAST( _col2 AS 
DATE) < (CAST( _col1 AS DATE) + INTERVAL'1-2'))) (type: boolean)
+            predicate: ((_col3 > _col1) and (_col4 < _col2)) (type: boolean)
             Statistics: Num rows: 1 Data size: 1 Basic stats: PARTIAL Column 
stats: NONE
             Select Operator
               expressions: _col0 (type: int)

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join13.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join13.q.out 
b/ql/src/test/results/clientpositive/join13.q.out
index f9e84b9..426de83 100644
--- a/ql/src/test/results/clientpositive/join13.q.out
+++ b/ql/src/test/results/clientpositive/join13.q.out
@@ -100,13 +100,13 @@ STAGE PLANS:
               predicate: (UDFToDouble(key) < 200.0D) (type: boolean)
               Statistics: Num rows: 166 Data size: 1763 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string)
+                expressions: UDFToDouble(key) (type: double)
                 outputColumnNames: _col0
                 Statistics: Num rows: 166 Data size: 1763 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: UDFToDouble(_col0) (type: double)
+                  key expressions: _col0 (type: double)
                   sort order: +
-                  Map-reduce partition columns: UDFToDouble(_col0) (type: 
double)
+                  Map-reduce partition columns: _col0 (type: double)
                   Statistics: Num rows: 166 Data size: 1763 Basic stats: 
COMPLETE Column stats: NONE
       Reduce Operator Tree:
         Join Operator
@@ -114,7 +114,7 @@ STAGE PLANS:
                Inner Join 0 to 1
           keys:
             0 (UDFToDouble(_col2) + UDFToDouble(_col0)) (type: double)
-            1 UDFToDouble(_col0) (type: double)
+            1 _col0 (type: double)
           outputColumnNames: _col1, _col2
           Statistics: Num rows: 200 Data size: 2132 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join2.q.out 
b/ql/src/test/results/clientpositive/join2.q.out
index 4f6aeda..1462ecf 100644
--- a/ql/src/test/results/clientpositive/join2.q.out
+++ b/ql/src/test/results/clientpositive/join2.q.out
@@ -36,14 +36,15 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string)
-                outputColumnNames: _col0
+                expressions: key (type: string), UDFToDouble(key) (type: 
double)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
+                  value expressions: _col1 (type: double)
           TableScan
             alias: src2
             filterExpr: key is not null (type: boolean)
@@ -52,14 +53,15 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string)
-                outputColumnNames: _col0
+                expressions: key (type: string), UDFToDouble(key) (type: 
double)
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: string)
                   sort order: +
                   Map-reduce partition columns: _col0 (type: string)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
+                  value expressions: _col1 (type: double)
       Reduce Operator Tree:
         Join Operator
           condition map:
@@ -67,7 +69,7 @@ STAGE PLANS:
           keys:
             0 _col0 (type: string)
             1 _col0 (type: string)
-          outputColumnNames: _col0, _col1
+          outputColumnNames: _col0, _col1, _col3
           Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
           File Output Operator
             compressed: false
@@ -81,9 +83,9 @@ STAGE PLANS:
       Map Operator Tree:
           TableScan
             Reduce Output Operator
-              key expressions: (UDFToDouble(_col0) + UDFToDouble(_col1)) 
(type: double)
+              key expressions: (_col1 + _col3) (type: double)
               sort order: +
-              Map-reduce partition columns: (UDFToDouble(_col0) + 
UDFToDouble(_col1)) (type: double)
+              Map-reduce partition columns: (_col1 + _col3) (type: double)
               Statistics: Num rows: 550 Data size: 5843 Basic stats: COMPLETE 
Column stats: NONE
               value expressions: _col0 (type: string)
           TableScan
@@ -94,26 +96,26 @@ STAGE PLANS:
               predicate: key is not null (type: boolean)
               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
-                expressions: key (type: string), value (type: string)
+                expressions: value (type: string), UDFToDouble(key) (type: 
double)
                 outputColumnNames: _col0, _col1
                 Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
-                  key expressions: UDFToDouble(_col0) (type: double)
+                  key expressions: _col1 (type: double)
                   sort order: +
-                  Map-reduce partition columns: UDFToDouble(_col0) (type: 
double)
+                  Map-reduce partition columns: _col1 (type: double)
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
-                  value expressions: _col1 (type: string)
+                  value expressions: _col0 (type: string)
       Reduce Operator Tree:
         Join Operator
           condition map:
                Inner Join 0 to 1
           keys:
-            0 (UDFToDouble(_col0) + UDFToDouble(_col1)) (type: double)
-            1 UDFToDouble(_col0) (type: double)
-          outputColumnNames: _col0, _col3
+            0 (_col1 + _col3) (type: double)
+            1 _col1 (type: double)
+          outputColumnNames: _col0, _col4
           Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: UDFToInteger(_col0) (type: int), _col3 (type: string)
+            expressions: UDFToInteger(_col0) (type: int), _col4 (type: string)
             outputColumnNames: _col0, _col1
             Statistics: Num rows: 605 Data size: 6427 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join26.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join26.q.out 
b/ql/src/test/results/clientpositive/join26.q.out
index 3707d09..d167d70 100644
--- a/ql/src/test/results/clientpositive/join26.q.out
+++ b/ql/src/test/results/clientpositive/join26.q.out
@@ -29,7 +29,7 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
 POSTHOOK: Output: default@dest_j1_n10
 OPTIMIZED SQL: SELECT `t4`.`key`, `t0`.`value`, `t2`.`value` AS `value1`
-FROM (SELECT `key`, `value`, CAST('2008-04-08' AS STRING) AS `ds`, `hr`
+FROM (SELECT `key`, `value`
 FROM `default`.`srcpart`
 WHERE `ds` = '2008-04-08' AND `hr` = 11 AND `key` IS NOT NULL) AS `t0`
 INNER JOIN ((SELECT `key`, `value`

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join32.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join32.q.out 
b/ql/src/test/results/clientpositive/join32.q.out
index 77060d9..b6e22ce 100644
--- a/ql/src/test/results/clientpositive/join32.q.out
+++ b/ql/src/test/results/clientpositive/join32.q.out
@@ -29,7 +29,7 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
 POSTHOOK: Output: default@dest_j1_n12
 OPTIMIZED SQL: SELECT `t4`.`key`, `t0`.`value`, `t2`.`value` AS `value1`
-FROM (SELECT `value`, CAST('2008-04-08' AS STRING) AS `ds`, `hr`
+FROM (SELECT `value`
 FROM `default`.`srcpart`
 WHERE `ds` = '2008-04-08' AND `hr` = 11 AND `value` IS NOT NULL) AS `t0`
 INNER JOIN ((SELECT `key`, `value`

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join33.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join33.q.out 
b/ql/src/test/results/clientpositive/join33.q.out
index 321a9b7..bbf3cc5 100644
--- a/ql/src/test/results/clientpositive/join33.q.out
+++ b/ql/src/test/results/clientpositive/join33.q.out
@@ -29,7 +29,7 @@ POSTHOOK: Input: default@srcpart
 POSTHOOK: Input: default@srcpart@ds=2008-04-08/hr=11
 POSTHOOK: Output: default@dest_j1_n7
 OPTIMIZED SQL: SELECT `t4`.`key`, `t0`.`value`, `t2`.`value` AS `value1`
-FROM (SELECT `value`, CAST('2008-04-08' AS STRING) AS `ds`, `hr`
+FROM (SELECT `value`
 FROM `default`.`srcpart`
 WHERE `ds` = '2008-04-08' AND `hr` = 11 AND `value` IS NOT NULL) AS `t0`
 INNER JOIN ((SELECT `key`, `value`

http://git-wip-us.apache.org/repos/asf/hive/blob/55887646/ql/src/test/results/clientpositive/join42.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/join42.q.out 
b/ql/src/test/results/clientpositive/join42.q.out
index 81ac363..f2985fe 100644
--- a/ql/src/test/results/clientpositive/join42.q.out
+++ b/ql/src/test/results/clientpositive/join42.q.out
@@ -211,9 +211,9 @@ STAGE PLANS:
               value expressions: _col1 (type: int), _col2 (type: int)
           TableScan
             Reduce Output Operator
-              key expressions: _col3 (type: int)
+              key expressions: _col2 (type: int)
               sort order: +
-              Map-reduce partition columns: _col3 (type: int)
+              Map-reduce partition columns: _col2 (type: int)
               Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE 
Column stats: NONE
       Reduce Operator Tree:
         Join Operator
@@ -221,7 +221,7 @@ STAGE PLANS:
                Inner Join 0 to 1
           keys:
             0 _col0 (type: int)
-            1 _col3 (type: int)
+            1 _col2 (type: int)
           outputColumnNames: _col1, _col2
           Statistics: Num rows: 3 Data size: 63 Basic stats: COMPLETE Column 
stats: NONE
           Select Operator
@@ -248,14 +248,14 @@ STAGE PLANS:
               Statistics: Num rows: 1 Data size: 14 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
                 expressions: aid (type: int), pi_id (type: int)
-                outputColumnNames: _col1, _col2
+                outputColumnNames: _col0, _col1
                 Statistics: Num rows: 1 Data size: 14 Basic stats: COMPLETE 
Column stats: NONE
                 Reduce Output Operator
-                  key expressions: _col1 (type: int)
+                  key expressions: _col0 (type: int)
                   sort order: +
-                  Map-reduce partition columns: _col1 (type: int)
+                  Map-reduce partition columns: _col0 (type: int)
                   Statistics: Num rows: 1 Data size: 14 Basic stats: COMPLETE 
Column stats: NONE
-                  value expressions: _col2 (type: int)
+                  value expressions: _col1 (type: int)
           TableScan
             alias: a_n11
             filterExpr: id is not null (type: boolean)
@@ -277,9 +277,9 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 _col1 (type: int)
+            0 _col0 (type: int)
             1 _col0 (type: int)
-          outputColumnNames: _col2, _col3
+          outputColumnNames: _col1, _col2
           Statistics: Num rows: 1 Data size: 15 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator
             compressed: false
@@ -293,11 +293,11 @@ STAGE PLANS:
       Map Operator Tree:
           TableScan
             Reduce Output Operator
-              key expressions: _col2 (type: int)
+              key expressions: _col1 (type: int)
               sort order: +
-              Map-reduce partition columns: _col2 (type: int)
+              Map-reduce partition columns: _col1 (type: int)
               Statistics: Num rows: 1 Data size: 15 Basic stats: COMPLETE 
Column stats: NONE
-              value expressions: _col3 (type: int)
+              value expressions: _col2 (type: int)
           TableScan
             alias: pi
             filterExpr: id is not null (type: boolean)
@@ -319,9 +319,9 @@ STAGE PLANS:
           condition map:
                Inner Join 0 to 1
           keys:
-            0 _col2 (type: int)
+            0 _col1 (type: int)
             1 _col0 (type: int)
-          outputColumnNames: _col3
+          outputColumnNames: _col2
           Statistics: Num rows: 1 Data size: 16 Basic stats: COMPLETE Column 
stats: NONE
           File Output Operator
             compressed: false

Reply via email to