http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_10.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_10.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_10.q.out
index 8d0f884..cda5473 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_10.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_10.q.out
@@ -81,8 +81,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: 
DoubleColAd
 dDoubleColumn(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: 
DoubleColAd
 dDoubleColumn(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: 114684 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/parquet_vectorization_11.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_11.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_11.q.out
index d3d9058..b0a3b9c 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_11.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_11.q.out
@@ -63,8 +63,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: 110592 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/parquet_vectorization_12.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_12.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_12.q.out
index d427bc27..617c3ee 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_12.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_12.q.out
@@ -98,13 +98,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [3, 10, 6, 5, 13, 16, 14]
-                    selectExpressions: CastLongToDouble(col 3:bigint) -> 
13:double, DoubleColMultiplyDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 3:bigint) -> 14:double, 
CastLongToDouble(col 3:bigint) -> 15:double) -> 16:double, 
DoubleColMultiplyDoubleColumn(col 5:double, col 5:double) -> 14:double
+                    projectedOutputColumnNums: [3, 10, 6, 5, 13, 16, 17]
+                    selectExpressions: CastLongToDouble(col 3:bigint) -> 
13:double, DoubleColMultiplyDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 3:bigint) -> 14:double, 
CastLongToDouble(col 3:bigint) -> 15:double) -> 16:double, 
DoubleColMultiplyDoubleColumn(col 5:double, col 5:double) -> 17:double
                 Statistics: Num rows: 3754 Data size: 45048 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: count(_col0), sum(_col5), sum(_col4), 
sum(_col3), count(_col3), sum(_col0), sum(_col6)
                   Group By Vectorization:
-                      aggregators: VectorUDAFCount(col 3:bigint) -> bigint, 
VectorUDAFSumDouble(col 16:double) -> double, VectorUDAFSumDouble(col 
13:double) -> double, VectorUDAFSumDouble(col 5:double) -> double, 
VectorUDAFCount(col 5:double) -> bigint, VectorUDAFSumLong(col 3:bigint) -> 
bigint, VectorUDAFSumDouble(col 14:double) -> double
+                      aggregators: VectorUDAFCount(col 3:bigint) -> bigint, 
VectorUDAFSumDouble(col 16:double) -> double, VectorUDAFSumDouble(col 
13:double) -> double, VectorUDAFSumDouble(col 5:double) -> double, 
VectorUDAFCount(col 5:double) -> bigint, VectorUDAFSumLong(col 3:bigint) -> 
bigint, VectorUDAFSumDouble(col 17:double) -> double
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       keyExpressions: col 5:double, col 3:bigint, col 
6:string, col 10:boolean

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_13.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_13.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_13.q.out
index 0bd81bb..7e3ff5f 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_13.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_13.q.out
@@ -91,7 +91,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 10.175), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val -28789.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val -28788.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double), 
FilterDecimalColLessDecimalScalar(col 14:decimal(11,4), val 
9763215.5639)(children: CastLongToDecimal(col 0:tinyint) -> 14:decimal(11,4))))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 10.175), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val -28789.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 14:double, val -28788.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 14:double), 
FilterDecimalColLessDecimalScalar(col 15:decimal(11,4), val 
9763215.5639)(children: CastLongToDecimal(col 0:tinyint) -> 15:decimal(11,4))))
               predicate: (((UDFToDouble(ctimestamp1) > -28789.0D) and 
(UDFToDouble(ctimestamp2) <> -28788.0D) and (CAST( ctinyint AS decimal(11,4)) < 
9763215.5639)) or ((cfloat < 3569.0) and (cdouble <= 10.175D) and (cboolean1 <> 
1))) (type: boolean)
               Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -100,13 +100,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [10, 0, 8, 4, 6, 4, 13, 15, 18]
-                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 13:double, 
CastLongToDouble(col 0:tinyint) -> 15:double, DoubleColMultiplyDoubleColumn(col 
16:double, col 17:double)(children: CastLongToDouble(col 0:tinyint) -> 
16:double, CastLongToDouble(col 0:tinyint) -> 17:double) -> 18:double
+                    projectedOutputColumnNums: [10, 0, 8, 4, 6, 4, 16, 17, 20]
+                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 16:double, 
CastLongToDouble(col 0:tinyint) -> 17:double, DoubleColMultiplyDoubleColumn(col 
18:double, col 19:double)(children: CastLongToDouble(col 0:tinyint) -> 
18:double, CastLongToDouble(col 0:tinyint) -> 19:double) -> 20:double
                 Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: max(_col1), sum(_col3), sum(_col6), 
sum(_col5), count(_col3), sum(_col8), sum(_col7), count(_col1), max(_col3), 
min(_col1)
                   Group By Vectorization:
-                      aggregators: VectorUDAFMaxLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumDouble(col 
13:double) -> double, VectorUDAFSumDouble(col 4:double) -> double, 
VectorUDAFCount(col 4:float) -> bigint, VectorUDAFSumDouble(col 18:double) -> 
double, VectorUDAFSumDouble(col 15:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
+                      aggregators: VectorUDAFMaxLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumDouble(col 
16:double) -> double, VectorUDAFSumDouble(col 4:double) -> double, 
VectorUDAFCount(col 4:float) -> bigint, VectorUDAFSumDouble(col 20:double) -> 
double, VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       keyExpressions: col 10:boolean, col 0:tinyint, col 
8:timestamp, col 4:float, col 6:string
@@ -413,7 +413,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 10.175), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val -28801.388)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val -28801.336)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double), 
FilterDecimalColLessDecimalScalar(col 14:decimal(11,4), val 
9763215.5639)(children: CastLongToDecimal(col 0:tinyint) -> 14:decimal(11,4))))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 10.175), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val -28801.388)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 14:double, val -28801.336)(children: 
CastTimestampToDouble(col 9:timestamp) -> 14:double), 
FilterDecimalColLessDecimalScalar(col 15:decimal(11,4), val 
9763215.5639)(children: CastLongToDecimal(col 0:tinyint) -> 15:decimal(11,4))))
               predicate: (((UDFToDouble(ctimestamp1) > -28801.388D) and 
(UDFToDouble(ctimestamp2) <> -28801.336D) and (CAST( ctinyint AS decimal(11,4)) 
< 9763215.5639)) or ((cfloat < 3569.0) and (cdouble <= 10.175D) and (cboolean1 
<> 1))) (type: boolean)
               Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -422,13 +422,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [10, 0, 8, 4, 6, 4, 13, 15, 18]
