http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/spark_vectorized_dynamic_partition_pruning.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/spark_vectorized_dynamic_partition_pruning.q.out
 
b/ql/src/test/results/clientpositive/spark/spark_vectorized_dynamic_partition_pruning.q.out
index 6ab8da9..6fbab46 100644
--- 
a/ql/src/test/results/clientpositive/spark/spark_vectorized_dynamic_partition_pruning.q.out
+++ 
b/ql/src/test/results/clientpositive/spark/spark_vectorized_dynamic_partition_pruning.q.out
@@ -1330,7 +1330,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: FilterExprAndExpr(children: 
FilterStringGroupColEqualStringScalar(col 1:string, val 2008-04-08), 
SelectColumnIsNotNull(col 4:bigint)(children: FuncAbsLongToLong(col 
3:bigint)(children: LongColAddLongScalar(col 4:bigint, val 10)(children: 
LongColUnaryMinus(col 3:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 3:bigint) -> 4:bigint) -> 3:bigint) -> 
4:bigint))
+                        predicateExpression: FilterExprAndExpr(children: 
FilterStringGroupColEqualStringScalar(col 1:string, val 2008-04-08), 
SelectColumnIsNotNull(col 10:bigint)(children: FuncAbsLongToLong(col 
9:bigint)(children: LongColAddLongScalar(col 8:bigint, val 10)(children: 
LongColUnaryMinus(col 7:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 7:bigint) -> 8:bigint) -> 9:bigint) -> 
10:bigint))
                     predicate: ((date = '2008-04-08') and abs(((- 
UDFToLong(concat(CAST( day(CAST( ds AS DATE)) AS STRING), '0'))) + 10)) is not 
null) (type: boolean)
                     Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -1339,8 +1339,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [4]
-                          selectExpressions: FuncAbsLongToLong(col 
3:bigint)(children: LongColAddLongScalar(col 4:bigint, val 10)(children: 
LongColUnaryMinus(col 3:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 3:bigint) -> 4:bigint) -> 3:bigint) -> 
4:bigint
+                          projectedOutputColumnNums: [18]
+                          selectExpressions: FuncAbsLongToLong(col 
17:bigint)(children: LongColAddLongScalar(col 16:bigint, val 10)(children: 
LongColUnaryMinus(col 15:bigint)(children: CastStringToLong(col 
14:string)(children: StringGroupColConcatStringScalar(col 13:string, val 
0)(children: CastLongToString(col 12:int)(children: VectorUDFDayOfMonthDate(col 
11, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 11:date) -> 
12:int) -> 13:string) -> 14:string) -> 15:bigint) -> 16:bigint) -> 17:bigint) 
-> 18:bigint
                       Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
                       Select Operator
                         expressions: _col0 (type: bigint)
@@ -1348,13 +1348,13 @@ STAGE PLANS:
                         Select Vectorization:
                             className: VectorSelectOperator
                             native: true
-                            projectedOutputColumnNums: [4]
+                            projectedOutputColumnNums: [18]
                         Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
                         Group By Operator
                           Group By Vectorization:
                               className: VectorGroupByOperator
                               groupByMode: HASH
-                              keyExpressions: col 4:bigint
+                              keyExpressions: col 18:bigint
                               native: false
                               vectorProcessingMode: HASH
                               projectedOutputColumnNums: []
@@ -1380,7 +1380,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: ds:string, date:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [bigint, bigint, string, string]
+                    scratchColumnTypeNames: [bigint, bigint, string, string, 
bigint, bigint, bigint, bigint, bigint, bigint, string, string, bigint, bigint, 
bigint, bigint]
 
   Stage: Stage-1
     Spark
@@ -1402,7 +1402,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: SelectColumnIsNotNull(col 
6:bigint)(children: FuncAbsLongToLong(col 5:bigint)(children: 
LongColAddLongScalar(col 6:bigint, val 10)(children: LongColUnaryMinus(col 
5:bigint)(children: CastStringToLong(col 8:string)(children: 
StringGroupColConcatStringScalar(col 7:string, val 0)(children: 
CastLongToString(col 6:int)(children: VectorUDFDayOfMonthDate(col 5, field 
DAY_OF_MONTH)(children: CastStringToDate(col 2:string) -> 5:date) -> 6:int) -> 
7:string) -> 8:string) -> 5:bigint) -> 6:bigint) -> 5:bigint) -> 6:bigint)
+                        predicateExpression: SelectColumnIsNotNull(col 
12:bigint)(children: FuncAbsLongToLong(col 11:bigint)(children: 
LongColAddLongScalar(col 10:bigint, val 10)(children: LongColUnaryMinus(col 
9:bigint)(children: CastStringToLong(col 8:string)(children: 
StringGroupColConcatStringScalar(col 7:string, val 0)(children: 
CastLongToString(col 6:int)(children: VectorUDFDayOfMonthDate(col 5, field 
DAY_OF_MONTH)(children: CastStringToDate(col 2:string) -> 5:date) -> 6:int) -> 
7:string) -> 8:string) -> 9:bigint) -> 10:bigint) -> 11:bigint) -> 12:bigint)
                     predicate: abs(((- UDFToLong(concat(CAST( day(CAST( ds AS 
DATE)) AS STRING), '0'))) + 10)) is not null (type: boolean)
                     Statistics: Num rows: 2000 Data size: 21248 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -1411,8 +1411,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [6]
-                          selectExpressions: FuncAbsLongToLong(col 
5:bigint)(children: LongColAddLongScalar(col 6:bigint, val 10)(children: 
LongColUnaryMinus(col 5:bigint)(children: CastStringToLong(col 
8:string)(children: StringGroupColConcatStringScalar(col 7:string, val 
0)(children: CastLongToString(col 6:int)(children: VectorUDFDayOfMonthDate(col 
5, field DAY_OF_MONTH)(children: CastStringToDate(col 2:string) -> 5:date) -> 
6:int) -> 7:string) -> 8:string) -> 5:bigint) -> 6:bigint) -> 5:bigint) -> 
6:bigint
+                          projectedOutputColumnNums: [20]
+                          selectExpressions: FuncAbsLongToLong(col 
19:bigint)(children: LongColAddLongScalar(col 18:bigint, val 10)(children: 
LongColUnaryMinus(col 17:bigint)(children: CastStringToLong(col 
16:string)(children: StringGroupColConcatStringScalar(col 15:string, val 
0)(children: CastLongToString(col 14:int)(children: VectorUDFDayOfMonthDate(col 
13, field DAY_OF_MONTH)(children: CastStringToDate(col 2:string) -> 13:date) -> 
14:int) -> 15:string) -> 16:string) -> 17:bigint) -> 18:bigint) -> 19:bigint) 
-> 20:bigint
                       Statistics: Num rows: 2000 Data size: 21248 Basic stats: 
COMPLETE Column stats: NONE
                       Reduce Output Operator
                         key expressions: _col0 (type: bigint)
@@ -1420,7 +1420,7 @@ STAGE PLANS:
                         Map-reduce partition columns: _col0 (type: bigint)
                         Reduce Sink Vectorization:
                             className: VectorReduceSinkLongOperator
-                            keyColumns: 6:bigint
+                            keyColumns: 20:bigint
                             native: true
                             nativeConditionsMet: 
hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine 
spark IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS 
true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true
                         Statistics: Num rows: 2000 Data size: 21248 Basic 
stats: COMPLETE Column stats: NONE
@@ -1440,7 +1440,7 @@ STAGE PLANS:
                     dataColumns: key:string, value:string
                     partitionColumnCount: 2
                     partitionColumns: ds:string, hr:string
-                    scratchColumnTypeNames: [bigint, bigint, string, string]
+                    scratchColumnTypeNames: [bigint, bigint, string, string, 
bigint, bigint, bigint, bigint, bigint, bigint, string, string, bigint, bigint, 
bigint, bigint]
         Map 4 
             Map Operator Tree:
                 TableScan
@@ -1454,7 +1454,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: FilterExprAndExpr(children: 
FilterStringGroupColEqualStringScalar(col 1:string, val 2008-04-08), 
SelectColumnIsNotNull(col 4:bigint)(children: FuncAbsLongToLong(col 
3:bigint)(children: LongColAddLongScalar(col 4:bigint, val 10)(children: 
LongColUnaryMinus(col 3:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 3:bigint) -> 4:bigint) -> 3:bigint) -> 
4:bigint))
+                        predicateExpression: FilterExprAndExpr(children: 
FilterStringGroupColEqualStringScalar(col 1:string, val 2008-04-08), 
SelectColumnIsNotNull(col 10:bigint)(children: FuncAbsLongToLong(col 
9:bigint)(children: LongColAddLongScalar(col 8:bigint, val 10)(children: 
LongColUnaryMinus(col 7:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 7:bigint) -> 8:bigint) -> 9:bigint) -> 
10:bigint))
                     predicate: ((date = '2008-04-08') and abs(((- 
UDFToLong(concat(CAST( day(CAST( ds AS DATE)) AS STRING), '0'))) + 10)) is not 
null) (type: boolean)
                     Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -1463,8 +1463,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [4]
-                          selectExpressions: FuncAbsLongToLong(col 
3:bigint)(children: LongColAddLongScalar(col 4:bigint, val 10)(children: 
LongColUnaryMinus(col 3:bigint)(children: CastStringToLong(col 
6:string)(children: StringGroupColConcatStringScalar(col 5:string, val 
0)(children: CastLongToString(col 4:int)(children: VectorUDFDayOfMonthDate(col 
3, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 3:date) -> 
4:int) -> 5:string) -> 6:string) -> 3:bigint) -> 4:bigint) -> 3:bigint) -> 
4:bigint
+                          projectedOutputColumnNums: [18]
+                          selectExpressions: FuncAbsLongToLong(col 
17:bigint)(children: LongColAddLongScalar(col 16:bigint, val 10)(children: 
LongColUnaryMinus(col 15:bigint)(children: CastStringToLong(col 
14:string)(children: StringGroupColConcatStringScalar(col 13:string, val 
0)(children: CastLongToString(col 12:int)(children: VectorUDFDayOfMonthDate(col 
11, field DAY_OF_MONTH)(children: CastStringToDate(col 0:string) -> 11:date) -> 
12:int) -> 13:string) -> 14:string) -> 15:bigint) -> 16:bigint) -> 17:bigint) 
-> 18:bigint
                       Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
                       Reduce Output Operator
                         key expressions: _col0 (type: bigint)
