http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/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 34b273c..0d201f6 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
@@ -129,7 +129,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 1 Data size: 184 Basic stats: COMPLETE 
Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: double), (_col0 / -26.28) (type: 
double), _col1 (type: double), (-1.389 + _col1) (type: double), (_col1 * 
(-1.389 + _col1)) (type: double), _col2 (type: tinyint), (- (_col1 * (-1.389 + 
_col1))) (type: double), _col3 (type: int), (CAST( _col3 AS decimal(10,0)) * 
79.553) (type: decimal(16,3)), _col4 (type: double), (10.175 % (- (_col1 * 
(-1.389 + _col1)))) (type: double), _col5 (type: bigint), (-563 % _col3) (type: 
int)
+                  expressions: _col0 (type: double), (_col0 / -26.28D) (type: 
double), _col1 (type: double), (-1.389D + _col1) (type: double), (_col1 * 
(-1.389D + _col1)) (type: double), _col2 (type: tinyint), (- (_col1 * (-1.389D 
+ _col1))) (type: double), _col3 (type: int), (CAST( _col3 AS decimal(10,0)) * 
79.553) (type: decimal(16,3)), _col4 (type: double), (10.175D % (- (_col1 * 
(-1.389D + _col1)))) (type: double), _col5 (type: bigint), (-563 % _col3) 
(type: int)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12
                   Statistics: Num rows: 1 Data size: 184 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_10.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_10.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_10.q.out
index 25ff960..c21e77f 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_10.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_10.q.out
@@ -72,10 +72,10 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterStringGroupColLessEqualStringScalar(col 7:string, val 10), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleColumn(col 13:double, 
col 5:double)(children: CastLongToDouble(col 0:tinyint) -> 13:double), 
FilterDecimalScalarGreaterEqualDecimalColumn(val -5638.15, col 
14:decimal(6,2))(children: CastLongToDecimal(col 0:tinyint) -> 
14:decimal(6,2))), FilterExprAndExpr(children: 
FilterDoubleColGreaterDoubleScalar(col 5:double, val 6981.0), 
FilterExprOrExpr(children: FilterDecimalColEqualDecimalScalar(col 
15:decimal(11,4), val 9763215.5639)(children: CastLongToDecimal(col 1:smallint) 
-> 15:decimal(11,4)), FilterStringColLikeStringScalar(col 6:string, pattern 
%a))))
-                    predicate: (((UDFToDouble(ctinyint) > cdouble) and 
(-5638.15 >= CAST( ctinyint AS decimal(6,2)))) or ((cdouble > 6981.0) and 
((CAST( csmallint AS decimal(11,4)) = 9763215.5639) or (cstring1 like '%a'))) 
or (cstring2 <= '10')) (type: boolean)
+                    predicate: (((UDFToDouble(ctinyint) > cdouble) and 
(-5638.15 >= CAST( ctinyint AS decimal(6,2)))) or ((cdouble > 6981.0D) and 
((CAST( csmallint AS decimal(11,4)) = 9763215.5639) or (cstring1 like '%a'))) 
or (cstring2 <= '10')) (type: boolean)
                     Statistics: Num rows: 9557 Data size: 114684 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: cdouble (type: double), ctimestamp1 (type: 
timestamp), ctinyint (type: tinyint), cboolean1 (type: boolean), cstring1 
(type: string), (- cdouble) (type: double), (cdouble + UDFToDouble(csmallint)) 
(type: double), ((cdouble + UDFToDouble(csmallint)) % 33.0) (type: double), (- 
cdouble) (type: double), (UDFToDouble(ctinyint) % cdouble) (type: double), 
(UDFToShort(ctinyint) % csmallint) (type: smallint), (- cdouble) (type: 
double), (cbigint * UDFToLong((UDFToShort(ctinyint) % csmallint))) (type: 
bigint), (9763215.5639 - (cdouble + UDFToDouble(csmallint))) (type: double), (- 
(- cdouble)) (type: double)
+                      expressions: cdouble (type: double), ctimestamp1 (type: 
timestamp), ctinyint (type: tinyint), cboolean1 (type: boolean), cstring1 
(type: string), (- cdouble) (type: double), (cdouble + UDFToDouble(csmallint)) 
(type: double), ((cdouble + UDFToDouble(csmallint)) % 33.0D) (type: double), (- 
cdouble) (type: double), (UDFToDouble(ctinyint) % cdouble) (type: double), 
(UDFToShort(ctinyint) % csmallint) (type: smallint), (- cdouble) (type: 
double), (cbigint * UDFToLong((UDFToShort(ctinyint) % csmallint))) (type: 
bigint), (9763215.5639D - (cdouble + UDFToDouble(csmallint))) (type: double), 
(- (- cdouble)) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_11.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_11.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_11.q.out
index e2d8465..aa8fc0f 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_11.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_11.q.out
@@ -57,7 +57,7 @@ STAGE PLANS:
                     predicate: ((cstring2 = cstring1) or (ctimestamp1 is null 
and (cstring1 like '%a'))) (type: boolean)
                     Statistics: Num rows: 9216 Data size: 110592 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: cstring1 (type: string), cboolean1 (type: 
boolean), cdouble (type: double), ctimestamp1 (type: timestamp), (-3728 * 
UDFToInteger(csmallint)) (type: int), (cdouble - 9763215.5639) (type: double), 
(- cdouble) (type: double), ((- cdouble) + 6981.0) (type: double), (cdouble * 
-5638.15) (type: double)
+                      expressions: cstring1 (type: string), cboolean1 (type: 
boolean), cdouble (type: double), ctimestamp1 (type: timestamp), (-3728 * 
UDFToInteger(csmallint)) (type: int), (cdouble - 9763215.5639D) (type: double), 
(- cdouble) (type: double), ((- cdouble) + 6981.0D) (type: double), (cdouble * 
-5638.15D) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_12.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_12.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_12.q.out
index 92cff3c..c9973c2 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_12.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_12.q.out
@@ -157,7 +157,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8
                 Statistics: Num rows: 1877 Data size: 22524 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col1 (type: bigint), _col3 (type: boolean), 