-                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 13:double, 
CastLongToDouble(col 0:tinyint) -> 15:double, DoubleColMultiplyDoubleColumn(col 
16:double, col 17:double)(children: CastLongToDouble(col 0:tinyint) -> 
16:double, CastLongToDouble(col 0:tinyint) -> 17:double) -> 18:double
+                    projectedOutputColumnNums: [10, 0, 8, 4, 6, 4, 16, 17, 20]
+                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 16:double, 
CastLongToDouble(col 0:tinyint) -> 17:double, DoubleColMultiplyDoubleColumn(col 
18:double, col 19:double)(children: CastLongToDouble(col 0:tinyint) -> 
18:double, CastLongToDouble(col 0:tinyint) -> 19:double) -> 20:double
                 Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: max(_col1), sum(_col3), sum(_col6), 
sum(_col5), count(_col3), sum(_col8), sum(_col7), count(_col1), max(_col3), 
min(_col1)
                   Group By Vectorization:
-                      aggregators: VectorUDAFMaxLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumDouble(col 
13:double) -> double, VectorUDAFSumDouble(col 4:double) -> double, 
VectorUDAFCount(col 4:float) -> bigint, VectorUDAFSumDouble(col 18:double) -> 
double, VectorUDAFSumDouble(col 15:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
+                      aggregators: VectorUDAFMaxLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumDouble(col 
16:double) -> double, VectorUDAFSumDouble(col 4:double) -> double, 
VectorUDAFCount(col 4:float) -> bigint, VectorUDAFSumDouble(col 20:double) -> 
double, VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFCount(col 
0:tinyint) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFMinLong(col 0:tinyint) -> tinyint
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       keyExpressions: col 10:boolean, col 0:tinyint, col 
8:timestamp, col 4:float, col 6:string

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_14.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_14.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_14.q.out
index 3773e6e..8147930 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_14.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_14.q.out
@@ -91,7 +91,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColLessEqualLongColumn(col 0:bigint, col 3:bigint)(children: col 
0:tinyint), FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleColumn(col 
13:double, col 5:double)(children: CastLongToDouble(col 2:int) -> 13:double), 
FilterTimestampColLessTimestampColumn(col 9:timestamp, col 8:timestamp)), 
FilterDoubleColLessDoubleColumn(col 5:double, col 13:double)(children: 
CastLongToDouble(col 0:tinyint) -> 13:double), FilterExprOrExpr(children: 
FilterLongColGreaterLongScalar(col 3:bigint, val -257), 
FilterDoubleColLessDoubleColumn(col 4:float, col 13:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 13:float)))
+                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColLessEqualLongColumn(col 0:bigint, col 3:bigint)(children: col 
0:tinyint), FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleColumn(col 
13:double, col 5:double)(children: CastLongToDouble(col 2:int) -> 13:double), 
FilterTimestampColLessTimestampColumn(col 9:timestamp, col 8:timestamp)), 
FilterDoubleColLessDoubleColumn(col 5:double, col 14:double)(children: 
CastLongToDouble(col 0:tinyint) -> 14:double), FilterExprOrExpr(children: 
FilterLongColGreaterLongScalar(col 3:bigint, val -257), 
FilterDoubleColLessDoubleColumn(col 4:float, col 15:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 15:float)))
               predicate: (((UDFToDouble(cint) <= cdouble) or (ctimestamp2 < 
ctimestamp1)) and ((cbigint > -257L) or (cfloat < UDFToFloat(cint))) and 
(UDFToLong(ctinyint) <= cbigint) and (cdouble < UDFToDouble(ctinyint))) (type: 
boolean)
               Statistics: Num rows: 606 Data size: 7272 Basic stats: COMPLETE 
Column stats: NONE
               Select Operator
@@ -100,13 +100,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [8, 4, 6, 10, 5, 14, 13, 4, 15]
-                    selectExpressions: DoubleColUnaryMinus(col 
13:double)(children: DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 
13:double) -> 14:double, DoubleColMultiplyDoubleColumn(col 15:double, col 
16:double)(children: DoubleColUnaryMinus(col 13:double)(children: 
DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 13:double) -> 
15:double, DoubleColUnaryMinus(col 13:double)(children: 
DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 13:double) -> 
16:double) -> 13:double, DoubleColMultiplyDoubleColumn(col 4:double, col 
4:double)(children: col 4:float, col 4:float) -> 15:double
+                    projectedOutputColumnNums: [8, 4, 6, 10, 5, 17, 22, 4, 23]
+                    selectExpressions: DoubleColUnaryMinus(col 
16:double)(children: DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 
16:double) -> 17:double, DoubleColMultiplyDoubleColumn(col 19:double, col 
21:double)(children: DoubleColUnaryMinus(col 18:double)(children: 
DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 18:double) -> 
19:double, DoubleColUnaryMinus(col 20:double)(children: 
DoubleScalarAddDoubleColumn(val -26.28, col 5:double) -> 20:double) -> 
21:double) -> 22:double, DoubleColMultiplyDoubleColumn(col 4:double, col 
4:double)(children: col 4:float, col 4:float) -> 23:double
                 Statistics: Num rows: 606 Data size: 7272 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: sum(_col6), sum(_col5), count(_col5), 
max(_col1), sum(_col8), sum(_col7), count(_col1)
                   Group By Vectorization:
-                      aggregators: VectorUDAFSumDouble(col 13:double) -> 
double, VectorUDAFSumDouble(col 14:double) -> double, VectorUDAFCount(col 
14:double) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFSumDouble(col 15:double) -> double, VectorUDAFSumDouble(col 4:double) 
-> double, VectorUDAFCount(col 4:float) -> bigint
+                      aggregators: VectorUDAFSumDouble(col 22:double) -> 
double, VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFCount(col 
17:double) -> bigint, VectorUDAFMaxDouble(col 4:float) -> float, 
VectorUDAFSumDouble(col 23:double) -> double, VectorUDAFSumDouble(col 4:double) 
-> double, VectorUDAFCount(col 4:float) -> bigint
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       keyExpressions: col 6:string, col 4:float, col 5:double, 
col 8:timestamp, col 10:boolean

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_15.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_15.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_15.q.out
index 84b8239..5f0e0d6 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_15.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_15.q.out
@@ -96,13 +96,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [4, 10, 5, 6, 0, 2, 8, 4, 13, 
14, 17, 15, 19]
-                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 13:double, 
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, 
CastLongToDouble(col 2:int) -> 15:double, DoubleColMultiplyDoubleColumn(col 
16:double, col 18:double)(children: CastLongToDouble(col 2:int) -> 16:double, 
CastLongToDouble(col 2:int) -> 18:double) -> 19:double
+                    projectedOutputColumnNums: [4, 10, 5, 6, 0, 2, 8, 4, 13, 
14, 17, 18, 21]
+                    selectExpressions: DoubleColMultiplyDoubleColumn(col 
4:double, col 4:double)(children: col 4:float, col 4:float) -> 13:double, 
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, 
CastLongToDouble(col 2:int) -> 18:double, DoubleColMultiplyDoubleColumn(col 
19:double, col 20:double)(children: CastLongToDouble(col 2:int) -> 19:double, 
CastLongToDouble(col 2:int) -> 20:double) -> 21:double
                 Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: sum(_col8), sum(_col7), count(_col0), 
min(_col2), sum(_col10), sum(_col9), count(_col4), sum(_col12), sum(_col11), 
count(_col5)
                   Group By Vectorization:
-                      aggregators: VectorUDAFSumDouble(col 13:double) -> 
double, VectorUDAFSumDouble(col 4:double) -> double, VectorUDAFCount(col 
4:float) -> bigint, VectorUDAFMinDouble(col 5:double) -> double, 
VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFSumDouble(col 
14:double) -> double, VectorUDAFCount(col 0:tinyint) -> bigint, 
VectorUDAFSumDouble(col 19:double) -> double, VectorUDAFSumDouble(col 
15:double) -> double, VectorUDAFCount(col 2:int) -> bigint
+                      aggregators: VectorUDAFSumDouble(col 13:double) -> 
double, VectorUDAFSumDouble(col 4:double) -> double, VectorUDAFCount(col 
4:float) -> bigint, VectorUDAFMinDouble(col 5:double) -> double, 
VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFSumDouble(col 
14:double) -> double, VectorUDAFCount(col 0:tinyint) -> bigint, 
VectorUDAFSumDouble(col 21:double) -> double, VectorUDAFSumDouble(col 
18:double) -> double, VectorUDAFCount(col 2:int) -> bigint
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       keyExpressions: col 4:float, col 10:boolean, col 
5:double, col 6:string, col 0:tinyint, col 2:int, col 8:timestamp

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_17.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_17.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_17.q.out
index 02674ed..f78908f 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_17.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_17.q.out
@@ -81,8 +81,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [4, 6, 2, 8, 5, 3, 15, 16, 14, 
17, 19, 20, 22, 18]
-                    selectExpressions: DoubleColDivideDoubleColumn(col 
4:double, col 14:double)(children: col 4:float, CastLongToDouble(col 0:tinyint) 
-> 14:double) -> 15:double, LongColModuloLongColumn(col 2:bigint, col 
3:bigint)(children: col 2:int) -> 16:bigint, DoubleColUnaryMinus(col 5:double) 
-> 14:double, DoubleColAddDoubleColumn(col 5:double, col 18:double)(children: 
DoubleColDivideDoubleColumn(col 4:double, col 17:double)(children: col 4:float, 
CastLongToDouble(col 0:tinyint) -> 17:double) -> 18:double) -> 17:double, 
DoubleColDivideDoubleColumn(col 5:double, col 18:double)(children: 
CastLongToDouble(col 2:int) -> 18:double) -> 19:double, DoubleColUnaryMinus(col 
18:double)(children: DoubleColUnaryMinus(col 5:double) -> 18:double) -> 
20:double, DecimalScalarModuloDecimalColumn(val 9763215.5639, col 
21:decimal(19,0))(children: CastLongToDecimal(col 3:bigint) -> 
21:decimal(19,0)) -> 22:decimal(11,4), DoubleScalarAddDoubleColumn(val 2563.58, 
col 23:double)(children: DoubleColUna
 ryMinus(col 18:double)(children: DoubleColUnaryMinus(col 5:double) -> 
18:double) -> 23:double) -> 18:double
+                    projectedOutputColumnNums: [4, 6, 2, 8, 5, 3, 15, 16, 17, 
20, 22, 24, 26, 29]
+                    selectExpressions: DoubleColDivideDoubleColumn(col 
4:double, col 14:double)(children: col 4:float, CastLongToDouble(col 0:tinyint) 
-> 14:double) -> 15:double, LongColModuloLongColumn(col 2:bigint, col 
3:bigint)(children: col 2:int) -> 16:bigint, DoubleColUnaryMinus(col 5:double) 
-> 17:double, DoubleColAddDoubleColumn(col 5:double, col 19:double)(children: 
DoubleColDivideDoubleColumn(col 4:double, col 18:double)(children: col 4:float, 
CastLongToDouble(col 0:tinyint) -> 18:double) -> 19:double) -> 20:double, 
DoubleColDivideDoubleColumn(col 5:double, col 21:double)(children: 
CastLongToDouble(col 2:int) -> 21:double) -> 22:double, DoubleColUnaryMinus(col 
23:double)(children: DoubleColUnaryMinus(col 5:double) -> 23:double) -> 
24:double, DecimalScalarModuloDecimalColumn(val 9763215.5639, col 
25:decimal(19,0))(children: CastLongToDecimal(col 3:bigint) -> 
25:decimal(19,0)) -> 26:decimal(11,4), DoubleScalarAddDoubleColumn(val 2563.58, 
col 28:double)(children: DoubleColUna
 ryMinus(col 27:double)(children: DoubleColUnaryMinus(col 5:double) -> 
27:double) -> 28:double) -> 29:double
                 Statistics: Num rows: 4096 Data size: 49152 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col5 (type: bigint), _col0 (type: float)

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_2.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_2.q.out
index 78a649c..24ce178 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_2.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_2.q.out
@@ -70,7 +70,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterTimestampColLessTimestampColumn(col 
8:timestamp, col 9:timestamp), FilterStringColLikeStringScalar(col 7:string, 
pattern b%), FilterDoubleColLessEqualDoubleScalar(col 4:float, val 
-5638.14990234375)), FilterExprAndExpr(children: 
FilterDoubleColLessDoubleColumn(col 5:double, col 13:double)(children: 
CastLongToDouble(col 0:tinyint) -> 13:double), FilterExprOrExpr(children: 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val -10669.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double), 
FilterLongColLessLongScalar(col 2:int, val 359))))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterTimestampColLessTimestampColumn(col 
8:timestamp, col 9:timestamp), FilterStringColLikeStringScalar(col 7:string, 
pattern b%), FilterDoubleColLessEqualDoubleScalar(col 4:float, val 
-5638.14990234375)), FilterExprAndExpr(children: 
FilterDoubleColLessDoubleColumn(col 5:double, col 13:double)(children: 
CastLongToDouble(col 0:tinyint) -> 13:double), FilterExprOrExpr(children: 
FilterDoubleColNotEqualDoubleScalar(col 14:double, val -10669.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 14:double), 
FilterLongColLessLongScalar(col 2:int, val 359))))
               predicate: (((cdouble < UDFToDouble(ctinyint)) and 
((UDFToDouble(ctimestamp2) <> -10669.0D) or (cint < 359))) or ((ctimestamp1 < 
ctimestamp2) and (cstring2 like 'b%') and (cfloat <= -5638.15))) (type: boolean)
               Statistics: Num rows: 4778 Data size: 57336 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -79,13 +79,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [1, 4, 3, 0, 5, 13, 16]