@@ -1472,7 +1472,7 @@ STAGE PLANS:
                         Map-reduce partition columns: _col0 (type: bigint)
                         Reduce Sink Vectorization:
                             className: VectorReduceSinkLongOperator
-                            keyColumns: 4:bigint
+                            keyColumns: 18:bigint
                             native: true
                             nativeConditionsMet: 
hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine 
spark IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS 
true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true
                         Statistics: Num rows: 1 Data size: 188 Basic stats: 
COMPLETE Column stats: NONE
@@ -1491,7 +1491,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: ds:string, date:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [bigint, bigint, string, string]
+                    scratchColumnTypeNames: [bigint, bigint, string, string, 
bigint, bigint, bigint, bigint, bigint, bigint, string, string, bigint, bigint, 
bigint, bigint]
         Reducer 2 
             Reduce Vectorization:
                 enabled: true
@@ -3690,8 +3690,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [3]
-                          selectExpressions: CastLongToDouble(col 
4:int)(children: CastDoubleToLong(col 3:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 3:double) -> 4:int) -> 
3:double
+                          projectedOutputColumnNums: [6]
+                          selectExpressions: CastLongToDouble(col 
5:int)(children: CastDoubleToLong(col 4:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 4:double) -> 5:int) -> 
6:double
                       Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                       Select Operator
                         expressions: _col0 (type: double)
@@ -3699,13 +3699,13 @@ STAGE PLANS:
                         Select Vectorization:
                             className: VectorSelectOperator
                             native: true
-                            projectedOutputColumnNums: [3]
+                            projectedOutputColumnNums: [6]
                         Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                         Group By Operator
                           Group By Vectorization:
                               className: VectorGroupByOperator
                               groupByMode: HASH
-                              keyExpressions: col 3:double
+                              keyExpressions: col 6:double
                               native: false
                               vectorProcessingMode: HASH
                               projectedOutputColumnNums: []
@@ -3731,7 +3731,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:double, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, bigint]
+                    scratchColumnTypeNames: [double, double, bigint, double]
 
   Stage: Stage-1
     Spark
@@ -3807,8 +3807,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [3]
-                          selectExpressions: CastLongToDouble(col 
4:int)(children: CastDoubleToLong(col 3:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 3:double) -> 4:int) -> 
3:double
+                          projectedOutputColumnNums: [6]
+                          selectExpressions: CastLongToDouble(col 
5:int)(children: CastDoubleToLong(col 4:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 4:double) -> 5:int) -> 
6:double
                       Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                       Reduce Output Operator
                         key expressions: _col0 (type: double)
@@ -3816,7 +3816,7 @@ STAGE PLANS:
                         Map-reduce partition columns: _col0 (type: double)
                         Reduce Sink Vectorization:
                             className: VectorReduceSinkMultiKeyOperator
-                            keyColumns: 3:double
+                            keyColumns: 6:double
                             native: true
                             nativeConditionsMet: 
hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine 
spark IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS 
true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true
                         Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
@@ -3835,7 +3835,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:double, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, bigint]
+                    scratchColumnTypeNames: [double, double, bigint, double]
         Reducer 2 
             Reduce Vectorization:
                 enabled: true
@@ -4309,8 +4309,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [3]
-                          selectExpressions: CastLongToDouble(col 
4:int)(children: CastDoubleToLong(col 3:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 3:double) -> 4:int) -> 
3:double
+                          projectedOutputColumnNums: [6]
+                          selectExpressions: CastLongToDouble(col 
5:int)(children: CastDoubleToLong(col 4:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 4:double) -> 5:int) -> 
6:double
                       Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                       Reduce Output Operator
                         key expressions: _col0 (type: double)
@@ -4318,7 +4318,7 @@ STAGE PLANS:
                         Map-reduce partition columns: _col0 (type: double)
                         Reduce Sink Vectorization:
                             className: VectorReduceSinkMultiKeyOperator
-                            keyColumns: 3:double
+                            keyColumns: 6:double
                             native: true
                             nativeConditionsMet: 
hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine 
spark IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS 
true, BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true
                         Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
@@ -4337,7 +4337,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:double, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, bigint]
+                    scratchColumnTypeNames: [double, double, bigint, double]
         Reducer 2 
             Reduce Vectorization:
                 enabled: true
@@ -6628,7 +6628,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 3:double))
+                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 4:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 4:double))
                     predicate: ((UDFToDouble(hour) = 11.0D) and 
(UDFToDouble(hr) = 11.0D)) (type: boolean)
                     Statistics: Num rows: 1 Data size: 172 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -6677,7 +6677,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:string, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double]
+                    scratchColumnTypeNames: [double, double]
 
   Stage: Stage-1
     Spark
@@ -6795,7 +6795,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 3:double))
+                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 4:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 4:double))
                     predicate: ((UDFToDouble(hour) = 11.0D) and 
(UDFToDouble(hr) = 11.0D)) (type: boolean)
                     Statistics: Num rows: 1 Data size: 172 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -6831,7 +6831,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:string, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double]
+                    scratchColumnTypeNames: [double, double]
         Reducer 2 
             Reduce Vectorization:
                 enabled: true
@@ -10607,8 +10607,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [3]
-                          selectExpressions: CastLongToDouble(col 
4:int)(children: CastDoubleToLong(col 3:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 3:double) -> 4:int) -> 
3:double
+                          projectedOutputColumnNums: [6]
+                          selectExpressions: CastLongToDouble(col 
5:int)(children: CastDoubleToLong(col 4:double)(children: 
DoubleColDivideDoubleScalar(col 0:double, val 2.0) -> 4:double) -> 5:int) -> 
6:double
                       Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                       Spark HashTable Sink Operator
                         Spark Hash Table Sink Vectorization:
@@ -10623,13 +10623,13 @@ STAGE PLANS:
                         Select Vectorization:
                             className: VectorSelectOperator
                             native: true
-                            projectedOutputColumnNums: [3]
+                            projectedOutputColumnNums: [6]
                         Statistics: Num rows: 1 Data size: 94 Basic stats: 
COMPLETE Column stats: NONE
                         Group By Operator
                           Group By Vectorization:
                               className: VectorGroupByOperator
                               groupByMode: HASH
-                              keyExpressions: col 3:double
+                              keyExpressions: col 6:double
                               native: false
                               vectorProcessingMode: HASH
                               projectedOutputColumnNums: []
@@ -10655,7 +10655,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:double, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, bigint]
+                    scratchColumnTypeNames: [double, double, bigint, double]
             Local Work:
               Map Reduce Local Work
 
@@ -12092,7 +12092,7 @@ STAGE PLANS:
                     Filter Vectorization:
                         className: VectorFilterOperator
                         native: true
-                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 3:double))
+                        predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColEqualDoubleScalar(col 3:double, val 11.0)(children: 
CastStringToDouble(col 1:string) -> 3:double), 
FilterDoubleColEqualDoubleScalar(col 4:double, val 11.0)(children: 
CastStringToDouble(col 0:string) -> 4:double))
                     predicate: ((UDFToDouble(hour) = 11.0D) and 
(UDFToDouble(hr) = 11.0D)) (type: boolean)
                     Statistics: Num rows: 1 Data size: 172 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
@@ -12148,7 +12148,7 @@ STAGE PLANS:
                     includeColumns: [0, 1]
                     dataColumns: hr:string, hour:string
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double]
+                    scratchColumnTypeNames: [double, double]
             Local Work:
               Map Reduce Local Work
 

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.out 
b/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.out
index 8673f37..846be10 100644
--- a/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.out
+++ b/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.out
@@ -208,8 +208,8 @@ STAGE PLANS:
                   Select Vectorization:
                       className: VectorSelectOperator
                       native: true
-                      projectedOutputColumnNums: [0, 8, 7, 11]
-                      selectExpressions: DoubleColDivideLongColumn(col 
7:double, col 2:bigint)(children: CastLongToDouble(col 1:bigint) -> 7:double) 
-> 8:double, DoubleColDivideLongColumn(col 3:double, col 4:bigint) -> 7:double, 
CastDecimalToDecimal(col 10:decimal(32,20))(children: 
DecimalColDivideDecimalColumn(col 5:decimal(12,0), col 
9:decimal(19,0))(children: CastLongToDecimal(col 6:bigint) -> 9:decimal(19,0)) 
-> 10:decimal(32,20)) -> 11:decimal(6,4)
+                      projectedOutputColumnNums: [0, 8, 9, 12]
+                      selectExpressions: DoubleColDivideLongColumn(col 
7:double, col 2:bigint)(children: CastLongToDouble(col 1:bigint) -> 7:double) 
-> 8:double, DoubleColDivideLongColumn(col 3:double, col 4:bigint) -> 9:double, 
CastDecimalToDecimal(col 11:decimal(32,20))(children: 
DecimalColDivideDecimalColumn(col 5:decimal(12,0), col 
10:decimal(19,0))(children: CastLongToDecimal(col 6:bigint) -> 
10:decimal(19,0)) -> 11:decimal(32,20)) -> 12:decimal(6,4)
                   Statistics: Num rows: 524 Data size: 155436 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator
                     key expressions: _col0 (type: int)

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out 
b/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
index 5c0ead3..0d8f00e 100644
--- a/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
+++ b/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
@@ -262,13 +262,13 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [3, 1, 2, 5, 8, 6, 10]
-                        selectExpressions: CastDecimalToDouble(col 
1:decimal(20,10)) -> 5:double, DoubleColMultiplyDoubleColumn(col 6:double, col 
7:double)(children: CastDecimalToDouble(col 1:decimal(20,10)) -> 6:double, 
CastDecimalToDouble(col 1:decimal(20,10)) -> 7:double) -> 8:double, 
CastDecimalToDouble(col 2:decimal(23,14)) -> 6:double, 
DoubleColMultiplyDoubleColumn(col 7:double, col 9:double)(children: 
CastDecimalToDouble(col 2:decimal(23,14)) -> 7:double, CastDecimalToDouble(col 
2:decimal(23,14)) -> 9:double) -> 10:double
+                        projectedOutputColumnNums: [3, 1, 2, 5, 8, 9, 12]
+                        selectExpressions: CastDecimalToDouble(col 
1:decimal(20,10)) -> 5:double, DoubleColMultiplyDoubleColumn(col 6:double, col 
7:double)(children: CastDecimalToDouble(col 1:decimal(20,10)) -> 6:double, 
CastDecimalToDouble(col 1:decimal(20,10)) -> 7:double) -> 8:double, 
CastDecimalToDouble(col 2:decimal(23,14)) -> 9:double, 
DoubleColMultiplyDoubleColumn(col 10:double, col 11:double)(children: 
CastDecimalToDouble(col 2:decimal(23,14)) -> 10:double, CastDecimalToDouble(col 
2:decimal(23,14)) -> 11:double) -> 12:double
                     Statistics: Num rows: 12289 Data size: 2165060 Basic 