_col2 (type: string), _col0 (type: double), (-6432.0 * _col0) (type: double), 
(- _col1) (type: bigint), _col4 (type: bigint), (_col1 * _col4) (type: bigint), 
_col5 (type: double), ((-6432.0 * _col0) / -6432.0) (type: double), (- 
((-6432.0 * _col0) / -6432.0)) (type: double), _col6 (type: double), (- 
(-6432.0 * _col0)) (type: double), (-5638.15 + CAST( _col1 AS decimal(19,0))) 
(type: decimal(22,2)), _col7 (type: bigint), (_col6 / (-6432.0 * _col0)) (type: 
double), (- (- ((-6432.0 * _col0) / -6432.0))) (type: double), (((-6432.0 * 
_col0) / -6432.0) + (- (-6432.0 * _col0))) (type: double), _col8 (type: double)
+                  expressions: _col1 (type: bigint), _col3 (type: boolean), 
_col2 (type: string), _col0 (type: double), (-6432.0D * _col0) (type: double), 
(- _col1) (type: bigint), _col4 (type: bigint), (_col1 * _col4) (type: bigint), 
_col5 (type: double), ((-6432.0D * _col0) / -6432.0D) (type: double), (- 
((-6432.0D * _col0) / -6432.0D)) (type: double), _col6 (type: double), (- 
(-6432.0D * _col0)) (type: double), (-5638.15 + CAST( _col1 AS decimal(19,0))) 
(type: decimal(22,2)), _col7 (type: bigint), (_col6 / (-6432.0D * _col0)) 
(type: double), (- (- ((-6432.0D * _col0) / -6432.0D))) (type: double), 
(((-6432.0D * _col0) / -6432.0D) + (- (-6432.0D * _col0))) (type: double), 
_col8 (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col17, _col18, _col19
                   Statistics: Num rows: 1877 Data size: 22524 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_13.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_13.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_13.q.out
index 2251b11..15848da 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_13.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_13.q.out
@@ -93,7 +93,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleScalarGreaterEqualDoubleColumn(val 10.175, col 5:double), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val 11.0)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val 12.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))))
-                    predicate: (((UDFToDouble(ctimestamp1) > 11.0) and 
(UDFToDouble(ctimestamp2) <> 12.0) and (CAST( ctinyint AS decimal(11,4)) < 
9763215.5639)) or ((cfloat < 3569) and (10.175 >= cdouble) and (cboolean1 <> 
1))) (type: boolean)
+                    predicate: (((UDFToDouble(ctimestamp1) > 11.0D) and 
(UDFToDouble(ctimestamp2) <> 12.0D) and (CAST( ctinyint AS decimal(11,4)) < 
9763215.5639)) or ((cfloat < 3569) and (10.175D >= cdouble) and (cboolean1 <> 
1))) (type: boolean)
                     Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: ctinyint (type: tinyint), cfloat (type: 
float), cstring1 (type: string), ctimestamp1 (type: timestamp), cboolean1 
(type: boolean)
@@ -159,7 +159,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10
                 Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: boolean), _col1 (type: tinyint), 
_col2 (type: timestamp), _col3 (type: float), _col4 (type: string), (- _col1) 
(type: tinyint), _col5 (type: tinyint), ((- _col1) + _col5) (type: tinyint), 
_col6 (type: double), (_col6 * UDFToDouble(((- _col1) + _col5))) (type: 
double), (- _col6) (type: double), (79.553 * _col3) (type: float), _col7 (type: 
double), (- _col6) (type: double), _col8 (type: double), (CAST( ((- _col1) + 
_col5) AS decimal(3,0)) - 10.175) (type: decimal(7,3)), (- (- _col6)) (type: 
double), (-26.28 / (- (- _col6))) (type: double), _col9 (type: float), ((_col6 
* UDFToDouble(((- _col1) + _col5))) / UDFToDouble(_col1)) (type: double), 
_col10 (type: tinyint)
+                  expressions: _col0 (type: boolean), _col1 (type: tinyint), 
_col2 (type: timestamp), _col3 (type: float), _col4 (type: string), (- _col1) 
(type: tinyint), _col5 (type: tinyint), ((- _col1) + _col5) (type: tinyint), 
_col6 (type: double), (_col6 * UDFToDouble(((- _col1) + _col5))) (type: 
double), (- _col6) (type: double), (79.553 * _col3) (type: float), _col7 (type: 
double), (- _col6) (type: double), _col8 (type: double), (CAST( ((- _col1) + 
_col5) AS decimal(3,0)) - 10.175) (type: decimal(7,3)), (- (- _col6)) (type: 
double), (-26.28D / (- (- _col6))) (type: double), _col9 (type: float), ((_col6 
* UDFToDouble(((- _col1) + _col5))) / UDFToDouble(_col1)) (type: double), 
_col10 (type: tinyint)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20
                   Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator
@@ -416,7 +416,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessDoubleScalar(col 4:float, val 
3569.0), FilterDoubleScalarGreaterEqualDoubleColumn(val 10.175, col 5:double), 
FilterLongColNotEqualLongScalar(col 10:boolean, val 1)), 
FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 13:double, 
val -1.388)(children: CastTimestampToDouble(col 8:timestamp) -> 13:double), 
FilterDoubleColNotEqualDoubleScalar(col 13:double, val 
-1.3359999999999999)(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))))
-                    predicate: (((UDFToDouble(ctimestamp1) > -1.388) and 
(UDFToDouble(ctimestamp2) <> -1.3359999999999999) and (CAST( ctinyint AS 
decimal(11,4)) < 9763215.5639)) or ((cfloat < 3569) and (10.175 >= cdouble) and 
(cboolean1 <> 1))) (type: boolean)
+                    predicate: (((UDFToDouble(ctimestamp1) > -1.388D) and 
(UDFToDouble(ctimestamp2) <> -1.3359999999999999D) and (CAST( ctinyint AS 
decimal(11,4)) < 9763215.5639)) or ((cfloat < 3569) and (10.175D >= cdouble) 
and (cboolean1 <> 1))) (type: boolean)
                     Statistics: Num rows: 2730 Data size: 32760 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: ctinyint (type: tinyint), cfloat (type: 
float), cstring1 (type: string), ctimestamp1 (type: timestamp), cboolean1 
(type: boolean)
@@ -474,7 +474,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10
                 Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: boolean), _col1 (type: tinyint), 
_col2 (type: timestamp), _col3 (type: float), _col4 (type: string), (- _col1) 
(type: tinyint), _col5 (type: tinyint), ((- _col1) + _col5) (type: tinyint), 
_col6 (type: double), (_col6 * UDFToDouble(((- _col1) + _col5))) (type: 
double), (- _col6) (type: double), (79.553 * _col3) (type: float), _col7 (type: 
double), (- _col6) (type: double), _col8 (type: double), (CAST( ((- _col1) + 
_col5) AS decimal(3,0)) - 10.175) (type: decimal(7,3)), (- (- _col6)) (type: 
double), (-26.28 / (- (- _col6))) (type: double), _col9 (type: float), ((_col6 
* UDFToDouble(((- _col1) + _col5))) / UDFToDouble(_col1)) (type: double), 
_col10 (type: tinyint)
+                  expressions: _col0 (type: boolean), _col1 (type: tinyint), 
_col2 (type: timestamp), _col3 (type: float), _col4 (type: string), (- _col1) 
(type: tinyint), _col5 (type: tinyint), ((- _col1) + _col5) (type: tinyint), 
_col6 (type: double), (_col6 * UDFToDouble(((- _col1) + _col5))) (type: 
double), (- _col6) (type: double), (79.553 * _col3) (type: float), _col7 (type: 
double), (- _col6) (type: double), _col8 (type: double), (CAST( ((- _col1) + 
_col5) AS decimal(3,0)) - 10.175) (type: decimal(7,3)), (- (- _col6)) (type: 
double), (-26.28D / (- (- _col6))) (type: double), _col9 (type: float), ((_col6 
* UDFToDouble(((- _col1) + _col5))) / UDFToDouble(_col1)) (type: double), 
_col10 (type: tinyint)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20
                   Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_14.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_14.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_14.q.out
index f5b2896..752b45e 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_14.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_14.q.out
@@ -93,10 +93,10 @@ STAGE PLANS:
                         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)))
-                    predicate: (((UDFToDouble(cint) <= cdouble) or 
(ctimestamp2 < ctimestamp1)) and ((cbigint > -257) or (cfloat < 
UDFToFloat(cint))) and (UDFToLong(ctinyint) <= cbigint) and (cdouble < 
UDFToDouble(ctinyint))) (type: boolean)
+                    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
-                      expressions: ctimestamp1 (type: timestamp), cfloat 
(type: float), cstring1 (type: string), cboolean1 (type: boolean), cdouble 
(type: double), (- (-26.28 + cdouble)) (type: double)
+                      expressions: ctimestamp1 (type: timestamp), cfloat 
(type: float), cstring1 (type: string), cboolean1 (type: boolean), cdouble 
(type: double), (- (-26.28D + cdouble)) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5
                       Select Vectorization:
                           className: VectorSelectOperator