-                    selectExpressions: CastLongToDouble(col 3:bigint) -> 
13:double, DoubleColMultiplyDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 3:bigint) -> 14:double, 
CastLongToDouble(col 3:bigint) -> 15:double) -> 16:double
+                    projectedOutputColumnNums: [1, 4, 3, 0, 5, 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: 4778 Data size: 57336 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: sum(_col0), count(_col0), sum(_col1), 
sum(_col6), sum(_col5), count(_col2), count(), min(_col3), sum(_col4), 
count(_col4)
                   Group By Vectorization:
-                      aggregators: VectorUDAFSumLong(col 1:smallint) -> 
bigint, VectorUDAFCount(col 1:smallint) -> bigint, VectorUDAFSumDouble(col 
4:float) -> double, VectorUDAFSumDouble(col 16:double) -> double, 
VectorUDAFSumDouble(col 13:double) -> double, VectorUDAFCount(col 3:bigint) -> 
bigint, VectorUDAFCountStar(*) -> bigint, VectorUDAFMinLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 5:double) -> double, VectorUDAFCount(col 
5:double) -> bigint
+                      aggregators: VectorUDAFSumLong(col 1:smallint) -> 
bigint, VectorUDAFCount(col 1:smallint) -> bigint, VectorUDAFSumDouble(col 
4:float) -> double, VectorUDAFSumDouble(col 18:double) -> double, 
VectorUDAFSumDouble(col 15:double) -> double, VectorUDAFCount(col 3:bigint) -> 
bigint, VectorUDAFCountStar(*) -> bigint, VectorUDAFMinLong(col 0:tinyint) -> 
tinyint, VectorUDAFSumDouble(col 5:double) -> double, VectorUDAFCount(col 
5:double) -> bigint
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       native: false

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_3.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_3.q.out
index 1670bbb..3bd3760 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_3.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_3.q.out
@@ -75,7 +75,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessEqualDoubleColumn(col 13:float, 
col 4:float)(children: CastLongToFloatViaLongToDouble(col 2:int) -> 13:float), 
FilterDecimalColNotEqualDecimalScalar(col 14:decimal(22,3), val 
79.553)(children: CastLongToDecimal(col 3:bigint) -> 14:decimal(22,3)), 
FilterDoubleColEqualDoubleScalar(col 13:double, val -29071.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleColumn(col 13:double, 
col 5:double)(children: CastLongToDouble(col 3:bigint) -> 13:double), 
FilterDecimalColGreaterEqualDecimalScalar(col 15:decimal(8,3), val 
79.553)(children: CastLongToDecimal(col 1:smallint) -> 15:decimal(8,3)), 
FilterTimestampColGreaterTimestampColumn(col 8:timestamp, col 9:timestamp)))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessEqualDoubleColumn(col 13:float, 
col 4:float)(children: CastLongToFloatViaLongToDouble(col 2:int) -> 13:float), 
FilterDecimalColNotEqualDecimalScalar(col 14:decimal(22,3), val 
79.553)(children: CastLongToDecimal(col 3:bigint) -> 14:decimal(22,3)), 
FilterDoubleColEqualDoubleScalar(col 15:double, val -29071.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 15:double)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleColumn(col 16:double, 
col 5:double)(children: CastLongToDouble(col 3:bigint) -> 16:double), 
FilterDecimalColGreaterEqualDecimalScalar(col 17:decimal(8,3), val 
79.553)(children: CastLongToDecimal(col 1:smallint) -> 17:decimal(8,3)), 
FilterTimestampColGreaterTimestampColumn(col 8:timestamp, col 9:timestamp)))
               predicate: (((UDFToDouble(cbigint) > cdouble) and (CAST( 
csmallint AS decimal(8,3)) >= 79.553) and (ctimestamp1 > ctimestamp2)) or 
((UDFToFloat(cint) <= cfloat) and (CAST( cbigint AS decimal(22,3)) <> 79.553) 
and (UDFToDouble(ctimestamp2) = -29071.0D))) (type: boolean)
               Statistics: Num rows: 2503 Data size: 30036 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -84,13 +84,13 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [1, 0, 4, 2, 13, 18, 16, 20, 4, 
17, 19, 23]
-                    selectExpressions: CastLongToDouble(col 1:smallint) -> 
13:double, DoubleColMultiplyDoubleColumn(col 16:double, col 
17:double)(children: CastLongToDouble(col 1:smallint) -> 16:double, 
CastLongToDouble(col 1:smallint) -> 17:double) -> 18:double, 
CastLongToDouble(col 0:tinyint) -> 16:double, DoubleColMultiplyDoubleColumn(col 
17:double, col 19:double)(children: CastLongToDouble(col 0:tinyint) -> 
17:double, CastLongToDouble(col 0:tinyint) -> 19:double) -> 20:double, 
DoubleColMultiplyDoubleColumn(col 4:double, col 4:double)(children: col 
4:float, col 4:float) -> 17:double, CastLongToDouble(col 2:int) -> 19:double, 
DoubleColMultiplyDoubleColumn(col 21:double, col 22:double)(children: 
CastLongToDouble(col 2:int) -> 21:double, CastLongToDouble(col 2:int) -> 
22:double) -> 23:double
+                    projectedOutputColumnNums: [1, 0, 4, 2, 18, 21, 22, 25, 4, 
26, 27, 30]
+                    selectExpressions: CastLongToDouble(col 1:smallint) -> 
18:double, DoubleColMultiplyDoubleColumn(col 19:double, col 
20:double)(children: CastLongToDouble(col 1:smallint) -> 19:double, 
CastLongToDouble(col 1:smallint) -> 20:double) -> 21:double, 
CastLongToDouble(col 0:tinyint) -> 22:double, DoubleColMultiplyDoubleColumn(col 
23:double, col 24:double)(children: CastLongToDouble(col 0:tinyint) -> 
23:double, CastLongToDouble(col 0:tinyint) -> 24:double) -> 25:double, 
DoubleColMultiplyDoubleColumn(col 4:double, col 4:double)(children: col 
4:float, col 4:float) -> 26:double, CastLongToDouble(col 2:int) -> 27:double, 
DoubleColMultiplyDoubleColumn(col 28:double, col 29:double)(children: 
CastLongToDouble(col 2:int) -> 28:double, CastLongToDouble(col 2:int) -> 
29:double) -> 30:double
                 Statistics: Num rows: 2503 Data size: 30036 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
                   aggregations: sum(_col5), sum(_col4), count(_col0), 