stats: COMPLETE Column stats: NONE
                     Group By Operator
                       aggregations: count(_col1), max(_col1), min(_col1), 
sum(_col1), sum(_col4), sum(_col3), count(_col2), max(_col2), min(_col2), 
sum(_col2), sum(_col6), sum(_col5), count()
                       Group By Vectorization:
-                          aggregators: VectorUDAFCount(col 1:decimal(20,10)) 
-> bigint, VectorUDAFMaxDecimal(col 1:decimal(20,10)) -> decimal(20,10), 
VectorUDAFMinDecimal(col 1:decimal(20,10)) -> decimal(20,10), 
VectorUDAFSumDecimal(col 1:decimal(20,10)) -> decimal(30,10), 
VectorUDAFSumDouble(col 8:double) -> double, VectorUDAFSumDouble(col 5:double) 
-> double, VectorUDAFCount(col 2:decimal(23,14)) -> bigint, 
VectorUDAFMaxDecimal(col 2:decimal(23,14)) -> decimal(23,14), 
VectorUDAFMinDecimal(col 2:decimal(23,14)) -> decimal(23,14), 
VectorUDAFSumDecimal(col 2:decimal(23,14)) -> decimal(33,14), 
VectorUDAFSumDouble(col 10:double) -> double, VectorUDAFSumDouble(col 6:double) 
-> double, VectorUDAFCountStar(*) -> bigint
+                          aggregators: VectorUDAFCount(col 1:decimal(20,10)) 
-> bigint, VectorUDAFMaxDecimal(col 1:decimal(20,10)) -> decimal(20,10), 
VectorUDAFMinDecimal(col 1:decimal(20,10)) -> decimal(20,10), 
VectorUDAFSumDecimal(col 1:decimal(20,10)) -> decimal(30,10), 
VectorUDAFSumDouble(col 8:double) -> double, VectorUDAFSumDouble(col 5:double) 
-> double, VectorUDAFCount(col 2:decimal(23,14)) -> bigint, 
VectorUDAFMaxDecimal(col 2:decimal(23,14)) -> decimal(23,14), 
VectorUDAFMinDecimal(col 2:decimal(23,14)) -> decimal(23,14), 
VectorUDAFSumDecimal(col 2:decimal(23,14)) -> decimal(33,14), 
VectorUDAFSumDouble(col 12:double) -> double, VectorUDAFSumDouble(col 9:double) 
-> double, VectorUDAFCountStar(*) -> bigint
                           className: VectorGroupByOperator
                           groupByMode: HASH
                           keyExpressions: col 3:int
@@ -306,7 +306,7 @@ STAGE PLANS:
                     includeColumns: [1, 2, 3]
                     dataColumns: cdouble:double, cdecimal1:decimal(20,10), 
cdecimal2:decimal(23,14), cint:int
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, double, double, double, 
double, double]
+                    scratchColumnTypeNames: [double, double, double, double, 
double, double, double, double]
         Reducer 2 
             Execution mode: vectorized
             Reduce Vectorization:
@@ -350,8 +350,8 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [0, 1, 2, 3, 4, 16, 17, 18, 
7, 8, 9, 10, 24, 19, 25]
-                        selectExpressions: DecimalColDivideDecimalColumn(col 
14:decimal(24,14), col 15:decimal(19,0))(children: CastDecimalToDecimal(col 
4:decimal(30,10)) -> 14:decimal(24,14), CastLongToDecimal(col 1:bigint) -> 
15:decimal(19,0)) -> 16:decimal(38,28), FuncPowerDoubleToDouble(col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 17:double) -> 18:double) -> 17:double) -> 18:double) -> 17:double, 
FuncPowerDoubleToDouble(col 19:double)(children: DoubleColDivideLongColumn(col 
18:double, col 22:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, 
col 19:double)(children: DoubleColDivideLongColumn(col 18:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 18:double) -> 19:double) -> 18:double, IfEx
 prNullCondExpr(col 20:boolean, null, col 21:bigint)(children: 
LongColEqualLongScalar(col 1:bigint, val 1) -> 20:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 21:bigint) -> 22:bigint) -> 
19:double) -> 18:double, DecimalColDivideDecimalColumn(col 23:decimal(27,18), 
col 15:decimal(19,0))(children: CastDecimalToDecimal(col 10:decimal(33,14)) -> 
23:decimal(27,18), CastLongToDecimal(col 7:bigint) -> 15:decimal(19,0)) -> 
24:decimal(38,29), FuncPowerDoubleToDouble(col 25:double)(children: 
DoubleColDivideLongColumn(col 19:double, col 7:bigint)(children: 
DoubleColSubtractDoubleColumn(col 11:double, col 25:double)(children: 
DoubleColDivideLongColumn(col 19:double, col 7:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) -> 19:double) -> 
25:double) -> 19:double) -> 25:double) -> 19:double, 
FuncPowerDoubleToDouble(col 26:double)(children: DoubleColDivideLongColumn(col 
25:double, col 28:bigint)(children: DoubleColSubtractDoubleColumn(col 
11:double, col 26:d
 ouble)(children: DoubleColDivideLongColumn(col 25:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 25:double) -> 26:double) -> 25:double, IfExprNullCondExpr(col 22:boolean, 
null, col 27:bigint)(children: LongColEqualLongScalar(col 7:bigint, val 1) -> 
22:boolean, LongColSubtractLongScalar(col 7:bigint, val 1) -> 27:bigint) -> 
28:bigint) -> 26:double) -> 25:double
+                        projectedOutputColumnNums: [0, 1, 2, 3, 4, 16, 21, 29, 
7, 8, 9, 10, 32, 37, 45]
+                        selectExpressions: DecimalColDivideDecimalColumn(col 
14:decimal(24,14), col 15:decimal(19,0))(children: CastDecimalToDecimal(col 
4:decimal(30,10)) -> 14:decimal(24,14), CastLongToDecimal(col 1:bigint) -> 
15:decimal(19,0)) -> 16:decimal(38,28), FuncPowerDoubleToDouble(col 
20:double)(children: DoubleColDivideLongColumn(col 19:double, col 
1:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 17:double) -> 18:double) -> 19:double) -> 20:double) -> 21:double, 
FuncPowerDoubleToDouble(col 28:double)(children: DoubleColDivideLongColumn(col 
24:double, col 27:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, 
col 23:double)(children: DoubleColDivideLongColumn(col 22:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 22:double) -> 23:double) -> 24:double, IfEx
 prNullCondExpr(col 25:boolean, null, col 26:bigint)(children: 
LongColEqualLongScalar(col 1:bigint, val 1) -> 25:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 26:bigint) -> 27:bigint) -> 
28:double) -> 29:double, DecimalColDivideDecimalColumn(col 30:decimal(27,18), 
col 31:decimal(19,0))(children: CastDecimalToDecimal(col 10:decimal(33,14)) -> 
30:decimal(27,18), CastLongToDecimal(col 7:bigint) -> 31:decimal(19,0)) -> 
32:decimal(38,29), FuncPowerDoubleToDouble(col 36:double)(children: 
DoubleColDivideLongColumn(col 35:double, col 7:bigint)(children: 
DoubleColSubtractDoubleColumn(col 11:double, col 34:double)(children: 
DoubleColDivideLongColumn(col 33:double, col 7:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) -> 33:double) -> 
34:double) -> 35:double) -> 36:double) -> 37:double, 
FuncPowerDoubleToDouble(col 44:double)(children: DoubleColDivideLongColumn(col 
40:double, col 43:bigint)(children: DoubleColSubtractDoubleColumn(col 
11:double, col 39:d
 ouble)(children: DoubleColDivideLongColumn(col 38:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 38:double) -> 39:double) -> 40:double, IfExprNullCondExpr(col 41:boolean, 
null, col 42:bigint)(children: LongColEqualLongScalar(col 7:bigint, val 1) -> 
41:boolean, LongColSubtractLongScalar(col 7:bigint, val 1) -> 42:bigint) -> 
43:bigint) -> 44:double) -> 45:double
                     Statistics: Num rows: 2048 Data size: 360813 Basic stats: 
COMPLETE Column stats: NONE
                     File Output Operator
                       compressed: false