@@ -160,7 +160,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10
                 Statistics: Num rows: 303 Data size: 3636 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col3 (type: timestamp), _col1 (type: float), 
_col0 (type: string), _col4 (type: boolean), _col2 (type: double), (-26.28 + 
_col2) (type: double), (- (-26.28 + _col2)) (type: double), _col5 (type: 
double), (_col1 * -26.28) (type: float), _col6 (type: float), (- _col1) (type: 
float), (- _col6) (type: float), ((- (-26.28 + _col2)) / 10.175) (type: 
double), _col7 (type: double), _col8 (type: bigint), (- ((- (-26.28 + _col2)) / 
10.175)) (type: double), (-1.389 % _col5) (type: double), (UDFToDouble(_col1) - 
_col2) (type: double), _col9 (type: double), (_col9 % 10.175) (type: double), 
_col10 (type: double), (- (UDFToDouble(_col1) - _col2)) (type: double)
+                  expressions: _col3 (type: timestamp), _col1 (type: float), 
_col0 (type: string), _col4 (type: boolean), _col2 (type: double), (-26.28D + 
_col2) (type: double), (- (-26.28D + _col2)) (type: double), _col5 (type: 
double), (_col1 * -26.28) (type: float), _col6 (type: float), (- _col1) (type: 
float), (- _col6) (type: float), ((- (-26.28D + _col2)) / 10.175D) (type: 
double), _col7 (type: double), _col8 (type: bigint), (- ((- (-26.28D + _col2)) 
/ 10.175D)) (type: double), (-1.389D % _col5) (type: double), 
(UDFToDouble(_col1) - _col2) (type: double), _col9 (type: double), (_col9 % 
10.175D) (type: double), _col10 (type: double), (- (UDFToDouble(_col1) - 
_col2)) (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20, _col21
                   Statistics: Num rows: 303 Data size: 3636 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_15.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_15.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_15.q.out
index 97cc8de..73db3e7 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_15.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_15.q.out
@@ -89,7 +89,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterStringColLikeStringScalar(col 7:string, pattern %ss%), 
FilterStringColLikeStringScalar(col 6:string, pattern 10%), 
FilterExprAndExpr(children: FilterLongColGreaterEqualLongScalar(col 2:int, val 
-75), FilterLongColEqualLongColumn(col 0:smallint, col 1:smallint)(children: 
col 0:tinyint), FilterDoubleColGreaterEqualDoubleScalar(col 5:double, val 
-3728.0)))
-                    predicate: (((cint >= -75) and (UDFToShort(ctinyint) = 
csmallint) and (cdouble >= -3728.0)) or (cstring1 like '10%') or (cstring2 like 
'%ss%')) (type: boolean)
+                    predicate: (((cint >= -75) and (UDFToShort(ctinyint) = 
csmallint) and (cdouble >= -3728.0D)) or (cstring1 like '10%') or (cstring2 
like '%ss%')) (type: boolean)
                     Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: ctinyint (type: tinyint), cint (type: int), 
cfloat (type: float), cdouble (type: double), cstring1 (type: string), 
ctimestamp1 (type: timestamp), cboolean1 (type: boolean)
@@ -154,7 +154,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12
                 Statistics: Num rows: 6144 Data size: 73728 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: float), _col1 (type: boolean), 
_col2 (type: double), _col3 (type: string), _col4 (type: tinyint), _col5 (type: 
int), _col6 (type: timestamp), _col7 (type: double), (-26.28 - CAST( _col5 AS 
decimal(10,0))) (type: decimal(13,2)), _col8 (type: double), (_col2 * 79.553) 
(type: double), (33.0 % _col0) (type: float), _col9 (type: double), _col10 
(type: double), (-23.0 % _col2) (type: double), (- _col4) (type: tinyint), 
_col11 (type: double), (UDFToFloat(_col5) - _col0) (type: float), (-23 % 
UDFToInteger(_col4)) (type: int), (- (-26.28 - CAST( _col5 AS decimal(10,0)))) 
(type: decimal(13,2)), _col12 (type: double)
+                  expressions: _col0 (type: float), _col1 (type: boolean), 
_col2 (type: double), _col3 (type: string), _col4 (type: tinyint), _col5 (type: 
int), _col6 (type: timestamp), _col7 (type: double), (-26.28 - CAST( _col5 AS 
decimal(10,0))) (type: decimal(13,2)), _col8 (type: double), (_col2 * 79.553D) 
(type: double), (33.0 % _col0) (type: float), _col9 (type: double), _col10 
(type: double), (-23.0D % _col2) (type: double), (- _col4) (type: tinyint), 
_col11 (type: double), (UDFToFloat(_col5) - _col0) (type: float), (-23 % 
UDFToInteger(_col4)) (type: int), (- (-26.28 - CAST( _col5 AS decimal(10,0)))) 
(type: decimal(13,2)), _col12 (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15, 
_col16, _col17, _col18, _col19, _col20
                   Statistics: Num rows: 6144 Data size: 73728 Basic stats: 
COMPLETE Column stats: NONE
                   Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_16.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_16.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_16.q.out
index 94fd08c..cb26fca 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_16.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_16.q.out
@@ -66,7 +66,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterStringColLikeStringScalar(col 7:string, pattern %b%), 
FilterExprOrExpr(children: FilterDoubleColGreaterEqualDoubleScalar(col 
5:double, val -1.389), FilterStringGroupColLessStringScalar(col 6:string, val 
a)))
-                    predicate: (((cdouble >= -1.389) or (cstring1 < 'a')) and 
(cstring2 like '%b%')) (type: boolean)
+                    predicate: (((cdouble >= -1.389D) or (cstring1 < 'a')) and 
(cstring2 like '%b%')) (type: boolean)
                     Statistics: Num rows: 4096 Data size: 49152 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: cdouble (type: double), cstring1 (type: 
string), ctimestamp1 (type: timestamp)
@@ -132,7 +132,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 2048 Data size: 24576 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col1 (type: string), _col0 (type: double), 
_col2 (type: timestamp), (_col0 - 9763215.5639) (type: double), (- (_col0 - 
9763215.5639)) (type: double), _col3 (type: bigint), _col4 (type: double), (- 
_col4) (type: double), (_col4 * UDFToDouble(_col3)) (type: double), _col5 
(type: double), (9763215.5639 / _col0) (type: double), (CAST( _col3 AS 
decimal(19,0)) / -1.389) (type: decimal(28,6)), _col4 (type: double)
+                  expressions: _col1 (type: string), _col0 (type: double), 
_col2 (type: timestamp), (_col0 - 9763215.5639D) (type: double), (- (_col0 - 
9763215.5639D)) (type: double), _col3 (type: bigint), _col4 (type: double), (- 
_col4) (type: double), (_col4 * UDFToDouble(_col3)) (type: double), _col5 
(type: double), (9763215.5639D / _col0) (type: double), (CAST( _col3 AS 
decimal(19,0)) / -1.389) (type: decimal(28,6)), _col4 (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12
                   Statistics: Num rows: 2048 Data size: 24576 Basic stats: 
COMPLETE Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_17.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_17.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_17.q.out
index a5ef4ae..96fa66e 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_17.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_17.q.out
@@ -74,10 +74,10 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterLongColGreaterLongScalar(col 3:bigint, val -23), 
FilterExprOrExpr(children: FilterDoubleColNotEqualDoubleScalar(col 5:double, 
val 988888.0), FilterDecimalColGreaterDecimalScalar(col 13:decimal(13,3), val 
-863.257)(children: CastLongToDecimal(col 2:int) -> 13:decimal(13,3))), 
FilterExprOrExpr(children: FilterLongColGreaterEqualLongScalar(col 0:tinyint, 
val 33), FilterLongColGreaterEqualLongColumn(col 1:bigint, col 
3:bigint)(children: col 1:smallint), FilterDoubleColEqualDoubleColumn(col 
4:double, col 5:double)(children: col 4:float)))
-                    predicate: (((cdouble <> 988888.0) or (CAST( cint AS 
decimal(13,3)) > -863.257)) and ((ctinyint >= 33) or (UDFToLong(csmallint) >= 
cbigint) or (UDFToDouble(cfloat) = cdouble)) and (cbigint > -23)) (type: 
boolean)
+                    predicate: (((cdouble <> 988888.0D) or (CAST( cint AS 
decimal(13,3)) > -863.257)) and ((ctinyint >= 33Y) or (UDFToLong(csmallint) >= 
cbigint) or (UDFToDouble(cfloat) = cdouble)) and (cbigint > -23L)) (type: 
boolean)
                     Statistics: Num rows: 4096 Data size: 49152 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: cfloat (type: float), cstring1 (type: 
string), cint (type: int), ctimestamp1 (type: timestamp), cdouble (type: 
double), cbigint (type: bigint), (UDFToDouble(cfloat) / UDFToDouble(ctinyint)) 
(type: double), (UDFToLong(cint) % cbigint) (type: bigint), (- cdouble) (type: 
double), (cdouble + (UDFToDouble(cfloat) / UDFToDouble(ctinyint))) (type: 
double), (cdouble / UDFToDouble(cint)) (type: double), (- (- cdouble)) (type: 
double), (9763215.5639 % CAST( cbigint AS decimal(19,0))) (type: 
decimal(11,4)), (2563.58 + (- (- cdouble))) (type: double)
+                      expressions: cfloat (type: float), cstring1 (type: 
string), cint (type: int), ctimestamp1 (type: timestamp), cdouble (type: 
double), cbigint (type: bigint), (UDFToDouble(cfloat) / UDFToDouble(ctinyint)) 
(type: double), (UDFToLong(cint) % cbigint) (type: bigint), (- cdouble) (type: 
double), (cdouble + (UDFToDouble(cfloat) / UDFToDouble(ctinyint))) (type: 
double), (cdouble / UDFToDouble(cint)) (type: double), (- (- cdouble)) (type: 
double), (9763215.5639 % CAST( cbigint AS decimal(19,0))) (type: 
decimal(11,4)), (2563.58D + (- (- cdouble))) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_2.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_2.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_2.q.out
index f8802e4..206d113 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_2.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_2.q.out
@@ -72,7 +72,7 @@ STAGE PLANS:
                         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: 