sum(_col7), sum(_col6), count(_col1), sum(_col9), sum(_col8), count(_col2), 
sum(_col2), sum(_col3), count(_col3), sum(_col11), sum(_col10)
                   Group By Vectorization:
-                      aggregators: VectorUDAFSumDouble(col 18:double) -> 
double, VectorUDAFSumDouble(col 13:double) -> double, VectorUDAFCount(col 
1:smallint) -> bigint, VectorUDAFSumDouble(col 20:double) -> double, 
VectorUDAFSumDouble(col 16:double) -> double, VectorUDAFCount(col 0:tinyint) -> 
bigint, VectorUDAFSumDouble(col 17:double) -> double, VectorUDAFSumDouble(col 
4:double) -> double, VectorUDAFCount(col 4:float) -> bigint, 
VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumLong(col 2:int) -> 
bigint, VectorUDAFCount(col 2:int) -> bigint, VectorUDAFSumDouble(col 
23:double) -> double, VectorUDAFSumDouble(col 19:double) -> double
+                      aggregators: VectorUDAFSumDouble(col 21:double) -> 
double, VectorUDAFSumDouble(col 18:double) -> double, VectorUDAFCount(col 
1:smallint) -> bigint, VectorUDAFSumDouble(col 25:double) -> double, 
VectorUDAFSumDouble(col 22:double) -> double, VectorUDAFCount(col 0:tinyint) -> 
bigint, VectorUDAFSumDouble(col 26:double) -> double, VectorUDAFSumDouble(col 
4:double) -> double, VectorUDAFCount(col 4:float) -> bigint, 
VectorUDAFSumDouble(col 4:float) -> double, VectorUDAFSumLong(col 2:int) -> 
bigint, VectorUDAFCount(col 2:int) -> bigint, VectorUDAFSumDouble(col 
30:double) -> double, VectorUDAFSumDouble(col 27:double) -> double
                       className: VectorGroupByOperator
                       groupByMode: HASH
                       native: false

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_7.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_7.q.out
index 229415e..f3e0e65 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_7.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_7.q.out
@@ -78,7 +78,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val -28800.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterLongColEqualLongColumn(col 0:int, col 2:int)(children: col 0:tinyint), 
FilterStringColLikeStringScalar(col 7:string, pattern ss)), 
FilterExprOrExpr(children: FilterDoubleColGreaterDoubleScalar(col 5:double, val 
988888.0), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
13:double, val -28815.0)(children: CastTimestampToDouble(col 9:timestamp) -> 
13:double), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 3569.0))))
+                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val -28800.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterLongColEqualLongColumn(col 0:int, col 2:int)(children: col 0:tinyint), 
FilterStringColLikeStringScalar(col 7:string, pattern ss)), 
FilterExprOrExpr(children: FilterDoubleColGreaterDoubleScalar(col 5:double, val 
988888.0), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
14:double, val -28815.0)(children: CastTimestampToDouble(col 9:timestamp) -> 
14:double), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 3569.0))))
               predicate: (((UDFToDouble(ctimestamp1) <= -28800.0D) or 
(UDFToInteger(ctinyint) = cint) or (cstring2 like 'ss')) and ((cdouble > 
988888.0D) or ((UDFToDouble(ctimestamp2) > -28815.0D) and (cdouble <= 
3569.0D))) and (ctinyint <> 0Y)) (type: boolean)
               Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -87,8 +87,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [10, 3, 1, 0, 8, 6, 14, 15, 16, 
17, 19, 20, 18, 21, 23]
-                    selectExpressions: LongColAddLongColumn(col 3:bigint, col 
3:bigint) -> 14:bigint, LongColModuloLongScalar(col 1:int, val -257)(children: 
col 1:smallint) -> 15:int, LongColUnaryMinus(col 1:smallint) -> 16:smallint, 
LongColUnaryMinus(col 0:tinyint) -> 17:tinyint, LongColAddLongScalar(col 
18:int, val 17)(children: LongColUnaryMinus(col 0:tinyint) -> 18:tinyint) -> 
19:int, LongColMultiplyLongColumn(col 3:bigint, col 18:bigint)(children: 
LongColUnaryMinus(col 1:smallint) -> 18:smallint) -> 20:bigint, 
LongColModuloLongColumn(col 2:int, col 1:int)(children: col 1:smallint) -> 
18:int, LongColUnaryMinus(col 0:tinyint) -> 21:tinyint, 
LongColModuloLongColumn(col 22:tinyint, col 0:tinyint)(children: 
LongColUnaryMinus(col 0:tinyint) -> 22:tinyint) -> 23:tinyint
+                    projectedOutputColumnNums: [10, 3, 1, 0, 8, 6, 15, 16, 17, 
18, 20, 22, 23, 24, 26]
+                    selectExpressions: LongColAddLongColumn(col 3:bigint, col 
3:bigint) -> 15:bigint, LongColModuloLongScalar(col 1:int, val -257)(children: 
col 1:smallint) -> 16:int, LongColUnaryMinus(col 1:smallint) -> 17:smallint, 
LongColUnaryMinus(col 0:tinyint) -> 18:tinyint, LongColAddLongScalar(col 
19:int, val 17)(children: LongColUnaryMinus(col 0:tinyint) -> 19:tinyint) -> 
20:int, LongColMultiplyLongColumn(col 3:bigint, col 21:bigint)(children: 
LongColUnaryMinus(col 1:smallint) -> 21:smallint) -> 22:bigint, 
LongColModuloLongColumn(col 2:int, col 1:int)(children: col 1:smallint) -> 
23:int, LongColUnaryMinus(col 0:tinyint) -> 24:tinyint, 
LongColModuloLongColumn(col 25:tinyint, col 0:tinyint)(children: 
LongColUnaryMinus(col 0:tinyint) -> 25:tinyint) -> 26:tinyint
                 Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: boolean), _col1 (type: 
bigint), _col2 (type: smallint), _col3 (type: tinyint), _col4 (type: 
timestamp), _col5 (type: string), _col6 (type: bigint), _col7 (type: int), 
_col8 (type: smallint), _col9 (type: tinyint), _col10 (type: int), _col11 
(type: bigint), _col12 (type: int), _col13 (type: tinyint), _col14 (type: 
tinyint)
@@ -297,7 +297,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val -28800.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterLongColEqualLongColumn(col 0:int, col 2:int)(children: col 0:tinyint), 
FilterStringColLikeStringScalar(col 7:string, pattern ss)), 
FilterExprOrExpr(children: FilterDoubleColGreaterDoubleScalar(col 5:double, val 
988888.0), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
13:double, val -28792.315)(children: CastTimestampToDouble(col 9:timestamp) -> 
13:double), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 3569.0))))
+                  predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val -28800.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterLongColEqualLongColumn(col 0:int, col 2:int)(children: col 0:tinyint), 
FilterStringColLikeStringScalar(col 7:string, pattern ss)), 
FilterExprOrExpr(children: FilterDoubleColGreaterDoubleScalar(col 5:double, val 
988888.0), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
14:double, val -28792.315)(children: CastTimestampToDouble(col 9:timestamp) -> 
14:double), FilterDoubleColLessEqualDoubleScalar(col 5:double, val 3569.0))))
               predicate: (((UDFToDouble(ctimestamp1) <= -28800.0D) or 
(UDFToInteger(ctinyint) = cint) or (cstring2 like 'ss')) and ((cdouble > 
988888.0D) or ((UDFToDouble(ctimestamp2) > -28792.315D) and (cdouble <= 
3569.0D))) and (ctinyint <> 0Y)) (type: boolean)
               Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -306,8 +306,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [10, 3, 1, 0, 8, 6, 14, 15, 16, 
17, 19, 20, 18, 21, 23]
-                    selectExpressions: LongColAddLongColumn(col 3:bigint, col 
3:bigint) -> 14:bigint, LongColModuloLongScalar(col 1:int, val -257)(children: 
col 1:smallint) -> 15:int, LongColUnaryMinus(col 1:smallint) -> 16:smallint, 
LongColUnaryMinus(col 0:tinyint) -> 17:tinyint, LongColAddLongScalar(col 
18:int, val 17)(children: LongColUnaryMinus(col 0:tinyint) -> 18:tinyint) -> 
19:int, LongColMultiplyLongColumn(col 3:bigint, col 18:bigint)(children: 
LongColUnaryMinus(col 1:smallint) -> 18:smallint) -> 20:bigint, 
LongColModuloLongColumn(col 2:int, col 1:int)(children: col 1:smallint) -> 
18:int, LongColUnaryMinus(col 0:tinyint) -> 21:tinyint, 
LongColModuloLongColumn(col 22:tinyint, col 0:tinyint)(children: 
LongColUnaryMinus(col 0:tinyint) -> 22:tinyint) -> 23:tinyint
+                    projectedOutputColumnNums: [10, 3, 1, 0, 8, 6, 15, 16, 17, 
18, 20, 22, 23, 24, 26]
+                    selectExpressions: LongColAddLongColumn(col 3:bigint, col 
3:bigint) -> 15:bigint, LongColModuloLongScalar(col 1:int, val -257)(children: 
col 1:smallint) -> 16:int, LongColUnaryMinus(col 1:smallint) -> 17:smallint, 
LongColUnaryMinus(col 0:tinyint) -> 18:tinyint, LongColAddLongScalar(col 
19:int, val 17)(children: LongColUnaryMinus(col 0:tinyint) -> 19:tinyint) -> 
20:int, LongColMultiplyLongColumn(col 3:bigint, col 21:bigint)(children: 
LongColUnaryMinus(col 1:smallint) -> 21:smallint) -> 22:bigint, 
LongColModuloLongColumn(col 2:int, col 1:int)(children: col 1:smallint) -> 
23:int, LongColUnaryMinus(col 0:tinyint) -> 24:tinyint, 
LongColModuloLongColumn(col 25:tinyint, col 0:tinyint)(children: 
LongColUnaryMinus(col 0:tinyint) -> 25:tinyint) -> 26:tinyint
                 Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: boolean), _col1 (type: 
bigint), _col2 (type: smallint), _col3 (type: tinyint), _col4 (type: 
timestamp), _col5 (type: string), _col6 (type: bigint), _col7 (type: int), 
_col8 (type: smallint), _col9 (type: tinyint), _col10 (type: int), _col11 
(type: bigint), _col12 (type: int), _col13 (type: tinyint), _col14 (type: 
tinyint)

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_8.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/parquet_vectorization_8.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_8.q.out
index e01cf4a..b0c3397 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_8.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_8.q.out
@@ -74,7 +74,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 7:string), 
FilterDoubleColLessEqualDoubleScalar(col 13:double, val 10.0)(children: 
CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val 16.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double)), 
FilterDoubleColLessDoubleScalar(col 4:float, val -6432.0), 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 10:boolean), 
FilterDoubleColEqualDoubleScalar(col 5:double, val 988888.0)))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 7:string), 
FilterDoubleColLessEqualDoubleScalar(col 13:double, val 10.0)(children: 
CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 14:double, val 16.0)(children: 
CastTimestampToDouble(col 9:timestamp) -> 14:double)), 
FilterDoubleColLessDoubleScalar(col 4:float, val -6432.0), 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 10:boolean), 
FilterDoubleColEqualDoubleScalar(col 5:double, val 988888.0)))
               predicate: ((cboolean1 is not null and (cdouble = 988888.0D)) or 
(cfloat < -6432.0) or (cstring2 is not null and (UDFToDouble(ctimestamp1) <= 
10.0D) and (UDFToDouble(ctimestamp2) <> 16.0D))) (type: boolean)
               Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -83,8 +83,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [8, 5, 10, 6, 4, 13, 14, 15, 
17, 19, 16, 18, 20, 22]
-                    selectExpressions: DoubleColUnaryMinus(col 5:double) -> 
13:double, DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 
14:double, DoubleColMultiplyDoubleScalar(col 5:double, val -257.0) -> 
15:double, DoubleColAddDoubleColumn(col 16:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 16:float) -> 17:float, 
DoubleColAddDoubleColumn(col 16:double, col 18:double)(children: 
DoubleColUnaryMinus(col 5:double) -> 16:double, CastLongToDouble(col 3:bigint) 
-> 18:double) -> 19:double, DoubleColUnaryMinus(col 5:double) -> 16:double, 
DoubleScalarSubtractDoubleColumn(val -1.3890000581741333, col 4:float) -> 
18:float, DoubleColUnaryMinus(col 4:float) -> 20:float, 
DoubleColAddDoubleColumn(col 21:double, col 23:double)(children: 
DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 21:double, 
DoubleColAddDoubleColumn(col 22:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 22:float) -> 23:float) -> 22:double
+                    projectedOutputColumnNums: [8, 5, 10, 6, 4, 15, 16, 17, 
19, 22, 23, 24, 25, 29]
+                    selectExpressions: DoubleColUnaryMinus(col 5:double) -> 
15:double, DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 
16:double, DoubleColMultiplyDoubleScalar(col 5:double, val -257.0) -> 
17:double, DoubleColAddDoubleColumn(col 18:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 18:float) -> 19:float, 
DoubleColAddDoubleColumn(col 20:double, col 21:double)(children: 
DoubleColUnaryMinus(col 5:double) -> 20:double, CastLongToDouble(col 3:bigint) 
-> 21:double) -> 22:double, DoubleColUnaryMinus(col 5:double) -> 23:double, 
DoubleScalarSubtractDoubleColumn(val -1.3890000581741333, col 4:float) -> 
24:float, DoubleColUnaryMinus(col 4:float) -> 25:float, 
DoubleColAddDoubleColumn(col 26:double, col 28:double)(children: 
DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 26:double, 
DoubleColAddDoubleColumn(col 27:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 27:float) -> 28:float) -> 29:double
                 Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: timestamp), _col1 (type: 
double), _col2 (type: boolean), _col3 (type: string), _col4 (type: float), 
_col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: 
float), _col9 (type: double), _col10 (type: double), _col11 (type: float), 
_col12 (type: float), _col13 (type: double)
@@ -280,7 +280,7 @@ STAGE PLANS:
               Filter Vectorization:
                   className: VectorFilterOperator
                   native: true