@@ -679,13 +679,13 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [3, 1, 2, 6, 9, 7, 12]
-                        selectExpressions: CastDecimalToDouble(col 
5:decimal(11,5))(children: ConvertDecimal64ToDecimal(col 
1:decimal(11,5)/DECIMAL_64) -> 5:decimal(11,5)) -> 6:double, 
DoubleColMultiplyDoubleColumn(col 7:double, col 8:double)(children: 
CastDecimalToDouble(col 5:decimal(11,5))(children: 
ConvertDecimal64ToDecimal(col 1:decimal(11,5)/DECIMAL_64) -> 5:decimal(11,5)) 
-> 7:double, CastDecimalToDouble(col 5:decimal(11,5))(children: 
ConvertDecimal64ToDecimal(col 1:decimal(11,5)/DECIMAL_64) -> 5:decimal(11,5)) 
-> 8:double) -> 9:double, CastDecimalToDouble(col 10:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:decimal(16,0)/DECIMAL_64) -> 10:decimal(16,0)) 
-> 7:double, DoubleColMultiplyDoubleColumn(col 8:double, col 
11:double)(children: CastDecimalToDouble(col 10:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:decimal(16,0)/DECIMAL_64) -> 10:decimal(16,0)) 
-> 8:double, CastDecimalToDouble(col 10:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:decima
 l(16,0)/DECIMAL_64) -> 10:decimal(16,0)) -> 11:double) -> 12:double
+                        projectedOutputColumnNums: [3, 1, 2, 6, 11, 13, 18]
+                        selectExpressions: CastDecimalToDouble(col 
5:decimal(11,5))(children: ConvertDecimal64ToDecimal(col 
1:decimal(11,5)/DECIMAL_64) -> 5:decimal(11,5)) -> 6:double, 
DoubleColMultiplyDoubleColumn(col 8:double, col 10:double)(children: 
CastDecimalToDouble(col 7:decimal(11,5))(children: 
ConvertDecimal64ToDecimal(col 1:decimal(11,5)/DECIMAL_64) -> 7:decimal(11,5)) 
-> 8:double, CastDecimalToDouble(col 9:decimal(11,5))(children: 
ConvertDecimal64ToDecimal(col 1:decimal(11,5)/DECIMAL_64) -> 9:decimal(11,5)) 
-> 10:double) -> 11:double, CastDecimalToDouble(col 12:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:decimal(16,0)/DECIMAL_64) -> 12:decimal(16,0)) 
-> 13:double, DoubleColMultiplyDoubleColumn(col 15:double, col 
17:double)(children: CastDecimalToDouble(col 14:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:decimal(16,0)/DECIMAL_64) -> 14:decimal(16,0)) 
-> 15:double, CastDecimalToDouble(col 16:decimal(16,0))(children: 
ConvertDecimal64ToDecimal(col 2:
 decimal(16,0)/DECIMAL_64) -> 16:decimal(16,0)) -> 17:double) -> 18:double
                     Statistics: Num rows: 12289 Data size: 346462 Basic stats: 
COMPLETE Column stats: NONE
                     Group By Operator
                       aggregations: count(_col1), max(_col1), min(_col1), 
sum(_col1), sum(_col4), sum(_col3), count(_col2), max(_col2), min(_col2), 
sum(_col2), sum(_col6), sum(_col5), count()
                       Group By Vectorization:
-                          aggregators: VectorUDAFCount(col 
1:decimal(11,5)/DECIMAL_64) -> bigint, VectorUDAFMaxDecimal64(col 
1:decimal(11,5)/DECIMAL_64) -> decimal(11,5)/DECIMAL_64, 
VectorUDAFMinDecimal64(col 1:decimal(11,5)/DECIMAL_64) -> 
decimal(11,5)/DECIMAL_64, VectorUDAFSumDecimal64ToDecimal(col 
1:decimal(11,5)/DECIMAL_64) -> decimal(21,5), VectorUDAFSumDouble(col 9:double) 
-> double, VectorUDAFSumDouble(col 6:double) -> double, VectorUDAFCount(col 
2:decimal(16,0)/DECIMAL_64) -> bigint, VectorUDAFMaxDecimal64(col 
2:decimal(16,0)/DECIMAL_64) -> decimal(16,0)/DECIMAL_64, 
VectorUDAFMinDecimal64(col 2:decimal(16,0)/DECIMAL_64) -> 
decimal(16,0)/DECIMAL_64, VectorUDAFSumDecimal64ToDecimal(col 
2:decimal(16,0)/DECIMAL_64) -> decimal(26,0), VectorUDAFSumDouble(col 
12:double) -> double, VectorUDAFSumDouble(col 7:double) -> double, 
VectorUDAFCountStar(*) -> bigint
+                          aggregators: VectorUDAFCount(col 
1:decimal(11,5)/DECIMAL_64) -> bigint, VectorUDAFMaxDecimal64(col 
1:decimal(11,5)/DECIMAL_64) -> decimal(11,5)/DECIMAL_64, 
VectorUDAFMinDecimal64(col 1:decimal(11,5)/DECIMAL_64) -> 
decimal(11,5)/DECIMAL_64, VectorUDAFSumDecimal64ToDecimal(col 
1:decimal(11,5)/DECIMAL_64) -> decimal(21,5), VectorUDAFSumDouble(col 
11:double) -> double, VectorUDAFSumDouble(col 6:double) -> double, 
VectorUDAFCount(col 2:decimal(16,0)/DECIMAL_64) -> bigint, 
VectorUDAFMaxDecimal64(col 2:decimal(16,0)/DECIMAL_64) -> 
decimal(16,0)/DECIMAL_64, VectorUDAFMinDecimal64(col 
2:decimal(16,0)/DECIMAL_64) -> decimal(16,0)/DECIMAL_64, 
VectorUDAFSumDecimal64ToDecimal(col 2:decimal(16,0)/DECIMAL_64) -> 
decimal(26,0), VectorUDAFSumDouble(col 18:double) -> double, 
VectorUDAFSumDouble(col 13:double) -> double, VectorUDAFCountStar(*) -> bigint
                           className: VectorGroupByOperator
                           groupByMode: HASH
                           keyExpressions: col 3:int
@@ -723,7 +723,7 @@ STAGE PLANS:
                     includeColumns: [1, 2, 3]
                     dataColumns: cdouble:double, 
cdecimal1:decimal(11,5)/DECIMAL_64, cdecimal2:decimal(16,0)/DECIMAL_64, cint:int
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [decimal(11,5), double, double, 
double, double, decimal(16,0), double, double]
+                    scratchColumnTypeNames: [decimal(11,5), double, 
decimal(11,5), double, decimal(11,5), double, double, decimal(16,0), double, 
decimal(16,0), double, decimal(16,0), double, double]
         Reducer 2 
             Execution mode: vectorized
             Reduce Vectorization:
@@ -767,8 +767,8 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [0, 1, 2, 3, 4, 16, 17, 18, 
7, 8, 9, 10, 23, 19, 25]
-                        selectExpressions: DecimalColDivideDecimalColumn(col 
14:decimal(15,9), col 15:decimal(19,0))(children: CastDecimalToDecimal(col 
4:decimal(21,5)) -> 14:decimal(15,9), CastLongToDecimal(col 1:bigint) -> 
15:decimal(19,0)) -> 16:decimal(35,29), FuncPowerDoubleToDouble(col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 17:double) -> 18:double) -> 17:double) -> 18:double) -> 17:double, 
FuncPowerDoubleToDouble(col 19:double)(children: DoubleColDivideLongColumn(col 
18:double, col 22:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, 
col 19:double)(children: DoubleColDivideLongColumn(col 18:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 18:double) -> 19:double) -> 18:double, IfExprN
 ullCondExpr(col 20:boolean, null, col 21:bigint)(children: 
LongColEqualLongScalar(col 1:bigint, val 1) -> 20:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 21:bigint) -> 22:bigint) -> 
19:double) -> 18:double, CastDecimalToDecimal(col 24:decimal(38,22))(children: 
DecimalColDivideDecimalColumn(col 23:decimal(20,4), col 
15:decimal(19,0))(children: CastDecimalToDecimal(col 10:decimal(26,0)) -> 
23:decimal(20,4), CastLongToDecimal(col 7:bigint) -> 15:decimal(19,0)) -> 
24:decimal(38,22)) -> 23:decimal(20,4), FuncPowerDoubleToDouble(col 
25:double)(children: DoubleColDivideLongColumn(col 19:double, col 
7:bigint)(children: DoubleColSubtractDoubleColumn(col 11:double, col 
25:double)(children: DoubleColDivideLongColumn(col 19:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 19:double) -> 25:double) -> 19:double) -> 25:double) -> 19:double, 
FuncPowerDoubleToDouble(col 26:double)(children: DoubleColDivideLongColumn(col 
25:double, col 28:bi
 gint)(children: DoubleColSubtractDoubleColumn(col 11:double, col 
26:double)(children: DoubleColDivideLongColumn(col 25:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 25:double) -> 26:double) -> 25:double, IfExprNullCondExpr(col 22:boolean, 
null, col 27:bigint)(children: LongColEqualLongScalar(col 7:bigint, val 1) -> 
22:boolean, LongColSubtractLongScalar(col 7:bigint, val 1) -> 27:bigint) -> 
28:bigint) -> 26:double) -> 25:double
+                        projectedOutputColumnNums: [0, 1, 2, 3, 4, 16, 21, 29, 
7, 8, 9, 10, 33, 38, 46]
+                        selectExpressions: DecimalColDivideDecimalColumn(col 
14:decimal(15,9), col 15:decimal(19,0))(children: CastDecimalToDecimal(col 
4:decimal(21,5)) -> 14:decimal(15,9), CastLongToDecimal(col 1:bigint) -> 
15:decimal(19,0)) -> 16:decimal(35,29), FuncPowerDoubleToDouble(col 
20:double)(children: DoubleColDivideLongColumn(col 19:double, col 
1:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, col 
18:double)(children: DoubleColDivideLongColumn(col 17:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 17:double) -> 18:double) -> 19:double) -> 20:double) -> 21:double, 
FuncPowerDoubleToDouble(col 28:double)(children: DoubleColDivideLongColumn(col 
24:double, col 27:bigint)(children: DoubleColSubtractDoubleColumn(col 5:double, 
col 23:double)(children: DoubleColDivideLongColumn(col 22:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 6:double, col 6:double) 
-> 22:double) -> 23:double) -> 24:double, IfExprN
 ullCondExpr(col 25:boolean, null, col 26:bigint)(children: 
LongColEqualLongScalar(col 1:bigint, val 1) -> 25:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 26:bigint) -> 27:bigint) -> 
28:double) -> 29:double, CastDecimalToDecimal(col 32:decimal(38,22))(children: 
DecimalColDivideDecimalColumn(col 30:decimal(20,4), col 
31:decimal(19,0))(children: CastDecimalToDecimal(col 10:decimal(26,0)) -> 
30:decimal(20,4), CastLongToDecimal(col 7:bigint) -> 31:decimal(19,0)) -> 
32:decimal(38,22)) -> 33:decimal(20,4), FuncPowerDoubleToDouble(col 
37:double)(children: DoubleColDivideLongColumn(col 36:double, col 
7:bigint)(children: DoubleColSubtractDoubleColumn(col 11:double, col 
35:double)(children: DoubleColDivideLongColumn(col 34:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 34:double) -> 35:double) -> 36:double) -> 37:double) -> 38:double, 
FuncPowerDoubleToDouble(col 45:double)(children: DoubleColDivideLongColumn(col 
41:double, col 44:bi
 gint)(children: DoubleColSubtractDoubleColumn(col 11:double, col 
40:double)(children: DoubleColDivideLongColumn(col 39:double, col 
7:bigint)(children: DoubleColMultiplyDoubleColumn(col 12:double, col 12:double) 
-> 39:double) -> 40:double) -> 41:double, IfExprNullCondExpr(col 42:boolean, 
null, col 43:bigint)(children: LongColEqualLongScalar(col 7:bigint, val 1) -> 
42:boolean, LongColSubtractLongScalar(col 7:bigint, val 1) -> 43:bigint) -> 
44:bigint) -> 45:double) -> 46:double
                     Statistics: Num rows: 2048 Data size: 57738 Basic stats: 