FilterDoubleScalarNotEqualDoubleColumn(val -10669.0, col 13:double)(children: 
CastTimestampToDouble(col 9:timestamp) -> 13:double), 
FilterLongScalarGreaterLongColumn(val 359, col 2:int))))
-                    predicate: (((cdouble < UDFToDouble(ctinyint)) and 
((-10669.0 <> UDFToDouble(ctimestamp2)) or (359 > cint))) or ((ctimestamp1 < 
ctimestamp2) and (cstring2 like 'b%') and (cfloat <= -5638.15))) (type: boolean)
+                    predicate: (((cdouble < UDFToDouble(ctinyint)) and 
((-10669.0D <> UDFToDouble(ctimestamp2)) or (359 > cint))) 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
                       expressions: ctinyint (type: tinyint), csmallint (type: 
smallint), cbigint (type: bigint), cfloat (type: float), cdouble (type: double)
@@ -133,7 +133,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 1 Data size: 256 Basic stats: COMPLETE 
Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: double), (_col0 % -563.0) (type: 
double), (_col0 + 762.0) (type: double), _col1 (type: double), _col2 (type: 
double), (- _col2) (type: double), (_col1 - _col0) (type: double), _col3 (type: 
bigint), (- (_col1 - _col0)) (type: double), (_col2 - 762.0) (type: double), 
_col4 (type: tinyint), ((- _col2) + UDFToDouble(_col4)) (type: double), _col5 
(type: double), (((- _col2) + UDFToDouble(_col4)) - _col1) (type: double)
+                  expressions: _col0 (type: double), (_col0 % -563.0D) (type: 
double), (_col0 + 762.0D) (type: double), _col1 (type: double), _col2 (type: 
double), (- _col2) (type: double), (_col1 - _col0) (type: double), _col3 (type: 
bigint), (- (_col1 - _col0)) (type: double), (_col2 - 762.0D) (type: double), 
_col4 (type: tinyint), ((- _col2) + UDFToDouble(_col4)) (type: double), _col5 
(type: double), (((- _col2) + UDFToDouble(_col4)) - _col1) (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                   Statistics: Num rows: 1 Data size: 256 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_3.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_3.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_3.q.out
index 91b98b4..24caec0 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_3.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_3.q.out
@@ -77,7 +77,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterExprAndExpr(children: FilterDoubleColLessEqualDoubleColumn(col 13:float, 
col 4:float)(children: CastLongToFloatViaLongToDouble(col 2:int) -> 13:float), 
FilterDecimalScalarNotEqualDecimalColumn(val 79.553, col 
14:decimal(22,3))(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), 
FilterDecimalScalarLessEqualDecimalColumn(val 79.553, col 
15:decimal(8,3))(children: CastLongToDecimal(col 1:smallint) -> 
15:decimal(8,3)), FilterTimestampColGreaterTimestampColumn(col 8:timestamp, col 
9:timestamp)))
-                    predicate: (((UDFToDouble(cbigint) > cdouble) and (79.553 
<= CAST( csmallint AS decimal(8,3))) and (ctimestamp1 > ctimestamp2)) or 
((UDFToFloat(cint) <= cfloat) and (79.553 <> CAST( cbigint AS decimal(22,3))) 
and (UDFToDouble(ctimestamp2) = -29071.0))) (type: boolean)
+                    predicate: (((UDFToDouble(cbigint) > cdouble) and (79.553 
<= CAST( csmallint AS decimal(8,3))) and (ctimestamp1 > ctimestamp2)) or 
((UDFToFloat(cint) <= cfloat) and (79.553 <> CAST( cbigint AS decimal(22,3))) 
and (UDFToDouble(ctimestamp2) = -29071.0D))) (type: boolean)
                     Statistics: Num rows: 2503 Data size: 30036 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: ctinyint (type: tinyint), csmallint (type: 
smallint), cint (type: int), cfloat (type: float)
@@ -138,7 +138,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 1 Data size: 404 Basic stats: COMPLETE 
Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: double), (_col0 - 10.175) (type: 
double), _col1 (type: double), (_col0 * (_col0 - 10.175)) (type: double), (- 
_col1) (type: double), (_col0 % 79.553) (type: double), (- (_col0 * (_col0 - 
10.175))) (type: double), _col2 (type: double), (- _col0) (type: double), _col3 
(type: double), ((- (_col0 * (_col0 - 10.175))) / (_col0 - 10.175)) (type: 
double), (- (_col0 - 10.175)) (type: double), _col4 (type: double), (-3728.0 - 
_col0) (type: double), _col5 (type: double), (_col4 / _col2) (type: double)
+                  expressions: _col0 (type: double), (_col0 - 10.175D) (type: 
double), _col1 (type: double), (_col0 * (_col0 - 10.175D)) (type: double), (- 
_col1) (type: double), (_col0 % 79.553D) (type: double), (- (_col0 * (_col0 - 
10.175D))) (type: double), _col2 (type: double), (- _col0) (type: double), 
_col3 (type: double), ((- (_col0 * (_col0 - 10.175D))) / (_col0 - 10.175D)) 
(type: double), (- (_col0 - 10.175D)) (type: double), _col4 (type: double), 
(-3728.0D - _col0) (type: double), _col5 (type: double), (_col4 / _col2) (type: 
double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13, _col14, _col15
                   Statistics: Num rows: 1 Data size: 404 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_4.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_4.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_4.q.out
index 1d0de53..15ad77c 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_4.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_4.q.out
@@ -72,7 +72,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprOrExpr(children: 
FilterLongColGreaterEqualLongColumn(col 1:int, col 2:int)(children: col 
1:smallint), FilterExprAndExpr(children: 
FilterLongScalarGreaterEqualLongColumn(val -89010, col 0:int)(children: col 
0:tinyint), FilterDoubleColGreaterDoubleScalar(col 5:double, val 79.553)), 
FilterExprAndExpr(children: FilterLongScalarNotEqualLongColumn(val -563, col 
3:bigint), FilterExprOrExpr(children: FilterLongColNotEqualLongColumn(col 
0:bigint, col 3:bigint)(children: col 0:tinyint), 
FilterDoubleScalarGreaterEqualDoubleColumn(val -3728.0, col 5:double))))
-                    predicate: (((-563 <> cbigint) and ((UDFToLong(ctinyint) 
<> cbigint) or (-3728.0 >= cdouble))) or ((-89010 >= UDFToInteger(ctinyint)) 
and (cdouble > 79.553)) or (UDFToInteger(csmallint) >= cint)) (type: boolean)
+                    predicate: (((-563L <> cbigint) and ((UDFToLong(ctinyint) 
<> cbigint) or (-3728.0D >= cdouble))) or ((-89010 >= UDFToInteger(ctinyint)) 
and (cdouble > 79.553D)) or (UDFToInteger(csmallint) >= cint)) (type: boolean)
                     Statistics: Num rows: 12288 Data size: 147456 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: ctinyint (type: tinyint), cint (type: int), 
cdouble (type: double)
@@ -133,7 +133,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4
                 Statistics: Num rows: 1 Data size: 252 Basic stats: COMPLETE 
Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: bigint), (_col0 * -563) (type: 
bigint), (-3728 + _col0) (type: bigint), _col1 (type: double), (- _col1) (type: 
double), _col2 (type: double), ((_col0 * -563) % _col0) (type: bigint), 
(UDFToDouble(((_col0 * -563) % _col0)) / _col2) (type: double), _col3 (type: 
double), (- (UDFToDouble(((_col0 * -563) % _col0)) / _col2)) (type: double), 
((-3728 + _col0) - (_col0 * -563)) (type: bigint), _col4 (type: tinyint), _col4 
(type: tinyint), (UDFToDouble(_col4) * (- (UDFToDouble(((_col0 * -563) % 
_col0)) / _col2))) (type: double)
+                  expressions: _col0 (type: bigint), (_col0 * -563L) (type: 
bigint), (-3728L + _col0) (type: bigint), _col1 (type: double), (- _col1) 
(type: double), _col2 (type: double), ((_col0 * -563L) % _col0) (type: bigint), 
(UDFToDouble(((_col0 * -563L) % _col0)) / _col2) (type: double), _col3 (type: 
double), (- (UDFToDouble(((_col0 * -563L) % _col0)) / _col2)) (type: double), 
((-3728L + _col0) - (_col0 * -563L)) (type: bigint), _col4 (type: tinyint), 
_col4 (type: tinyint), (UDFToDouble(_col4) * (- (UDFToDouble(((_col0 * -563L) % 
_col0)) / _col2))) (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                   Statistics: Num rows: 1 Data size: 252 Basic stats: COMPLETE 
Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_5.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_5.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_5.q.out
index 32d078b..e3d77c3 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_5.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_5.q.out
@@ -143,7 +143,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4
                 Statistics: Num rows: 1 Data size: 28 Basic stats: COMPLETE 
Column stats: NONE
                 Select Operator
-                  expressions: _col0 (type: smallint), (UDFToInteger(_col0) * 
-75) (type: int), _col1 (type: bigint), (UDFToDouble((UDFToInteger(_col0) * 
-75)) / UDFToDouble(_col1)) (type: double), (6981 * UDFToInteger(_col0)) (type: 
int), _col2 (type: smallint), (- _col2) (type: smallint), (197.0 % 
(UDFToDouble((UDFToInteger(_col0) * -75)) / UDFToDouble(_col1))) (type: 
double), _col3 (type: bigint), _col4 (type: tinyint), (- _col4) (type: 
tinyint), ((- _col4) + _col4) (type: tinyint)
+                  expressions: _col0 (type: smallint), (UDFToInteger(_col0) * 
-75) (type: int), _col1 (type: bigint), (UDFToDouble((UDFToInteger(_col0) * 
-75)) / UDFToDouble(_col1)) (type: double), (6981 * UDFToInteger(_col0)) (type: 
int), _col2 (type: smallint), (- _col2) (type: smallint), (197.0D % 
(UDFToDouble((UDFToInteger(_col0) * -75)) / UDFToDouble(_col1))) (type: 
double), _col3 (type: bigint), _col4 (type: tinyint), (- _col4) (type: 
tinyint), ((- _col4) + _col4) (type: tinyint)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11
                   Select Vectorization:
                       className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_6.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_6.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_6.q.out
index b74f56b..a47754c 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_6.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_6.q.out
@@ -66,10 +66,10 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterExprAndExpr(children: 
FilterLongColLessEqualLongScalar(col 10:boolean, val 0), 
FilterLongColGreaterEqualLongColumn(col 11:boolean, col 10:boolean)), 
FilterExprAndExpr(children: SelectColumnIsNotNull(col 3:bigint), 
FilterExprOrExpr(children: FilterStringColLikeStringScalar(col 7:string, 
pattern %a), FilterDoubleColLessEqualDoubleScalar(col 4:float, val -257.0)))))
-                    predicate: ((((cboolean1 <= 0) and (cboolean2 >= 
cboolean1)) or (cbigint is not null and ((cstring2 like '%a') or (cfloat <= 
-257)))) and (ctinyint <> 0)) (type: boolean)
+                    predicate: ((((cboolean1 <= 0) and (cboolean2 >= 
cboolean1)) or (cbigint is not null and ((cstring2 like '%a') or (cfloat <= 
-257)))) and (ctinyint <> 0Y)) (type: boolean)
                     Statistics: Num rows: 11605 Data size: 139260 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: cboolean1 (type: boolean), cfloat (type: 
float), cstring1 (type: string), (988888 * UDFToInteger(csmallint)) (type: 
int), (- csmallint) (type: smallint), (- cfloat) (type: float), (-26.28 / 
UDFToDouble(cfloat)) (type: double), (cfloat * 359.0) (type: float), (cint % 
UDFToInteger(ctinyint)) (type: int), (- cdouble) (type: double), 
(UDFToInteger(ctinyint) - -75) (type: int), (762 * (cint % 
UDFToInteger(ctinyint))) (type: int)
+                      expressions: cboolean1 (type: boolean), cfloat (type: 
float), cstring1 (type: string), (988888 * UDFToInteger(csmallint)) (type: 
int), (- csmallint) (type: smallint), (- cfloat) (type: float), (-26.28D / 
UDFToDouble(cfloat)) (type: double), (cfloat * 359.0) (type: float), (cint % 
UDFToInteger(ctinyint)) (type: int), (- cdouble) (type: double), 
(UDFToInteger(ctinyint) - -75) (type: int), (762 * (cint % 
UDFToInteger(ctinyint))) (type: int)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8, _col9, _col10, _col11
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_7.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_7.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_7.q.out
index f01e808..50617b1 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_7.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_7.q.out
@@ -80,7 +80,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val 0.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: FilterDoubleScalarLessDoubleColumn(val 988888.0, col 
5:double), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
13:double, val -15.0)(children: CastTimestampToDouble(col 9:timestamp) -> 
13:double), FilterDoubleScalarGreaterEqualDoubleColumn(val 3569.0, col 
5:double))))
-                    predicate: (((988888.0 < cdouble) or 
((UDFToDouble(ctimestamp2) > -15.0) and (3569.0 >= cdouble))) and 
((UDFToDouble(ctimestamp1) <= 0.0) or (UDFToInteger(ctinyint) = cint) or 
(cstring2 like 'ss')) and (ctinyint <> 0)) (type: boolean)
+                    predicate: (((988888.0D < cdouble) or 
((UDFToDouble(ctimestamp2) > -15.0D) and (3569.0D >= cdouble))) and 
((UDFToDouble(ctimestamp1) <= 0.0D) or (UDFToInteger(ctinyint) = cint) or 
(cstring2 like 'ss')) and (ctinyint <> 0Y)) (type: boolean)
                     Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: cboolean1 (type: boolean), cbigint (type: 
bigint), csmallint (type: smallint), ctinyint (type: tinyint), ctimestamp1 
(type: timestamp), cstring1 (type: string), (cbigint + cbigint) (type: bigint), 
(UDFToInteger(csmallint) % -257) (type: int), (- csmallint) (type: smallint), 
(- ctinyint) (type: tinyint), (UDFToInteger((- ctinyint)) + 17) (type: int), 
(cbigint * UDFToLong((- csmallint))) (type: bigint), (cint % 
UDFToInteger(csmallint)) (type: int), (- ctinyint) (type: tinyint), ((- 
ctinyint) % ctinyint) (type: tinyint)
@@ -327,7 +327,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterLongColNotEqualLongScalar(col 0:tinyint, val 0), 
FilterExprOrExpr(children: FilterDoubleColLessEqualDoubleScalar(col 13:double, 
val 0.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: FilterDoubleScalarLessDoubleColumn(val 988888.0, col 
5:double), FilterExprAndExpr(children: FilterDoubleColGreaterDoubleScalar(col 
13:double, val 7.6850000000000005)(children: CastTimestampToDouble(col 
9:timestamp) -> 13:double), FilterDoubleScalarGreaterEqualDoubleColumn(val 
3569.0, col 5:double))))
-                    predicate: (((988888.0 < cdouble) or 
((UDFToDouble(ctimestamp2) > 7.6850000000000005) and (3569.0 >= cdouble))) and 
((UDFToDouble(ctimestamp1) <= 0.0) or (UDFToInteger(ctinyint) = cint) or 
(cstring2 like 'ss')) and (ctinyint <> 0)) (type: boolean)
+                    predicate: (((988888.0D < cdouble) or 
((UDFToDouble(ctimestamp2) > 7.6850000000000005D) and (3569.0D >= cdouble))) 
and ((UDFToDouble(ctimestamp1) <= 0.0D) or (UDFToInteger(ctinyint) = cint) or 
(cstring2 like 'ss')) and (ctinyint <> 0Y)) (type: boolean)
                     Statistics: Num rows: 5461 Data size: 65532 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: cboolean1 (type: boolean), cbigint (type: 
bigint), csmallint (type: smallint), ctinyint (type: tinyint), ctimestamp1 
(type: timestamp), cstring1 (type: string), (cbigint + cbigint) (type: bigint), 
(UDFToInteger(csmallint) % -257) (type: int), (- csmallint) (type: smallint), 
(- ctinyint) (type: tinyint), (UDFToInteger((- ctinyint)) + 17) (type: int), 
(cbigint * UDFToLong((- csmallint))) (type: bigint), (cint % 
UDFToInteger(csmallint)) (type: int), (- ctinyint) (type: tinyint), ((- 
ctinyint) % ctinyint) (type: tinyint)

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_8.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_8.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_8.q.out
index b4f17c4..d01b32c 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_8.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_8.q.out
@@ -76,10 +76,10 @@ STAGE PLANS:
                         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)))