-                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 7:string), 
FilterDoubleColLessEqualDoubleScalar(col 13:double, val 12.503)(children: 
CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val 11.998)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double)), 
FilterDoubleColLessDoubleScalar(col 4:float, val -6432.0), 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 10:boolean), 
FilterDoubleColEqualDoubleScalar(col 5:double, val 988888.0)))
+                  predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 7:string), 
FilterDoubleColLessEqualDoubleScalar(col 13:double, val 12.503)(children: 
CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 14:double, val 11.998)(children: 
CastTimestampToDouble(col 9:timestamp) -> 14:double)), 
FilterDoubleColLessDoubleScalar(col 4:float, val -6432.0), 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 10:boolean), 
FilterDoubleColEqualDoubleScalar(col 5:double, val 988888.0)))
               predicate: ((cboolean1 is not null and (cdouble = 988888.0D)) or 
(cfloat < -6432.0) or (cstring2 is not null and (UDFToDouble(ctimestamp1) <= 
12.503D) and (UDFToDouble(ctimestamp2) <> 11.998D))) (type: boolean)
               Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
@@ -289,8 +289,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [8, 5, 10, 6, 4, 13, 14, 15, 
17, 19, 16, 18, 20, 22]
-                    selectExpressions: DoubleColUnaryMinus(col 5:double) -> 
13:double, DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 
14:double, DoubleColMultiplyDoubleScalar(col 5:double, val -257.0) -> 
15:double, DoubleColAddDoubleColumn(col 16:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 16:float) -> 17:float, 
DoubleColAddDoubleColumn(col 16:double, col 18:double)(children: 
DoubleColUnaryMinus(col 5:double) -> 16:double, CastLongToDouble(col 3:bigint) 
-> 18:double) -> 19:double, DoubleColUnaryMinus(col 5:double) -> 16:double, 
DoubleScalarSubtractDoubleColumn(val -1.3890000581741333, col 4:float) -> 
18:float, DoubleColUnaryMinus(col 4:float) -> 20:float, 
DoubleColAddDoubleColumn(col 21:double, col 23:double)(children: 
DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 21:double, 
DoubleColAddDoubleColumn(col 22:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 22:float) -> 23:float) -> 22:double
+                    projectedOutputColumnNums: [8, 5, 10, 6, 4, 15, 16, 17, 
19, 22, 23, 24, 25, 29]
+                    selectExpressions: DoubleColUnaryMinus(col 5:double) -> 
15:double, DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 
16:double, DoubleColMultiplyDoubleScalar(col 5:double, val -257.0) -> 
17:double, DoubleColAddDoubleColumn(col 18:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 18:float) -> 19:float, 
DoubleColAddDoubleColumn(col 20:double, col 21:double)(children: 
DoubleColUnaryMinus(col 5:double) -> 20:double, CastLongToDouble(col 3:bigint) 
-> 21:double) -> 22:double, DoubleColUnaryMinus(col 5:double) -> 23:double, 
DoubleScalarSubtractDoubleColumn(val -1.3890000581741333, col 4:float) -> 
24:float, DoubleColUnaryMinus(col 4:float) -> 25:float, 
DoubleColAddDoubleColumn(col 26:double, col 28:double)(children: 
DoubleScalarSubtractDoubleColumn(val -5638.15, col 5:double) -> 26:double, 
DoubleColAddDoubleColumn(col 27:float, col 4:float)(children: 
CastLongToFloatViaLongToDouble(col 2:int) -> 27:float) -> 28:float) -> 29:double
                 Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: timestamp), _col1 (type: 
double), _col2 (type: boolean), _col3 (type: string), _col4 (type: float), 
_col5 (type: double), _col6 (type: double), _col7 (type: double), _col8 (type: 
float), _col9 (type: double), _col10 (type: double), _col11 (type: float), 
_col12 (type: float), _col13 (type: double)

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/parquet_vectorization_div0.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/parquet_vectorization_div0.q.out 
b/ql/src/test/results/clientpositive/parquet_vectorization_div0.q.out
index c322e56..a04ac67 100644
--- a/ql/src/test/results/clientpositive/parquet_vectorization_div0.q.out
+++ b/ql/src/test/results/clientpositive/parquet_vectorization_div0.q.out
@@ -218,8 +218,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [13, 16, 18]
-                    selectExpressions: LongColSubtractLongScalar(col 3:bigint, 
val 988888) -> 13:bigint, DoubleColDivideDoubleColumn(col 5:double, col 
15:double)(children: CastLongToDouble(col 14:bigint)(children: 
LongColSubtractLongScalar(col 3:bigint, val 988888) -> 14:bigint) -> 15:double) 
-> 16:double, DecimalScalarDivideDecimalColumn(val 1.2, col 
17:decimal(19,0))(children: CastLongToDecimal(col 14:bigint)(children: 
LongColSubtractLongScalar(col 3:bigint, val 988888) -> 14:bigint) -> 
17:decimal(19,0)) -> 18:decimal(22,21)
+                    projectedOutputColumnNums: [13, 16, 19]
+                    selectExpressions: LongColSubtractLongScalar(col 3:bigint, 
val 988888) -> 13:bigint, DoubleColDivideDoubleColumn(col 5:double, col 
15:double)(children: CastLongToDouble(col 14:bigint)(children: 
LongColSubtractLongScalar(col 3:bigint, val 988888) -> 14:bigint) -> 15:double) 
-> 16:double, DecimalScalarDivideDecimalColumn(val 1.2, col 
18:decimal(19,0))(children: CastLongToDecimal(col 17:bigint)(children: 
LongColSubtractLongScalar(col 3:bigint, val 988888) -> 17:bigint) -> 
18:decimal(19,0)) -> 19:decimal(22,21)
                 Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: bigint), _col1 (type: double)