COMPLETE Column stats: NONE
                     File Output Operator
                       compressed: false

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vector_elt.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/vector_elt.q.out 
b/ql/src/test/results/clientpositive/spark/vector_elt.q.out
index 554a2c5..09b6189 100644
--- a/ql/src/test/results/clientpositive/spark/vector_elt.q.out
+++ b/ql/src/test/results/clientpositive/spark/vector_elt.q.out
@@ -44,8 +44,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [14, 6, 2, 17]
-                          selectExpressions: LongColAddLongScalar(col 13:int, 
val 1)(children: LongColModuloLongScalar(col 0:int, val 2)(children: col 
0:tinyint) -> 13:int) -> 14:int, VectorElt(columns [15, 6, 16])(children: 
LongColAddLongScalar(col 13:int, val 1)(children: LongColModuloLongScalar(col 
0:int, val 2)(children: col 0:tinyint) -> 13:int) -> 15:int, col 6:string, 
CastLongToString(col 2:int) -> 16:string) -> 17:string
+                          projectedOutputColumnNums: [14, 6, 2, 18]
+                          selectExpressions: LongColAddLongScalar(col 13:int, 
val 1)(children: LongColModuloLongScalar(col 0:int, val 2)(children: col 
0:tinyint) -> 13:int) -> 14:int, VectorElt(columns [16, 6, 17])(children: 
LongColAddLongScalar(col 15:int, val 1)(children: LongColModuloLongScalar(col 
0:int, val 2)(children: col 0:tinyint) -> 15:int) -> 16:int, col 6:string, 
CastLongToString(col 2:int) -> 17:string) -> 18:string
                       Statistics: Num rows: 4096 Data size: 969331 Basic 
stats: COMPLETE Column stats: NONE
                       Limit
                         Number of rows: 10

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vector_string_concat.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/vector_string_concat.q.out 
b/ql/src/test/results/clientpositive/spark/vector_string_concat.q.out
index 426b81a..584ef3a 100644
--- a/ql/src/test/results/clientpositive/spark/vector_string_concat.q.out
+++ b/ql/src/test/results/clientpositive/spark/vector_string_concat.q.out
@@ -135,8 +135,8 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [7, 13, 12]
-                        selectExpressions: 
StringGroupColConcatStringScalar(col 12:string, val       )(children: 
StringScalarConcatStringGroupCol(val       , col 7:string) -> 12:string) -> 
13:string, StringGroupColConcatStringScalar(col 14:string, val |)(children: 
StringScalarConcatStringGroupCol(val |, col 12:string)(children: 
StringRTrim(col 14:string)(children: StringGroupColConcatStringScalar(col 
12:string, val       )(children: StringScalarConcatStringGroupCol(val       , 
col 7:string) -> 12:string) -> 14:string) -> 12:string) -> 14:string) -> 
12:string
+                        projectedOutputColumnNums: [7, 13, 18]
+                        selectExpressions: 
StringGroupColConcatStringScalar(col 12:string, val       )(children: 
StringScalarConcatStringGroupCol(val       , col 7:string) -> 12:string) -> 
13:string, StringGroupColConcatStringScalar(col 17:string, val |)(children: 
StringScalarConcatStringGroupCol(val |, col 16:string)(children: 
StringRTrim(col 15:string)(children: StringGroupColConcatStringScalar(col 
14:string, val       )(children: StringScalarConcatStringGroupCol(val       , 
col 7:string) -> 14:string) -> 15:string) -> 16:string) -> 17:string) -> 
18:string
                     Statistics: Num rows: 1049 Data size: 311170 Basic stats: 
COMPLETE Column stats: NONE
                     Limit
                       Number of rows: 20
@@ -355,14 +355,14 @@ STAGE PLANS:
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [20]
-                        selectExpressions: StringGroupConcatColCol(col 
18:string, col 19:string)(children: StringGroupColConcatStringScalar(col 
19:string, val -)(children: StringScalarConcatStringGroupCol(val Quarter , col 
18:string)(children: CastLongToString(col 14:int)(children: 
CastDoubleToLong(col 16:double)(children: DoubleColAddDoubleScalar(col 
17:double, val 1.0)(children: DoubleColDivideDoubleScalar(col 16:double, val 
3.0)(children: CastLongToDouble(col 15:int)(children: 
LongColSubtractLongScalar(col 14:int, val 1)(children: VectorUDFMonthDate(col 
12, field MONTH) -> 14:int) -> 15:int) -> 16:double) -> 17:double) -> 
16:double) -> 14:int) -> 18:string) -> 19:string) -> 18:string, 
CastLongToString(col 14:int)(children: VectorUDFYearDate(col 12, field YEAR) -> 
14:int) -> 19:string) -> 20:string
+                        projectedOutputColumnNums: [25]
+                        selectExpressions: StringGroupConcatColCol(col 
22:string, col 24:string)(children: StringGroupColConcatStringScalar(col 
21:string, val -)(children: StringScalarConcatStringGroupCol(val Quarter , col 
20:string)(children: CastLongToString(col 19:int)(children: 
CastDoubleToLong(col 18:double)(children: DoubleColAddDoubleScalar(col 
17:double, val 1.0)(children: DoubleColDivideDoubleScalar(col 16:double, val 
3.0)(children: CastLongToDouble(col 15:int)(children: 
LongColSubtractLongScalar(col 14:int, val 1)(children: VectorUDFMonthDate(col 
12, field MONTH) -> 14:int) -> 15:int) -> 16:double) -> 17:double) -> 
18:double) -> 19:int) -> 20:string) -> 21:string) -> 22:string, 
CastLongToString(col 23:int)(children: VectorUDFYearDate(col 12, field YEAR) -> 
23:int) -> 24:string) -> 25:string
                     Statistics: Num rows: 2000 Data size: 918712 Basic stats: 
COMPLETE Column stats: NONE
                     Group By Operator
                       Group By Vectorization:
                           className: VectorGroupByOperator
                           groupByMode: HASH
-                          keyExpressions: col 20:string
+                          keyExpressions: col 25:string
                           native: false
                           vectorProcessingMode: HASH
                           projectedOutputColumnNums: []

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vectorization_0.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/vectorization_0.q.out 
b/ql/src/test/results/clientpositive/spark/vectorization_0.q.out
index c4626e4..ac8675c 100644
--- a/ql/src/test/results/clientpositive/spark/vectorization_0.q.out
+++ b/ql/src/test/results/clientpositive/spark/vectorization_0.q.out
@@ -1639,13 +1639,13 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [3, 4, 0, 14, 17]
-                          selectExpressions: CastLongToDouble(col 3:bigint) -> 
14:double, DoubleColMultiplyDoubleColumn(col 15:double, col 
16:double)(children: CastLongToDouble(col 3:bigint) -> 15:double, 
CastLongToDouble(col 3:bigint) -> 16:double) -> 17:double
+                          projectedOutputColumnNums: [3, 4, 0, 15, 18]
+                          selectExpressions: CastLongToDouble(col 3:bigint) -> 
15:double, DoubleColMultiplyDoubleColumn(col 16:double, col 
17:double)(children: CastLongToDouble(col 3:bigint) -> 16:double, 
CastLongToDouble(col 3:bigint) -> 17:double) -> 18:double
                       Statistics: Num rows: 12288 Data size: 2907994 Basic 
stats: COMPLETE Column stats: NONE
                       Group By Operator
                         aggregations: sum(_col0), count(_col0), sum(_col4), 
sum(_col3), count(), sum(_col1), min(_col2)
                         Group By Vectorization:
-                            aggregators: VectorUDAFSumLong(col 3:bigint) -> 
bigint, VectorUDAFCount(col 3:bigint) -> bigint, VectorUDAFSumDouble(col 
17:double) -> double, VectorUDAFSumDouble(col 14:double) -> double, 
VectorUDAFCountStar(*) -> bigint, VectorUDAFSumDouble(col 4:float) -> double, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
+                            aggregators: VectorUDAFSumLong(col 3:bigint) -> 
bigint, VectorUDAFCount(col 3:bigint) -> bigint, VectorUDAFSumDouble(col 
18:double) -> double, VectorUDAFSumDouble(col 15:double) -> double, 
VectorUDAFCountStar(*) -> bigint, VectorUDAFSumDouble(col 4:float) -> double, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
                             className: VectorGroupByOperator
                             groupByMode: HASH
                             native: false