-                    predicate: ((cboolean1 is not null and (cdouble = 
988888.0)) or (cfloat < -6432) or (cstring2 is not null and 
(UDFToDouble(ctimestamp1) <= 10.0) and (UDFToDouble(ctimestamp2) <> 16.0))) 
(type: boolean)
+                    predicate: ((cboolean1 is not null and (cdouble = 
988888.0D)) or (cfloat < -6432) 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
-                      expressions: ctimestamp1 (type: timestamp), cdouble 
(type: double), cboolean1 (type: boolean), cstring1 (type: string), cfloat 
(type: float), (- cdouble) (type: double), (-5638.15 - cdouble) (type: double), 
(cdouble * -257.0) (type: double), (UDFToFloat(cint) + cfloat) (type: float), 
((- cdouble) + UDFToDouble(cbigint)) (type: double), (- cdouble) (type: 
double), (-1.389 - cfloat) (type: float), (- cfloat) (type: float), ((-5638.15 
- cdouble) + UDFToDouble((UDFToFloat(cint) + cfloat))) (type: double)
+                      expressions: ctimestamp1 (type: timestamp), cdouble 
(type: double), cboolean1 (type: boolean), cstring1 (type: string), cfloat 
(type: float), (- cdouble) (type: double), (-5638.15D - cdouble) (type: 
double), (cdouble * -257.0D) (type: double), (UDFToFloat(cint) + cfloat) (type: 
float), ((- cdouble) + UDFToDouble(cbigint)) (type: double), (- cdouble) (type: 
double), (-1.389 - cfloat) (type: float), (- cfloat) (type: float), ((-5638.15D 
- cdouble) + UDFToDouble((UDFToFloat(cint) + cfloat))) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                       Select Vectorization:
                           className: VectorSelectOperator
@@ -310,10 +310,10 @@ STAGE PLANS:
                         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)))