@@ -421,8 +421,8 @@ STAGE PLANS:
                 Select Vectorization:
                     className: VectorSelectOperator
                     native: true
-                    projectedOutputColumnNums: [13, 16, 17, 15, 18]
-                    selectExpressions: DoubleColAddDoubleScalar(col 5:double, 
val 200.0) -> 13:double, DoubleColDivideDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 3:bigint) -> 14:double, 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 15:double) -> 16:double, 
DoubleColDivideDoubleColumn(col 14:double, col 15:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 14:double, 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 15:double) -> 17:double, 
DoubleScalarDivideDoubleColumn(val 3.0, col 14:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 14:double) -> 15:double, 
DoubleScalarDivideDoubleColumn(val 1.2, col 14:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 14:double) -> 18:double
+                    projectedOutputColumnNums: [13, 16, 19, 21, 23]
+                    selectExpressions: DoubleColAddDoubleScalar(col 5:double, 
val 200.0) -> 13:double, DoubleColDivideDoubleColumn(col 14:double, col 
15:double)(children: CastLongToDouble(col 3:bigint) -> 14:double, 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 15:double) -> 16:double, 
DoubleColDivideDoubleColumn(col 17:double, col 18:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 17:double, 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 18:double) -> 19:double, 
DoubleScalarDivideDoubleColumn(val 3.0, col 20:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 20:double) -> 21:double, 
DoubleScalarDivideDoubleColumn(val 1.2, col 22:double)(children: 
DoubleColAddDoubleScalar(col 5:double, val 200.0) -> 22:double) -> 23:double
                 Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                 Reduce Output Operator
                   key expressions: _col0 (type: double), _col1 (type: double)

http://git-wip-us.apache.org/repos/asf/hive/blob/8b968c7e/ql/src/test/results/clientpositive/spark/parquet_vectorization_0.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_0.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_0.q.out
index 55998ae..1232957 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_0.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_0.q.out
@@ -1497,13 +1497,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: 147456 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
@@ -1557,8 +1557,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/parquet_vectorization_1.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_1.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_1.q.out
index e6cd26c..7472f66 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_1.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_1.q.out
@@ -80,13 +80,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: 147456 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
@@ -140,8 +140,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

Reply via email to