@@ -1678,7 +1678,7 @@ STAGE PLANS:
                     includeColumns: [0, 1, 2, 3, 4, 5, 7, 11]
                     dataColumns: ctinyint:tinyint, csmallint:smallint, 
cint:int, cbigint:bigint, cfloat:float, cdouble:double, cstring1:string, 
cstring2:string, ctimestamp1:timestamp, ctimestamp2:timestamp, 
cboolean1:boolean, cboolean2:boolean
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [decimal(13,3), double, double, 
double, double]
+                    scratchColumnTypeNames: [decimal(13,3), double, double, 
double, double, double]
         Reducer 2 
             Execution mode: vectorized
             Reduce Vectorization:
@@ -1713,8 +1713,8 @@ STAGE PLANS:
                   Select Vectorization:
                       className: VectorSelectOperator
                       native: true
-                      projectedOutputColumnNums: [8, 7, 9, 10, 12, 14, 13, 18, 
11, 20, 19, 4, 5, 25, 21, 29, 6, 27]
-                      selectExpressions: DoubleColDivideLongColumn(col 
7:double, col 1:bigint)(children: CastLongToDouble(col 0:bigint) -> 7:double) 
-> 8:double, DoubleColUnaryMinus(col 9:double)(children: 
DoubleColDivideLongColumn(col 7:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 7:double) -> 9:double) -> 7:double, 
DoubleScalarAddDoubleColumn(val -6432.0, col 10:double)(children: 
DoubleColDivideLongColumn(col 9:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 9:double) -> 10:double) -> 9:double, 
FuncPowerDoubleToDouble(col 11:double)(children: DoubleColDivideLongColumn(col 
10:double, col 1:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, 
col 11:double)(children: DoubleColDivideLongColumn(col 10:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) 
-> 10:double) -> 11:double) -> 10:double) -> 11:double) -> 10:double, 
DoubleColUnaryMinus(col 11:double)(children: DoubleScalarAddDoubleColumn(val -64
 32.0, col 12:double)(children: DoubleColDivideLongColumn(col 11:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 11:double) -> 12:double) 
-> 11:double) -> 12:double, DoubleColAddDoubleColumn(col 13:double, col 
11:double)(children: DoubleColUnaryMinus(col 11:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 13:double)(children: 
DoubleColDivideLongColumn(col 11:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 11:double) -> 13:double) -> 11:double) -> 
13:double, DoubleScalarAddDoubleColumn(val -6432.0, col 14:double)(children: 
DoubleColDivideLongColumn(col 11:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 11:double) -> 14:double) -> 11:double) -> 
14:double, DoubleColDivideLongColumn(col 11:double, col 17:bigint)(children: 
DoubleColSubtractDoubleColumn(col 2:double, col 13:double)(children: 
DoubleColDivideLongColumn(col 11:double, col 1:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 11:doub
 le) -> 13:double) -> 11:double, IfExprNullCondExpr(col 15:boolean, null, col 
16:bigint)(children: LongColEqualLongScalar(col 1:bigint, val 1) -> 15:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 16:bigint) -> 17:bigint) -> 
13:double, DoubleColUnaryMinus(col 11:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 18:double)(children: 
DoubleColDivideLongColumn(col 11:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 11:double) -> 18:double) -> 11:double) -> 
18:double, DoubleScalarAddDoubleColumn(val -6432.0, col 19:double)(children: 
DoubleColUnaryMinus(col 11:double)(children: DoubleScalarAddDoubleColumn(val 
-6432.0, col 19:double)(children: DoubleColDivideLongColumn(col 11:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 11:double) -> 19:double) 
-> 11:double) -> 19:double) -> 11:double, DoubleColUnaryMinus(col 
19:double)(children: DoubleScalarAddDoubleColumn(val -6432.0, col 
20:double)(children: DoubleColDivideLongColumn(col 19:d
 ouble, col 1:bigint)(children: CastLongToDouble(col 0:bigint) -> 19:double) -> 
20:double) -> 19:double) -> 20:double, DoubleColDivideDoubleColumn(col 
21:double, col 22:double)(children: DoubleColUnaryMinus(col 
19:double)(children: DoubleScalarAddDoubleColumn(val -6432.0, col 
21:double)(children: DoubleColDivideLongColumn(col 19:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 19:double) -> 21:double) 
-> 19:double) -> 21:double, DoubleColUnaryMinus(col 19:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 22:double)(children: 
DoubleColDivideLongColumn(col 19:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 19:double) -> 22:double) -> 19:double) -> 
22:double) -> 19:double, DoubleColModuloDoubleColumn(col 22:double, col 
21:double)(children: DoubleColDivideLongColumn(col 21:double, col 
24:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, col 
22:double)(children: DoubleColDivideLongColumn(col 21:double, col 
1:bigint)(children: Dou
 bleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 21:double) -> 
22:double) -> 21:double, IfExprNullCondExpr(col 17:boolean, null, col 
23:bigint)(children: LongColEqualLongScalar(col 1:bigint, val 1) -> 17:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 23:bigint) -> 24:bigint) -> 
22:double, FuncPowerDoubleToDouble(col 25:double)(children: 
DoubleColDivideLongColumn(col 21:double, col 1:bigint)(children: 
DoubleColSubtractDoubleColumn(col 2:double, col 25:double)(children: 
DoubleColDivideLongColumn(col 21:double, col 1:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 21:double) -> 
25:double) -> 21:double) -> 25:double) -> 21:double) -> 25:double, 
DoubleColUnaryMinus(col 22:double)(children: DoubleColDivideLongColumn(col 
21:double, col 27:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, 
col 22:double)(children: DoubleColDivideLongColumn(col 21:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 3:double, col 3:d
 ouble) -> 21:double) -> 22:double) -> 21:double, IfExprNullCondExpr(col 
24:boolean, null, col 26:bigint)(children: LongColEqualLongScalar(col 1:bigint, 
val 1) -> 24:boolean, LongColSubtractLongScalar(col 1:bigint, val 1) -> 
26:bigint) -> 27:bigint) -> 22:double) -> 21:double, 
DoubleColMultiplyDoubleColumn(col 28:double, col 22:double)(children: 
DoubleColUnaryMinus(col 22:double)(children: DoubleScalarAddDoubleColumn(val 
-6432.0, col 28:double)(children: DoubleColDivideLongColumn(col 22:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 22:double) -> 28:double) 
-> 22:double) -> 28:double, DoubleColUnaryMinus(col 29:double)(children: 
DoubleColDivideLongColumn(col 22:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 22:double) -> 29:double) -> 22:double) -> 
29:double, LongColUnaryMinus(col 6:tinyint) -> 27:tinyint
+                      projectedOutputColumnNums: [8, 11, 14, 19, 23, 31, 38, 
42, 47, 51, 60, 4, 5, 73, 81, 89, 6, 90]
+                      selectExpressions: DoubleColDivideLongColumn(col 
7:double, col 1:bigint)(children: CastLongToDouble(col 0:bigint) -> 7:double) 
-> 8:double, DoubleColUnaryMinus(col 10:double)(children: 
DoubleColDivideLongColumn(col 9:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 9:double) -> 10:double) -> 11:double, 
DoubleScalarAddDoubleColumn(val -6432.0, col 13:double)(children: 
DoubleColDivideLongColumn(col 12:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 12:double) -> 13:double) -> 14:double, 
FuncPowerDoubleToDouble(col 18:double)(children: DoubleColDivideLongColumn(col 
17:double, col 1:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, 
col 16:double)(children: DoubleColDivideLongColumn(col 15:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) 
-> 15:double) -> 16:double) -> 17:double) -> 18:double) -> 19:double, 
DoubleColUnaryMinus(col 22:double)(children: DoubleScalarAddDoubleColumn(v
 al -6432.0, col 21:double)(children: DoubleColDivideLongColumn(col 20:double, 
col 1:bigint)(children: CastLongToDouble(col 0:bigint) -> 20:double) -> 
21:double) -> 22:double) -> 23:double, DoubleColAddDoubleColumn(col 27:double, 
col 30:double)(children: DoubleColUnaryMinus(col 26:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 25:double)(children: 
DoubleColDivideLongColumn(col 24:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 24:double) -> 25:double) -> 26:double) -> 
27:double, DoubleScalarAddDoubleColumn(val -6432.0, col 29:double)(children: 
DoubleColDivideLongColumn(col 28:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 28:double) -> 29:double) -> 30:double) -> 
31:double, DoubleColDivideLongColumn(col 34:double, col 37:bigint)(children: 
DoubleColSubtractDoubleColumn(col 2:double, col 33:double)(children: 
DoubleColDivideLongColumn(col 32:double, col 1:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 3
 2:double) -> 33:double) -> 34:double, IfExprNullCondExpr(col 35:boolean, null, 
col 36:bigint)(children: LongColEqualLongScalar(col 1:bigint, val 1) -> 
35:boolean, LongColSubtractLongScalar(col 1:bigint, val 1) -> 36:bigint) -> 
37:bigint) -> 38:double, DoubleColUnaryMinus(col 41:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 40:double)(children: 
DoubleColDivideLongColumn(col 39:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 39:double) -> 40:double) -> 41:double) -> 
42:double, DoubleScalarAddDoubleColumn(val -6432.0, col 46:double)(children: 
DoubleColUnaryMinus(col 45:double)(children: DoubleScalarAddDoubleColumn(val 
-6432.0, col 44:double)(children: DoubleColDivideLongColumn(col 43:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 43:double) -> 44:double) 
-> 45:double) -> 46:double) -> 47:double, DoubleColUnaryMinus(col 
50:double)(children: DoubleScalarAddDoubleColumn(val -6432.0, col 
49:double)(children: DoubleColDivideLongColumn(co
 l 48:double, col 1:bigint)(children: CastLongToDouble(col 0:bigint) -> 
48:double) -> 49:double) -> 50:double) -> 51:double, 
DoubleColDivideDoubleColumn(col 55:double, col 59:double)(children: 
DoubleColUnaryMinus(col 54:double)(children: DoubleScalarAddDoubleColumn(val 
-6432.0, col 53:double)(children: DoubleColDivideLongColumn(col 52:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 52:double) -> 53:double) 
-> 54:double) -> 55:double, DoubleColUnaryMinus(col 58:double)(children: 
DoubleScalarAddDoubleColumn(val -6432.0, col 57:double)(children: 
DoubleColDivideLongColumn(col 56:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 56:double) -> 57:double) -> 58:double) -> 
59:double) -> 60:double, DoubleColModuloDoubleColumn(col 67:double, col 
72:double)(children: DoubleColDivideLongColumn(col 63:double, col 
66:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, col 
62:double)(children: DoubleColDivideLongColumn(col 61:double, col 
1:bigint)(childre
 n: DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 61:double) -> 
62:double) -> 63:double, IfExprNullCondExpr(col 64:boolean, null, col 
65:bigint)(children: LongColEqualLongScalar(col 1:bigint, val 1) -> 64:boolean, 
LongColSubtractLongScalar(col 1:bigint, val 1) -> 65:bigint) -> 66:bigint) -> 
67:double, FuncPowerDoubleToDouble(col 71:double)(children: 
DoubleColDivideLongColumn(col 70:double, col 1:bigint)(children: 
DoubleColSubtractDoubleColumn(col 2:double, col 69:double)(children: 
DoubleColDivideLongColumn(col 68:double, col 1:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, col 3:double) -> 68:double) -> 
69:double) -> 70:double) -> 71:double) -> 72:double) -> 73:double, 
DoubleColUnaryMinus(col 80:double)(children: DoubleColDivideLongColumn(col 
76:double, col 79:bigint)(children: DoubleColSubtractDoubleColumn(col 2:double, 
col 75:double)(children: DoubleColDivideLongColumn(col 74:double, col 
1:bigint)(children: DoubleColMultiplyDoubleColumn(col 3:double, c
 ol 3:double) -> 74:double) -> 75:double) -> 76:double, IfExprNullCondExpr(col 
77:boolean, null, col 78:bigint)(children: LongColEqualLongScalar(col 1:bigint, 
val 1) -> 77:boolean, LongColSubtractLongScalar(col 1:bigint, val 1) -> 
78:bigint) -> 79:bigint) -> 80:double) -> 81:double, 
DoubleColMultiplyDoubleColumn(col 85:double, col 88:double)(children: 
DoubleColUnaryMinus(col 84:double)(children: DoubleScalarAddDoubleColumn(val 
-6432.0, col 83:double)(children: DoubleColDivideLongColumn(col 82:double, col 
1:bigint)(children: CastLongToDouble(col 0:bigint) -> 82:double) -> 83:double) 
-> 84:double) -> 85:double, DoubleColUnaryMinus(col 87:double)(children: 
DoubleColDivideLongColumn(col 86:double, col 1:bigint)(children: 
CastLongToDouble(col 0:bigint) -> 86:double) -> 87:double) -> 88:double) -> 
89:double, LongColUnaryMinus(col 6:tinyint) -> 90:tinyint
                   Statistics: Num rows: 1 Data size: 52 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator
                     compressed: false

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vectorization_1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/vectorization_1.q.out 
b/ql/src/test/results/clientpositive/spark/vectorization_1.q.out
index 1bf314a..9a5e928 100644
--- a/ql/src/test/results/clientpositive/spark/vectorization_1.q.out
+++ b/ql/src/test/results/clientpositive/spark/vectorization_1.q.out
@@ -81,13 +81,13 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [0, 4, 2, 5, 13, 16, 14]
-                          selectExpressions: CastLongToDouble(col 0:tinyint) 
-> 13:double, DoubleColMultiplyDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 0:tinyint) -> 14:double, 
CastLongToDouble(col 0:tinyint) -> 15:double) -> 16:double, 
DoubleColMultiplyDoubleColumn(col 5:double, col 5:double) -> 14:double
+                          projectedOutputColumnNums: [0, 4, 2, 5, 14, 17, 18]
+                          selectExpressions: CastLongToDouble(col 0:tinyint) 
-> 14:double, DoubleColMultiplyDoubleColumn(col 15:double, col 
16:double)(children: CastLongToDouble(col 0:tinyint) -> 15:double, 
CastLongToDouble(col 0:tinyint) -> 16:double) -> 17:double, 
DoubleColMultiplyDoubleColumn(col 5:double, col 5:double) -> 18:double
                       Statistics: Num rows: 12288 Data size: 2907994 Basic 