-                    predicate: ((cboolean1 is not null and (cdouble = 
988888.0)) or (cfloat < -6432) or (cstring2 is not null and 
(UDFToDouble(ctimestamp1) <= 12.503) and (UDFToDouble(ctimestamp2) <> 11.998))) 
(type: boolean)
+                    predicate: ((cboolean1 is not null and (cdouble = 
988888.0D)) or (cfloat < -6432) 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
-                      expressions: ctimestamp1 (type: timestamp), cdouble 
(type: double), cboolean1 (type: boolean), cstring1 (type: string), cfloat 
(type: float), (- cdouble) (type: double), (-5638.15 - cdouble) (type: double), 
(cdouble * -257.0) (type: double), (UDFToFloat(cint) + cfloat) (type: float), 
((- cdouble) + UDFToDouble(cbigint)) (type: double), (- cdouble) (type: 
double), (-1.389 - cfloat) (type: float), (- cfloat) (type: float), ((-5638.15 
- cdouble) + UDFToDouble((UDFToFloat(cint) + cfloat))) (type: double)
+                      expressions: ctimestamp1 (type: timestamp), cdouble 
(type: double), cboolean1 (type: boolean), cstring1 (type: string), cfloat 
(type: float), (- cdouble) (type: double), (-5638.15D - cdouble) (type: 
double), (cdouble * -257.0D) (type: double), (UDFToFloat(cint) + cfloat) (type: 
float), ((- cdouble) + UDFToDouble(cbigint)) (type: double), (- cdouble) (type: 
double), (-1.389 - cfloat) (type: float), (- cfloat) (type: float), ((-5638.15D 
- cdouble) + UDFToDouble((UDFToFloat(cint) + cfloat))) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4, 
_col5, _col6, _col7, _col8, _col9, _col10, _col11, _col12, _col13
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_9.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_9.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_9.q.out
index 94fd08c..cb26fca 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_9.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_9.q.out
@@ -66,7 +66,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterStringColLikeStringScalar(col 7:string, pattern %b%), 
FilterExprOrExpr(children: FilterDoubleColGreaterEqualDoubleScalar(col 
5:double, val -1.389), FilterStringGroupColLessStringScalar(col 6:string, val 
a)))
-                    predicate: (((cdouble >= -1.389) or (cstring1 < 'a')) and 
(cstring2 like '%b%')) (type: boolean)
+                    predicate: (((cdouble >= -1.389D) or (cstring1 < 'a')) and 
(cstring2 like '%b%')) (type: boolean)
                     Statistics: Num rows: 4096 Data size: 49152 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: cdouble (type: double), cstring1 (type: 
string), ctimestamp1 (type: timestamp)
@@ -132,7 +132,7 @@ STAGE PLANS:
                 outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 2048 Data size: 24576 Basic stats: 