stats: COMPLETE Column stats: NONE
                       Group By Operator
                         aggregations: sum(_col5), sum(_col4), count(_col0), 
sum(_col1), max(_col0), max(_col2), sum(_col6), sum(_col3), count(_col3), 
count(_col2)
                         Group By Vectorization:
-                            aggregators: VectorUDAFSumDouble(col 16:double) -> 
double, VectorUDAFSumDouble(col 13:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFSumDouble(col 4:float) -> double, 
VectorUDAFMaxLong(col 0:tinyint) -> tinyint, VectorUDAFMaxLong(col 2:int) -> 
int, VectorUDAFSumDouble(col 14:double) -> double, VectorUDAFSumDouble(col 
5:double) -> double, VectorUDAFCount(col 5:double) -> bigint, 
VectorUDAFCount(col 2:int) -> bigint
+                            aggregators: VectorUDAFSumDouble(col 17:double) -> 
double, VectorUDAFSumDouble(col 14:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFSumDouble(col 4:float) -> double, 
VectorUDAFMaxLong(col 0:tinyint) -> tinyint, VectorUDAFMaxLong(col 2:int) -> 
int, VectorUDAFSumDouble(col 18:double) -> double, VectorUDAFSumDouble(col 
5:double) -> double, VectorUDAFCount(col 5:double) -> bigint, 
VectorUDAFCount(col 2:int) -> bigint
                             className: VectorGroupByOperator
                             groupByMode: HASH
                             native: false
@@ -120,7 +120,7 @@ STAGE PLANS:
                     includeColumns: [0, 2, 3, 4, 5, 10, 11]
                     dataColumns: ctinyint:tinyint, csmallint:smallint, 
cint:int, cbigint:bigint, cfloat:float, cdouble:double, cstring1:string, 
cstring2:string, ctimestamp1:timestamp, ctimestamp2:timestamp, 
cboolean1:boolean, cboolean2:boolean
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, double, double, double]
+                    scratchColumnTypeNames: [double, double, double, double, 
double, double]
         Reducer 2 
             Execution mode: vectorized
             Reduce Vectorization:
@@ -155,8 +155,8 @@ STAGE PLANS:
                   Select Vectorization:
                       className: VectorSelectOperator
                       native: true
-                      projectedOutputColumnNums: [11, 10, 3, 12, 14, 4, 13, 5, 
17, 18, 22, 9, 21]
-                      selectExpressions: DoubleColDivideLongColumn(col 
10:double, col 2:bigint)(children: DoubleColSubtractDoubleColumn(col 0:double, 
col 11:double)(children: DoubleColDivideLongColumn(col 10:double, col 
2:bigint)(children: DoubleColMultiplyDoubleColumn(col 1:double, col 1:double) 
-> 10:double) -> 11:double) -> 10:double) -> 11:double, 
DoubleColDivideDoubleScalar(col 12:double, val -26.28)(children: 
DoubleColDivideLongColumn(col 10:double, col 2:bigint)(children: 
DoubleColSubtractDoubleColumn(col 0:double, col 12:double)(children: 
DoubleColDivideLongColumn(col 10:double, col 2:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 1:double, col 1:double) -> 10:double) -> 
12:double) -> 10:double) -> 12:double) -> 10:double, 
DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 12:double, 
DoubleColMultiplyDoubleColumn(col 3:double, col 13:double)(children: 
DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 13:double) -> 
14:double, DoubleColUnaryMinus(col 15:doubl
 e)(children: DoubleColMultiplyDoubleColumn(col 3:double, col 
13:double)(children: DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 
13:double) -> 15:double) -> 13:double, DecimalColMultiplyDecimalScalar(col 
16:decimal(10,0), val 79.553)(children: CastLongToDecimal(col 5:int) -> 
16:decimal(10,0)) -> 17:decimal(16,3), DoubleColDivideLongColumn(col 15:double, 
col 21:bigint)(children: DoubleColSubtractDoubleColumn(col 6:double, col 
18:double)(children: DoubleColDivideLongColumn(col 15:double, col 
8:bigint)(children: DoubleColMultiplyDoubleColumn(col 7:double, col 7:double) 
-> 15:double) -> 18:double) -> 15:double, IfExprNullCondExpr(col 19:boolean, 
null, col 20:bigint)(children: LongColEqualLongScalar(col 8:bigint, val 1) -> 
19:boolean, LongColSubtractLongScalar(col 8:bigint, val 1) -> 20:bigint) -> 
21:bigint) -> 18:double, DoubleScalarModuloDoubleColumn(val 10.175, col 
15:double)(children: DoubleColUnaryMinus(col 22:double)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, c
 ol 15:double)(children: DoubleScalarAddDoubleColumn(val -1.389, col 3:double) 
-> 15:double) -> 22:double) -> 15:double) -> 22:double, 
LongScalarModuloLongColumn(val -563, col 5:int) -> 21:int
+                      projectedOutputColumnNums: [13, 18, 3, 19, 21, 4, 24, 5, 
26, 33, 37, 9, 38]
+                      selectExpressions: DoubleColDivideLongColumn(col 
12:double, col 2:bigint)(children: DoubleColSubtractDoubleColumn(col 0:double, 
col 11:double)(children: DoubleColDivideLongColumn(col 10:double, col 
2:bigint)(children: DoubleColMultiplyDoubleColumn(col 1:double, col 1:double) 
-> 10:double) -> 11:double) -> 12:double) -> 13:double, 
DoubleColDivideDoubleScalar(col 17:double, val -26.28)(children: 
DoubleColDivideLongColumn(col 16:double, col 2:bigint)(children: 
DoubleColSubtractDoubleColumn(col 0:double, col 15:double)(children: 
DoubleColDivideLongColumn(col 14:double, col 2:bigint)(children: 
DoubleColMultiplyDoubleColumn(col 1:double, col 1:double) -> 14:double) -> 
15:double) -> 16:double) -> 17:double) -> 18:double, 
DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 19:double, 
DoubleColMultiplyDoubleColumn(col 3:double, col 20:double)(children: 
DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 20:double) -> 
21:double, DoubleColUnaryMinus(col 23:doubl
 e)(children: DoubleColMultiplyDoubleColumn(col 3:double, col 
22:double)(children: DoubleScalarAddDoubleColumn(val -1.389, col 3:double) -> 
22:double) -> 23:double) -> 24:double, DecimalColMultiplyDecimalScalar(col 
25:decimal(10,0), val 79.553)(children: CastLongToDecimal(col 5:int) -> 
25:decimal(10,0)) -> 26:decimal(16,3), DoubleColDivideLongColumn(col 29:double, 
col 32:bigint)(children: DoubleColSubtractDoubleColumn(col 6:double, col 
28:double)(children: DoubleColDivideLongColumn(col 27:double, col 
8:bigint)(children: DoubleColMultiplyDoubleColumn(col 7:double, col 7:double) 
-> 27:double) -> 28:double) -> 29:double, IfExprNullCondExpr(col 30:boolean, 
null, col 31:bigint)(children: LongColEqualLongScalar(col 8:bigint, val 1) -> 
30:boolean, LongColSubtractLongScalar(col 8:bigint, val 1) -> 31:bigint) -> 
32:bigint) -> 33:double, DoubleScalarModuloDoubleColumn(val 10.175, col 
36:double)(children: DoubleColUnaryMinus(col 35:double)(children: 
DoubleColMultiplyDoubleColumn(col 3:double, c
 ol 34:double)(children: DoubleScalarAddDoubleColumn(val -1.389, col 3:double) 
-> 34:double) -> 35:double) -> 36:double) -> 37:double, 
LongScalarModuloLongColumn(val -563, col 5:int) -> 38:int
                   Statistics: Num rows: 1 Data size: 72 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator
                     compressed: false

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vectorization_10.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/vectorization_10.q.out 
b/ql/src/test/results/clientpositive/spark/vectorization_10.q.out
index 85cd43c..5fac187 100644
--- a/ql/src/test/results/clientpositive/spark/vectorization_10.q.out
+++ b/ql/src/test/results/clientpositive/spark/vectorization_10.q.out
@@ -85,8 +85,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [5, 8, 0, 10, 6, 13, 17, 
16, 18, 20, 21, 19, 23, 24, 26]
-                          selectExpressions: DoubleColUnaryMinus(col 5:double) 
-> 13:double, DoubleColAddDoubleColumn(col 5:double, col 16:double)(children: 
CastLongToDouble(col 1:smallint) -> 16:double) -> 17:double, 
DoubleColModuloDoubleScalar(col 18:double, val 33.0)(children: 
DoubleColAddDoubleColumn(col 5:double, col 16:double)(children: 
CastLongToDouble(col 1:smallint) -> 16:double) -> 18:double) -> 16:double, 
DoubleColUnaryMinus(col 5:double) -> 18:double, DoubleColModuloDoubleColumn(col 
19:double, col 5:double)(children: CastLongToDouble(col 0:tinyint) -> 
19:double) -> 20:double, LongColModuloLongColumn(col 0:smallint, col 
1:smallint)(children: col 0:tinyint) -> 21:smallint, DoubleColUnaryMinus(col 
5:double) -> 19:double, LongColMultiplyLongColumn(col 3:bigint, col 
22:bigint)(children: LongColModuloLongColumn(col 0:smallint, col 
1:smallint)(children: col 0:tinyint) -> 22:smallint) -> 23:bigint, 
DoubleScalarSubtractDoubleColumn(val 9763215.5639, col 25:double)(children: 
Doubl
 eColAddDoubleColumn(col 5:double, col 24:double)(children: 
CastLongToDouble(col 1:smallint) -> 24:double) -> 25:double) -> 24:double, 
DoubleColUnaryMinus(col 25:double)(children: DoubleColUnaryMinus(col 5:double) 
-> 25:double) -> 26:double
+                          projectedOutputColumnNums: [5, 8, 0, 10, 6, 16, 18, 
21, 22, 24, 25, 26, 28, 31, 33]
+                          selectExpressions: DoubleColUnaryMinus(col 5:double) 
-> 16:double, DoubleColAddDoubleColumn(col 5:double, col 17:double)(children: 
CastLongToDouble(col 1:smallint) -> 17:double) -> 18:double, 
DoubleColModuloDoubleScalar(col 20:double, val 33.0)(children: 
DoubleColAddDoubleColumn(col 5:double, col 19:double)(children: 
CastLongToDouble(col 1:smallint) -> 19:double) -> 20:double) -> 21:double, 
DoubleColUnaryMinus(col 5:double) -> 22:double, DoubleColModuloDoubleColumn(col 
23:double, col 5:double)(children: CastLongToDouble(col 0:tinyint) -> 
23:double) -> 24:double, LongColModuloLongColumn(col 0:smallint, col 
1:smallint)(children: col 0:tinyint) -> 25:smallint, DoubleColUnaryMinus(col 
5:double) -> 26:double, LongColMultiplyLongColumn(col 3:bigint, col 
27:bigint)(children: LongColModuloLongColumn(col 0:smallint, col 
1:smallint)(children: col 0:tinyint) -> 27:smallint) -> 28:bigint, 
DoubleScalarSubtractDoubleColumn(val 9763215.5639, col 30:double)(children: 
Doubl
 eColAddDoubleColumn(col 5:double, col 29:double)(children: 
CastLongToDouble(col 1:smallint) -> 29:double) -> 30:double) -> 31:double, 
DoubleColUnaryMinus(col 32:double)(children: DoubleColUnaryMinus(col 5:double) 
-> 32:double) -> 33:double
                       Statistics: Num rows: 9557 Data size: 2261694 Basic 