COMPLETE Column stats: NONE
                 Select Operator
-                  expressions: _col1 (type: string), _col0 (type: double), 
_col2 (type: timestamp), (_col0 - 9763215.5639) (type: double), (- (_col0 - 
9763215.5639)) (type: double), _col3 (type: bigint), _col4 (type: double), (- 
_col4) (type: double), (_col4 * UDFToDouble(_col3)) (type: double), _col5 
(type: double), (9763215.5639 / _col0) (type: double), (CAST( _col3 AS 
decimal(19,0)) / -1.389) (type: decimal(28,6)), _col4 (type: double)
+                  expressions: _col1 (type: string), _col0 (type: double), 
_col2 (type: timestamp), (_col0 - 9763215.5639D) (type: double), (- (_col0 - 
9763215.5639D)) (type: double), _col3 (type: bigint), _col4 (type: double), (- 
_col4) (type: double), (_col4 * UDFToDouble(_col3)) (type: double), _col5 
(type: double), (9763215.5639D / _col0) (type: double), (CAST( _col3 AS 
decimal(19,0)) / -1.389) (type: decimal(28,6)), _col4 (type: double)
                   outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5, 
_col6, _col7, _col8, _col9, _col10, _col11, _col12
                   Statistics: Num rows: 2048 Data size: 24576 Basic stats: 
COMPLETE Column stats: NONE
                   File Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_div0.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_div0.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_div0.q.out
index 5ba7587..76b4e3c 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_div0.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_div0.q.out
@@ -25,7 +25,7 @@ STAGE PLANS:
                   TableScan Vectorization:
                       native: true
                   Select Operator
-                    expressions: (cdouble / 0.0) (type: double)
+                    expressions: (cdouble / 0.0D) (type: double)
                     outputColumnNames: _col0
                     Select Vectorization:
                         className: VectorSelectOperator
@@ -209,7 +209,7 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterLongColGreaterLongScalar(col 3:bigint, val 0), 
FilterLongColLessLongScalar(col 3:bigint, val 100000000))
-                    predicate: ((cbigint < 100000000) and (cbigint > 0)) 
(type: boolean)
+                    predicate: ((cbigint < 100000000L) and (cbigint > 0L)) 
(type: boolean)
                     Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: (cbigint - 988888) (type: bigint), (cdouble 
/ UDFToDouble((cbigint - 988888))) (type: double), (1.2 / CAST( (cbigint - 
988888) AS decimal(19,0))) (type: decimal(22,21))
@@ -425,10 +425,10 @@ STAGE PLANS:
                         className: VectorFilterOperator
                         native: true
                         predicateExpression: FilterExprAndExpr(children: 
FilterDoubleColGreaterEqualDoubleScalar(col 5:double, val -500.0), 
FilterDoubleColLessDoubleScalar(col 5:double, val -199.0))
-                    predicate: ((cdouble < -199.0) and (cdouble >= -500.0)) 
(type: boolean)
+                    predicate: ((cdouble < -199.0D) and (cdouble >= -500.0D)) 
(type: boolean)
                     Statistics: Num rows: 1365 Data size: 16380 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: (cdouble + 200.0) (type: double), 
(UDFToDouble(cbigint) / (cdouble + 200.0)) (type: double), ((cdouble + 200.0) / 
(cdouble + 200.0)) (type: double), (3.0 / (cdouble + 200.0)) (type: double), 
(1.2 / (cdouble + 200.0)) (type: double)
+                      expressions: (cdouble + 200.0D) (type: double), 
(UDFToDouble(cbigint) / (cdouble + 200.0D)) (type: double), ((cdouble + 200.0D) 
/ (cdouble + 200.0D)) (type: double), (3.0D / (cdouble + 200.0D)) (type: 
double), (1.2D / (cdouble + 200.0D)) (type: double)
                       outputColumnNames: _col0, _col1, _col2, _col4, _col5
                       Select Vectorization:
                           className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_limit.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_limit.q.out 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_limit.q.out
index ca696ab..20d7e4e 100644
--- a/ql/src/test/results/clientpositive/spark/parquet_vectorization_limit.q.out
+++ b/ql/src/test/results/clientpositive/spark/parquet_vectorization_limit.q.out
@@ -248,7 +248,7 @@ STAGE PLANS:
                       native: true
                       vectorizationSchemaColumns: [0:ctinyint:tinyint, 
1:csmallint:smallint, 2:cint:int, 3:cbigint:bigint, 4:cfloat:float, 
5:cdouble:double, 6:cstring1:string, 7:cstring2:string, 
8:ctimestamp1:timestamp, 9:ctimestamp2:timestamp, 10:cboolean1:boolean, 
11:cboolean2:boolean, 
12:ROW__ID:struct<transactionid:bigint,bucketid:int,rowid:bigint>]
                   Select Operator
-                    expressions: ctinyint (type: tinyint), (cdouble + 1.0) 
(type: double)
+                    expressions: ctinyint (type: tinyint), (cdouble + 1.0D) 
(type: double)
                     outputColumnNames: _col0, _col1
                     Select Vectorization:
                         className: VectorSelectOperator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/parquet_vectorization_part_project.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_part_project.q.out
 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_part_project.q.out
index 944101f..8c6beb5 100644
--- 
a/ql/src/test/results/clientpositive/spark/parquet_vectorization_part_project.q.out
+++ 
b/ql/src/test/results/clientpositive/spark/parquet_vectorization_part_project.q.out
@@ -71,7 +71,7 @@ STAGE PLANS:
                   alias: alltypesparquet_part
                   Statistics: Num rows: 200 Data size: 2400 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: (cdouble + 2.0) (type: double)
+                    expressions: (cdouble + 2.0D) (type: double)
                     outputColumnNames: _col0
                     Statistics: Num rows: 200 Data size: 2400 Basic stats: 