stats: COMPLETE Column stats: NONE
                       File Output Operator
                         compressed: false
@@ -113,7 +113,7 @@ STAGE PLANS:
                     includeColumns: [0, 1, 3, 5, 6, 7, 8, 10]
                     dataColumns: ctinyint:tinyint, csmallint:smallint, 
cint:int, cbigint:bigint, cfloat:float, cdouble:double, cstring1:string, 
cstring2:string, ctimestamp1:timestamp, ctimestamp2:timestamp, 
cboolean1:boolean, cboolean2:boolean
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, decimal(6,2), 
decimal(11,4), double, double, double, double, double, bigint, bigint, bigint, 
double, double, double]
+                    scratchColumnTypeNames: [double, decimal(6,2), 
decimal(11,4), double, double, double, double, double, double, double, double, 
double, bigint, double, bigint, bigint, double, double, double, double, double]
 
   Stage: Stage-0
     Fetch Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/vectorization_11.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/vectorization_11.q.out 
b/ql/src/test/results/clientpositive/spark/vectorization_11.q.out
index 09dff34..57796a5 100644
--- a/ql/src/test/results/clientpositive/spark/vectorization_11.q.out
+++ b/ql/src/test/results/clientpositive/spark/vectorization_11.q.out
@@ -67,8 +67,8 @@ STAGE PLANS:
                       Select Vectorization:
                           className: VectorSelectOperator
                           native: true
-                          projectedOutputColumnNums: [6, 10, 5, 8, 13, 14, 15, 
17, 16]
-                          selectExpressions: LongScalarMultiplyLongColumn(val 
-3728, col 1:int)(children: col 1:smallint) -> 13:int, 
DoubleColSubtractDoubleScalar(col 5:double, val 9763215.5639) -> 14:double, 
DoubleColUnaryMinus(col 5:double) -> 15:double, DoubleColAddDoubleScalar(col 
16:double, val 6981.0)(children: DoubleColUnaryMinus(col 5:double) -> 
16:double) -> 17:double, DoubleColMultiplyDoubleScalar(col 5:double, val 
-5638.15) -> 16:double
+                          projectedOutputColumnNums: [6, 10, 5, 8, 13, 14, 15, 
17, 18]
+                          selectExpressions: LongScalarMultiplyLongColumn(val 
-3728, col 1:int)(children: col 1:smallint) -> 13:int, 
DoubleColSubtractDoubleScalar(col 5:double, val 9763215.5639) -> 14:double, 
DoubleColUnaryMinus(col 5:double) -> 15:double, DoubleColAddDoubleScalar(col 
16:double, val 6981.0)(children: DoubleColUnaryMinus(col 5:double) -> 
16:double) -> 17:double, DoubleColMultiplyDoubleScalar(col 5:double, val 
-5638.15) -> 18:double
                       Statistics: Num rows: 9216 Data size: 2180995 Basic 
stats: COMPLETE Column stats: NONE
                       File Output Operator
                         compressed: false
@@ -95,7 +95,7 @@ STAGE PLANS:
                     includeColumns: [1, 5, 6, 7, 8, 10]
                     dataColumns: ctinyint:tinyint, csmallint:smallint, 
cint:int, cbigint:bigint, cfloat:float, cdouble:double, cstring1:string, 
cstring2:string, ctimestamp1:timestamp, ctimestamp2:timestamp, 
cboolean1:boolean, cboolean2:boolean
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [bigint, double, double, double, 
double]
+                    scratchColumnTypeNames: [bigint, double, double, double, 
double, double]
 
   Stage: Stage-0
     Fetch Operator

Reply via email to