COMPLETE Column stats: NONE
                     Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/pcr.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/pcr.q.out 
b/ql/src/test/results/clientpositive/spark/pcr.q.out
index 42ecd51..a86147f 100644
--- a/ql/src/test/results/clientpositive/spark/pcr.q.out
+++ b/ql/src/test/results/clientpositive/spark/pcr.q.out
@@ -4139,7 +4139,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: (UDFToDouble(key) = 11.0) (type: boolean)
+                    predicate: (UDFToDouble(key) = 11.0D) (type: boolean)
                     Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string), 
hr (type: string)
@@ -4328,7 +4328,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: (UDFToDouble(key) = 11.0) (type: boolean)
+                    predicate: (UDFToDouble(key) = 11.0D) (type: boolean)
                     Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string), 
ds (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/ppd_join2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_join2.q.out 
b/ql/src/test/results/clientpositive/spark/ppd_join2.q.out
index e0e6b31..cf692ed 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_join2.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_join2.q.out
@@ -76,7 +76,7 @@ STAGE PLANS:
                   alias: src
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key <> '306') and (sqrt(key) <> 13.0) and 
value is not null) (type: boolean)
+                    predicate: ((key <> '306') and (sqrt(key) <> 13.0D) and 
value is not null) (type: boolean)
                     Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: value (type: string)
@@ -1756,7 +1756,7 @@ STAGE PLANS:
                   alias: src
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key <> '306') and (sqrt(key) <> 13.0) and 
value is not null) (type: boolean)
+                    predicate: ((key <> '306') and (sqrt(key) <> 13.0D) and 
value is not null) (type: boolean)
                     Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: value (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/ppd_join_filter.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_join_filter.q.out 
b/ql/src/test/results/clientpositive/spark/ppd_join_filter.q.out
index b017647..59936bb 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_join_filter.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_join_filter.q.out
@@ -233,10 +233,10 @@ STAGE PLANS:
                 Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
                 Filter Operator
                   isSamplingPred: false
-                  predicate: ((UDFToDouble(_col1) + 1.0) < 5.0) (type: boolean)
+                  predicate: ((UDFToDouble(_col1) + 1.0D) < 5.0D) (type: 
boolean)
                   Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0) (type: double), (UDFToDouble(_col1) + 3.0) (type: double)
+                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0D) (type: double), (UDFToDouble(_col1) + 3.0D) (type: double)
                     outputColumnNames: _col0, _col1, _col2
                     Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                     Reduce Output Operator
@@ -524,10 +524,10 @@ STAGE PLANS:
                 Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
                 Filter Operator
                   isSamplingPred: false
-                  predicate: ((UDFToDouble(_col1) + 1.0) < 5.0) (type: boolean)
+                  predicate: ((UDFToDouble(_col1) + 1.0D) < 5.0D) (type: 
boolean)
                   Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0) (type: double), (UDFToDouble(_col1) + 3.0) (type: double)
+                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0D) (type: double), (UDFToDouble(_col1) + 3.0D) (type: double)
                     outputColumnNames: _col0, _col1, _col2
                     Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                     Reduce Output Operator
@@ -815,10 +815,10 @@ STAGE PLANS:
                 Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
                 Filter Operator
                   isSamplingPred: false
-                  predicate: ((UDFToDouble(_col1) + 1.0) < 5.0) (type: boolean)
+                  predicate: ((UDFToDouble(_col1) + 1.0D) < 5.0D) (type: 
boolean)
                   Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0) (type: double), (UDFToDouble(_col1) + 3.0) (type: double)
+                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0D) (type: double), (UDFToDouble(_col1) + 3.0D) (type: double)
                     outputColumnNames: _col0, _col1, _col2
                     Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                     Reduce Output Operator
@@ -1106,10 +1106,10 @@ STAGE PLANS:
                 Statistics: Num rows: 250 Data size: 2656 Basic stats: 
COMPLETE Column stats: NONE
                 Filter Operator
                   isSamplingPred: false
-                  predicate: ((UDFToDouble(_col1) + 1.0) < 5.0) (type: boolean)
+                  predicate: ((UDFToDouble(_col1) + 1.0D) < 5.0D) (type: 
boolean)
                   Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0) (type: double), (UDFToDouble(_col1) + 3.0) (type: double)
+                    expressions: _col0 (type: string), (UDFToDouble(_col1) + 
2.0D) (type: double), (UDFToDouble(_col1) + 3.0D) (type: double)
                     outputColumnNames: _col0, _col1, _col2
                     Statistics: Num rows: 83 Data size: 881 Basic stats: 
COMPLETE Column stats: NONE
                     Reduce Output Operator

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/ppd_outer_join1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_outer_join1.q.out 
b/ql/src/test/results/clientpositive/spark/ppd_outer_join1.q.out
index 4000f89..067f70c 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_outer_join1.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_outer_join1.q.out
@@ -33,7 +33,7 @@ STAGE PLANS:
                   alias: a
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -51,7 +51,7 @@ STAGE PLANS:
                   alias: b
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -148,7 +148,7 @@ STAGE PLANS:
                   alias: a
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -166,7 +166,7 @@ STAGE PLANS:
                   alias: b
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/ppd_outer_join4.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/ppd_outer_join4.q.out 
b/ql/src/test/results/clientpositive/spark/ppd_outer_join4.q.out
index f7f911c..058029f 100644
--- a/ql/src/test/results/clientpositive/spark/ppd_outer_join4.q.out
+++ b/ql/src/test/results/clientpositive/spark/ppd_outer_join4.q.out
@@ -39,7 +39,7 @@ STAGE PLANS:
                   alias: a
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -57,7 +57,7 @@ STAGE PLANS:
                   alias: c
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string)
@@ -74,7 +74,7 @@ STAGE PLANS:
                   alias: b
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -413,7 +413,7 @@ STAGE PLANS:
                   alias: a
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -431,7 +431,7 @@ STAGE PLANS:
                   alias: c
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string)
@@ -448,7 +448,7 @@ STAGE PLANS:
                   alias: b
                   Statistics: Num rows: 500 Data size: 5312 Basic stats: 
COMPLETE Column stats: NONE
                   Filter Operator
-                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0)) (type: boolean)
+                    predicate: ((key < '20') and (key > '15') and (sqrt(key) 
<> 13.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)

http://git-wip-us.apache.org/repos/asf/hive/blob/17441e48/ql/src/test/results/clientpositive/spark/router_join_ppr.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/router_join_ppr.q.out 
b/ql/src/test/results/clientpositive/spark/router_join_ppr.q.out
index f666940..322bae0 100644
--- a/ql/src/test/results/clientpositive/spark/router_join_ppr.q.out
+++ b/ql/src/test/results/clientpositive/spark/router_join_ppr.q.out
@@ -35,7 +35,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -109,7 +109,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 111 Data size: 1179 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -341,7 +341,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 111 Data size: 1179 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -466,7 +466,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -651,7 +651,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -725,7 +725,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 111 Data size: 1179 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -957,7 +957,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 111 Data size: 1179 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)
@@ -1082,7 +1082,7 @@ STAGE PLANS:
                   GatherStats: false
                   Filter Operator
                     isSamplingPred: false
-                    predicate: ((UDFToDouble(key) < 20.0) and 
(UDFToDouble(key) > 15.0)) (type: boolean)
+                    predicate: ((UDFToDouble(key) < 20.0D) and 
(UDFToDouble(key) > 15.0D)) (type: boolean)
                     Statistics: Num rows: 55 Data size: 584 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
                       expressions: key (type: string), value (type: string)

Reply via email to