http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_outer_join3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/vector_outer_join3.q.out 
b/ql/src/test/results/clientpositive/llap/vector_outer_join3.q.out
index af69747..a975d8a 100644
--- a/ql/src/test/results/clientpositive/llap/vector_outer_join3.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_outer_join3.q.out
@@ -94,11 +94,11 @@ POSTHOOK: query: select * from small_alltypesorc1a_n1
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@small_alltypesorc1a_n1
 #### A masked pattern was here ####
-NULL   NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false
-NULL   NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false
-NULL   NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false
-NULL   NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false
-NULL   NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false
+-64    -10462  626923679       NULL    -64.0   -10462.0        821UdmGbkEf4j   
NULL    1969-12-31 16:00:02.496 1969-12-31 16:00:00.164 true    NULL
+-64    -15920  528534767       NULL    -64.0   -15920.0        
cvLH6Eat2yFsyy7p        NULL    1969-12-31 15:59:51.859 1969-12-31 16:00:14.468 
true    NULL
+-64    -6907   253665376       NULL    -64.0   -6907.0 1cGVWH7n1QU     NULL    
NULL    1969-12-31 15:59:53.66  true    NULL
+-64    -8080   528534767       NULL    -64.0   -8080.0 cvLH6Eat2yFsyy7p        
NULL    1969-12-31 15:59:58.044 1969-12-31 15:59:48.655 true    NULL
+-64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL
 PREHOOK: query: select * from small_alltypesorc2a_n1
 PREHOOK: type: QUERY
 PREHOOK: Input: default@small_alltypesorc2a_n1
@@ -216,16 +216,16 @@ POSTHOOK: Input: default@small_alltypesorc_a_n1
 -51    NULL    NULL    -1874052220     -51.0   NULL    c61B47I604gymFJ sjWQS78 
1969-12-31 16:00:08.451 NULL    false   false
 -51    NULL    NULL    -1927203921     -51.0   NULL    45ja5suO        42S0I0  
1969-12-31 16:00:08.451 NULL    true    true
 -51    NULL    NULL    -1970551565     -51.0   NULL    r2uhJH3 loXMWyrHjVeK    
1969-12-31 16:00:08.451 NULL    false   false
+-64    -10462  626923679       NULL    -64.0   -10462.0        821UdmGbkEf4j   
NULL    1969-12-31 16:00:02.496 1969-12-31 16:00:00.164 true    NULL
+-64    -15920  528534767       NULL    -64.0   -15920.0        
cvLH6Eat2yFsyy7p        NULL    1969-12-31 15:59:51.859 1969-12-31 16:00:14.468 
true    NULL
+-64    -6907   253665376       NULL    -64.0   -6907.0 1cGVWH7n1QU     NULL    
NULL    1969-12-31 15:59:53.66  true    NULL
 -64    -7196   NULL    -1615920595     -64.0   -7196.0 NULL    X5rDjl  
1969-12-31 16:00:11.912 1969-12-31 15:59:58.174 NULL    false
 -64    -7196   NULL    -1639157869     -64.0   -7196.0 NULL    
IJ0Oj7qAiqNGsN7gn       1969-12-31 16:00:01.785 1969-12-31 15:59:58.174 NULL    
false
 -64    -7196   NULL    -527203677      -64.0   -7196.0 NULL    
JBE4H5RoK412Cs260I72    1969-12-31 15:59:50.184 1969-12-31 15:59:58.174 NULL    
true
 -64    -7196   NULL    406535485       -64.0   -7196.0 NULL    E011i   
1969-12-31 15:59:56.048 1969-12-31 15:59:58.174 NULL    false
 -64    -7196   NULL    658026952       -64.0   -7196.0 NULL    4tAur   
1969-12-31 15:59:53.866 1969-12-31 15:59:58.174 NULL    true
-NULL   NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false
-NULL   NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false
-NULL   NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false
-NULL   NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false
-NULL   NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false
+-64    -8080   528534767       NULL    -64.0   -8080.0 cvLH6Eat2yFsyy7p        
NULL    1969-12-31 15:59:58.044 1969-12-31 15:59:48.655 true    NULL
+-64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL
 PREHOOK: query: explain vectorization detail formatted
 select count(*) from (select c.cstring1 
 from small_alltypesorc_a_n1 c
@@ -265,7 +265,7 @@ left outer join small_alltypesorc_a_n1 hd
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@small_alltypesorc_a_n1
 #### A masked pattern was here ####
-20
+32
 PREHOOK: query: explain vectorization detail formatted
 select count(*) from (select c.cstring1 
 from small_alltypesorc_a_n1 c
@@ -305,7 +305,7 @@ left outer join small_alltypesorc_a_n1 hd
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@small_alltypesorc_a_n1
 #### A masked pattern was here ####
-28
+24
 PREHOOK: query: explain vectorization detail formatted
 select count(*) from (select c.cstring1 
 from small_alltypesorc_a_n1 c
@@ -345,4 +345,4 @@ left outer join small_alltypesorc_a_n1 hd
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@small_alltypesorc_a_n1
 #### A masked pattern was here ####
-28
+24

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_outer_join4.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/vector_outer_join4.q.out 
b/ql/src/test/results/clientpositive/llap/vector_outer_join4.q.out
index 8b2d989..88e4593 100644
--- a/ql/src/test/results/clientpositive/llap/vector_outer_join4.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_outer_join4.q.out
@@ -130,16 +130,16 @@ POSTHOOK: query: select * from small_alltypesorc3b
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@small_alltypesorc3b
 #### A masked pattern was here ####
-NULL   NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false
-NULL   NULL    -609074876      -1887561756     NULL    NULL    EcM71   
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:55.061 true    false
-NULL   NULL    -700300206      -1887561756     NULL    NULL    kdqQE010        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:58.384 false   false
-NULL   NULL    -726473298      1864027286      NULL    NULL    
OFy1a1xf37f75b5N        4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:11.799 
true    true
-NULL   NULL    -738747840      -1645852809     NULL    NULL    
vmAT10eeE47fgH20pLi     xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.55  
true    false
-NULL   NULL    -838810013      1864027286      NULL    NULL    N016jPED08o     
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:44.252 false   true
-NULL   NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false
-NULL   NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false
-NULL   NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false
-NULL   NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false
+NULL   -16269  -378213344      -1645852809     NULL    -16269.0        
sOdj1Tmvbl03f   xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:15.867 false   
false
+NULL   -16274  -671342269      -1645852809     NULL    -16274.0        
3DE7EQo4KyT0hS  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:51.469 false   
false
+NULL   -16296  -146635689      -1645852809     NULL    -16296.0        
r251rbt884txX2MNq4MM14  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:44.809 
false   false
+NULL   -16296  593429004       -1887561756     NULL    -16296.0        
dhDYJ076SFcC    4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:47.422 false   
false
+NULL   -16300  -860437234      -1645852809     NULL    -16300.0        
Fb2W1r24opqN8m6571p     xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:45.815 
true    false
+NULL   -16306  384405526       -1645852809     NULL    -16306.0        b5SoK8  
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.105 true    false
+NULL   -16307  559926362       -1645852809     NULL    -16307.0        
nA8bdtWfPPQyP2hL5       xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:58.072 
false   false
+NULL   -16309  -826497289      -1645852809     NULL    -16309.0        
54o058c3mK6ewOQ5        xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:10.761 
false   false
+NULL   -16310  206154150       1864027286      NULL    -16310.0        5Hy1y6  
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:00.821 false   true
+NULL   -16379  -894716315      1864027286      NULL    -16379.0        
2ArdYqML3654nUjGJk3     4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:47.059 
true    true
 PREHOOK: query: select * from small_alltypesorc4b
 PREHOOK: type: QUERY
 PREHOOK: Input: default@small_alltypesorc4b
@@ -236,16 +236,16 @@ POSTHOOK: Input: default@small_alltypesorc_b
 -64    -7196   NULL    658026952       -64.0   -7196.0 NULL    4tAur   
1969-12-31 15:59:53.866 1969-12-31 15:59:58.174 NULL    true
 -64    -8080   528534767       NULL    -64.0   -8080.0 cvLH6Eat2yFsyy7p        
NULL    1969-12-31 15:59:58.044 1969-12-31 15:59:48.655 true    NULL
 -64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL
-NULL   NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false
-NULL   NULL    -609074876      -1887561756     NULL    NULL    EcM71   
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:55.061 true    false
-NULL   NULL    -700300206      -1887561756     NULL    NULL    kdqQE010        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:58.384 false   false
-NULL   NULL    -726473298      1864027286      NULL    NULL    
OFy1a1xf37f75b5N        4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:11.799 
true    true
-NULL   NULL    -738747840      -1645852809     NULL    NULL    
vmAT10eeE47fgH20pLi     xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.55  
true    false
-NULL   NULL    -838810013      1864027286      NULL    NULL    N016jPED08o     
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:44.252 false   true
-NULL   NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false
-NULL   NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false
-NULL   NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false
-NULL   NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false
+NULL   -16269  -378213344      -1645852809     NULL    -16269.0        
sOdj1Tmvbl03f   xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:15.867 false   
false
+NULL   -16274  -671342269      -1645852809     NULL    -16274.0        
3DE7EQo4KyT0hS  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:51.469 false   
false
+NULL   -16296  -146635689      -1645852809     NULL    -16296.0        
r251rbt884txX2MNq4MM14  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:44.809 
false   false
+NULL   -16296  593429004       -1887561756     NULL    -16296.0        
dhDYJ076SFcC    4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:47.422 false   
false
+NULL   -16300  -860437234      -1645852809     NULL    -16300.0        
Fb2W1r24opqN8m6571p     xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:45.815 
true    false
+NULL   -16306  384405526       -1645852809     NULL    -16306.0        b5SoK8  
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.105 true    false
+NULL   -16307  559926362       -1645852809     NULL    -16307.0        
nA8bdtWfPPQyP2hL5       xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:58.072 
false   false
+NULL   -16309  -826497289      -1645852809     NULL    -16309.0        
54o058c3mK6ewOQ5        xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:10.761 
false   false
+NULL   -16310  206154150       1864027286      NULL    -16310.0        5Hy1y6  
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:00.821 false   true
+NULL   -16379  -894716315      1864027286      NULL    -16379.0        
2ArdYqML3654nUjGJk3     4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:47.059 
true    true
 PREHOOK: query: explain vectorization detail formatted
 select * 
 from small_alltypesorc_b c
@@ -317,16 +317,16 @@ POSTHOOK: Input: default@small_alltypesorc_b
 -64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL    -64     -3097   
253665376       NULL    -64.0   -3097.0 1cGVWH7n1QU     NULL    1969-12-31 
16:00:00.013 1969-12-31 16:00:06.097 true    NULL
 -64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL    -64     -6907   
253665376       NULL    -64.0   -6907.0 1cGVWH7n1QU     NULL    NULL    
1969-12-31 15:59:53.66  true    NULL
 -64    -9842   253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    
1969-12-31 16:00:00.631 1969-12-31 16:00:01.781 true    NULL    -64     -9842   
253665376       NULL    -64.0   -9842.0 1cGVWH7n1QU     NULL    1969-12-31 
16:00:00.631 1969-12-31 16:00:01.781 true    NULL
-NULL   NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false   NULL    
NULL    -1015272448     -1887561756     NULL    NULL    jTQ68531mP      
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:45.854 false   false
-NULL   NULL    -609074876      -1887561756     NULL    NULL    EcM71   
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:55.061 true    false   NULL    
NULL    -609074876      -1887561756     NULL    NULL    EcM71   
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:55.061 true    false
-NULL   NULL    -700300206      -1887561756     NULL    NULL    kdqQE010        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:58.384 false   false   NULL    
NULL    -700300206      -1887561756     NULL    NULL    kdqQE010        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:58.384 false   false
-NULL   NULL    -726473298      1864027286      NULL    NULL    
OFy1a1xf37f75b5N        4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:11.799 
true    true    NULL    NULL    -726473298      1864027286      NULL    NULL    
OFy1a1xf37f75b5N        4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:11.799 
true    true
-NULL   NULL    -738747840      -1645852809     NULL    NULL    
vmAT10eeE47fgH20pLi     xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.55  
true    false   NULL    NULL    -738747840      -1645852809     NULL    NULL    
vmAT10eeE47fgH20pLi     xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.55  
true    false
-NULL   NULL    -838810013      1864027286      NULL    NULL    N016jPED08o     
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:44.252 false   true    NULL    
NULL    -838810013      1864027286      NULL    NULL    N016jPED08o     
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:44.252 false   true
-NULL   NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false   NULL    
NULL    -850295959      -1887561756     NULL    NULL    WMIgGA73        
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:00.348 false   false
-NULL   NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false   NULL    NULL    -886426182      -1887561756     NULL    NULL    
0i88xYq3gx1nW4vKjp7vBp3 4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:04.472 
true    false
-NULL   NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false   NULL    
NULL    -899422227      -1645852809     NULL    NULL    73xdw4X 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:07.395 false   false
-NULL   NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false   NULL    
NULL    -971543377      -1645852809     NULL    NULL    uN803aW 
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:05.43  false   false
+NULL   -16269  -378213344      -1645852809     NULL    -16269.0        
sOdj1Tmvbl03f   xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:15.867 false   
false   NULL    -16269  -378213344      -1645852809     NULL    -16269.0        
sOdj1Tmvbl03f   xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:15.867 false   
false
+NULL   -16274  -671342269      -1645852809     NULL    -16274.0        
3DE7EQo4KyT0hS  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:51.469 false   
false   NULL    -16274  -671342269      -1645852809     NULL    -16274.0        
3DE7EQo4KyT0hS  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:51.469 false   
false
+NULL   -16296  -146635689      -1645852809     NULL    -16296.0        
r251rbt884txX2MNq4MM14  xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:44.809 
false   false   NULL    -16296  -146635689      -1645852809     NULL    
-16296.0        r251rbt884txX2MNq4MM14  xH7445Rals48VOulSyR5F   NULL    
1969-12-31 15:59:44.809 false   false
+NULL   -16296  593429004       -1887561756     NULL    -16296.0        
dhDYJ076SFcC    4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:47.422 false   
false   NULL    -16296  593429004       -1887561756     NULL    -16296.0        
dhDYJ076SFcC    4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 15:59:47.422 false   
false
+NULL   -16300  -860437234      -1645852809     NULL    -16300.0        
Fb2W1r24opqN8m6571p     xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:45.815 
true    false   NULL    -16300  -860437234      -1645852809     NULL    
-16300.0        Fb2W1r24opqN8m6571p     xH7445Rals48VOulSyR5F   NULL    
1969-12-31 15:59:45.815 true    false
+NULL   -16306  384405526       -1645852809     NULL    -16306.0        b5SoK8  
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.105 true    false   NULL    
-16306  384405526       -1645852809     NULL    -16306.0        b5SoK8  
xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:11.105 true    false
+NULL   -16307  559926362       -1645852809     NULL    -16307.0        
nA8bdtWfPPQyP2hL5       xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:58.072 
false   false   NULL    -16307  559926362       -1645852809     NULL    
-16307.0        nA8bdtWfPPQyP2hL5       xH7445Rals48VOulSyR5F   NULL    
1969-12-31 15:59:58.072 false   false
+NULL   -16309  -826497289      -1645852809     NULL    -16309.0        
54o058c3mK6ewOQ5        xH7445Rals48VOulSyR5F   NULL    1969-12-31 16:00:10.761 
false   false   NULL    -16309  -826497289      -1645852809     NULL    
-16309.0        54o058c3mK6ewOQ5        xH7445Rals48VOulSyR5F   NULL    
1969-12-31 16:00:10.761 false   false
+NULL   -16310  206154150       1864027286      NULL    -16310.0        5Hy1y6  
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:00.821 false   true    NULL    
-16310  206154150       1864027286      NULL    -16310.0        5Hy1y6  
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:00.821 false   true
+NULL   -16379  -894716315      1864027286      NULL    -16379.0        
2ArdYqML3654nUjGJk3     4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:47.059 
true    true    NULL    -16379  -894716315      1864027286      NULL    
-16379.0        2ArdYqML3654nUjGJk3     4KWs6gw7lv2WYd66P       NULL    
1969-12-31 15:59:47.059 true    true
 PREHOOK: query: explain vectorization detail formatted
 select c.ctinyint 
 from small_alltypesorc_b c

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_outer_reference_windowed.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/vector_outer_reference_windowed.q.out 
b/ql/src/test/results/clientpositive/llap/vector_outer_reference_windowed.q.out
index ba2d9df..5e26637 100644
--- 
a/ql/src/test/results/clientpositive/llap/vector_outer_reference_windowed.q.out
+++ 
b/ql/src/test/results/clientpositive/llap/vector_outer_reference_windowed.q.out
@@ -588,7 +588,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -616,7 +616,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -893,7 +893,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -921,7 +921,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -1202,7 +1202,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -1230,7 +1230,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -1486,7 +1486,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -1886,7 +1886,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -1914,7 +1914,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -2191,7 +2191,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -2219,7 +2219,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -2500,7 +2500,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -2528,7 +2528,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -2784,7 +2784,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_ptf_part_simple.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/llap/vector_ptf_part_simple.q.out 
b/ql/src/test/results/clientpositive/llap/vector_ptf_part_simple.q.out
index 44bfe20..3097322 100644
--- a/ql/src/test/results/clientpositive/llap/vector_ptf_part_simple.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_ptf_part_simple.q.out
@@ -889,7 +889,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -917,7 +917,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -1167,7 +1167,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -1397,7 +1397,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -1612,7 +1612,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -1640,7 +1640,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -1891,7 +1891,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -2122,7 +2122,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -3014,7 +3014,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -3042,7 +3042,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -3244,7 +3244,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -3272,7 +3272,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -3474,7 +3474,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -3502,7 +3502,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -3705,7 +3705,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -3733,7 +3733,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -3936,7 +3936,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -3964,7 +3964,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -4167,7 +4167,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -4195,7 +4195,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 0
                         raw input shape:
                         window functions:
@@ -4667,7 +4667,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -4695,7 +4695,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -5145,7 +5145,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -5173,7 +5173,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -5568,7 +5568,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -5596,7 +5596,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -5970,7 +5970,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aaa
+                reduceColumnNullOrder: aaz
                 reduceColumnSortOrder: +++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -5998,7 +5998,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0, CASE WHEN ((_col0 = 
'Manufacturer#2')) THEN (TIMESTAMP'2000-01-01 00:00:00') ELSE (CAST( null AS 
TIMESTAMP)) END
                         raw input shape:
                         window functions:
@@ -6500,7 +6500,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -6528,7 +6528,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -6702,7 +6702,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aaa
+                reduceColumnNullOrder: aaz
                 reduceColumnSortOrder: +++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -6730,7 +6730,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col0, CASE WHEN ((_col0 = 
'Manufacturer#2')) THEN (TIMESTAMP'2000-01-01 00:00:00') ELSE (CAST( null AS 
TIMESTAMP)) END
                         raw input shape:
                         window functions:

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_string_concat.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/vector_string_concat.q.out 
b/ql/src/test/results/clientpositive/llap/vector_string_concat.q.out
index a4f32f1..39578d2 100644
--- a/ql/src/test/results/clientpositive/llap/vector_string_concat.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_string_concat.q.out
@@ -480,7 +480,6 @@ POSTHOOK: query: SELECT CONCAT(CONCAT(CONCAT('Quarter 
',CAST(CAST((MONTH(dt) - 1
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@vectortab2korc_n0
 #### A masked pattern was here ####
-NULL
 Quarter 1-1970
 Quarter 1-1971
 Quarter 1-1972
@@ -530,3 +529,4 @@ Quarter 1-2015
 Quarter 1-2016
 Quarter 1-2017
 Quarter 1-2018
+Quarter 1-2019

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_topnkey.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/vector_topnkey.q.out 
b/ql/src/test/results/clientpositive/llap/vector_topnkey.q.out
index 16803c9..3df3495 100644
--- a/ql/src/test/results/clientpositive/llap/vector_topnkey.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_topnkey.q.out
@@ -96,7 +96,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -138,7 +138,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -287,7 +287,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -326,7 +326,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -535,7 +535,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false

http://git-wip-us.apache.org/repos/asf/hive/blob/499d01a3/ql/src/test/results/clientpositive/llap/vector_windowing.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/llap/vector_windowing.q.out 
b/ql/src/test/results/clientpositive/llap/vector_windowing.q.out
index 53327bd..6637d33 100644
--- a/ql/src/test/results/clientpositive/llap/vector_windowing.q.out
+++ b/ql/src/test/results/clientpositive/llap/vector_windowing.q.out
@@ -72,7 +72,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -100,7 +100,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -367,7 +367,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -617,7 +617,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -777,7 +777,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -805,7 +805,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -987,7 +987,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -1188,7 +1188,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -1440,7 +1440,7 @@ STAGE PLANS:
                       Partition table definition
                         input alias: abc
                         name: noop
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         output shape: _col0: int, _col1: string, _col2: 
string, _col5: int, _col7: double
                         partition by: _col2
                         raw input shape:
@@ -1492,7 +1492,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -1664,7 +1664,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aaz
+                reduceColumnNullOrder: azz
                 reduceColumnSortOrder: ++-
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -1692,7 +1692,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST, _col5 DESC NULLS LAST
+                        order by: _col1 ASC NULLS LAST, _col5 DESC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -1855,7 +1855,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -1883,7 +1883,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -2064,7 +2064,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -2092,7 +2092,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -2291,7 +2291,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -2482,7 +2482,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 'Manufacturer#3'
                         raw input shape:
                         window functions:
@@ -2648,7 +2648,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -2798,7 +2798,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -2826,7 +2826,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -3033,7 +3033,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -3134,7 +3134,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col12 ASC NULLS FIRST, _col11 ASC NULLS 
FIRST
+                        order by: _col12 ASC NULLS LAST, _col11 ASC NULLS LAST
                         partition by: _col12
                         raw input shape:
                         window functions:
@@ -3324,7 +3324,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -3387,7 +3387,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col9 ASC NULLS FIRST
+                        order by: _col9 ASC NULLS LAST
                         partition by: _col6
                         raw input shape:
                         window functions:
@@ -3429,7 +3429,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col7 ASC NULLS FIRST, _col6 ASC NULLS FIRST
+                        order by: _col7 ASC NULLS LAST, _col6 ASC NULLS LAST
                         partition by: _col7
                         raw input shape:
                         window functions:
@@ -3586,7 +3586,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: true
                 usesVectorUDFAdaptor: false
@@ -3614,7 +3614,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -3686,7 +3686,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col4 ASC NULLS FIRST, _col3 ASC NULLS FIRST
+                        order by: _col4 ASC NULLS LAST, _col3 ASC NULLS LAST
                         partition by: _col4
                         raw input shape:
                         window functions:
@@ -3854,7 +3854,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST, _col1 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST, _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -4110,7 +4110,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST, _col0 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST, _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -4291,7 +4291,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST, _col1 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST, _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -4487,7 +4487,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST, _col1 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST, _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -4756,7 +4756,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -4781,7 +4781,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: zz
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -5035,7 +5035,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -5201,7 +5201,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST, _col4 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST, _col4 ASC NULLS LAST
                         partition by: _col0
                         raw input shape:
                         window functions:
@@ -5569,7 +5569,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -5660,7 +5660,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -5717,7 +5717,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col8 ASC NULLS FIRST
+                        order by: _col8 ASC NULLS LAST
                         partition by: _col5
                         raw input shape:
                         window functions:
@@ -5759,7 +5759,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col6 ASC NULLS FIRST, _col5 ASC NULLS FIRST
+                        order by: _col6 ASC NULLS LAST, _col5 ASC NULLS LAST
                         partition by: _col6
                         raw input shape:
                         window functions:
@@ -5820,7 +5820,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: true
                 usesVectorUDFAdaptor: false
@@ -5848,7 +5848,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -5920,7 +5920,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col4 ASC NULLS FIRST, _col3 ASC NULLS FIRST
+                        order by: _col4 ASC NULLS LAST, _col3 ASC NULLS LAST
                         partition by: _col4
                         raw input shape:
                         window functions:
@@ -6350,7 +6350,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col0 ASC NULLS FIRST
+                        order by: _col0 ASC NULLS LAST
                         partition by: _col1
                         raw input shape:
                         window functions:
@@ -6530,7 +6530,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col5 ASC NULLS FIRST
+                        order by: _col5 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -6694,7 +6694,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -6850,7 +6850,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7012,7 +7012,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7184,7 +7184,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7350,7 +7350,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7526,7 +7526,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7706,7 +7706,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -7885,7 +7885,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -8066,7 +8066,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -8094,7 +8094,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -8216,6 +8216,7 @@ STAGE PLANS:
 #### A masked pattern was here ####
       Edges:
         Reducer 2 <- Map 1 (SIMPLE_EDGE)
+        Reducer 3 <- Reducer 2 (SIMPLE_EDGE)
 #### A masked pattern was here ####
       Vertices:
         Map 1 
@@ -8261,16 +8262,16 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
-                allNative: false
+                allNative: true
                 usesVectorUDFAdaptor: false
                 vectorized: true
                 rowBatchContext:
                     dataColumnCount: 2
                     dataColumns: KEY.reducesinkkey0:string, VALUE._col6:double
                     partitionColumnCount: 0
-                    scratchColumnTypeNames: [double, double, double, double, 
bigint, double, double]
+                    scratchColumnTypeNames: [double, double]
             Reduce Operator Tree:
               Select Operator
                 expressions: KEY.reducesinkkey0 (type: string), VALUE._col6 
(type: double)
@@ -8289,7 +8290,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -8300,50 +8301,121 @@ STAGE PLANS:
                               window function: GenericUDAFSumDouble
                               window frame: RANGE PRECEDING(MAX)~CURRENT
                             window function definition
-                              alias: min_window_1
-                              arguments: _col7
-                              name: min
-                              window function: GenericUDAFMinEvaluator
-                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
-                            window function definition
                               alias: max_window_2
                               arguments: _col7
                               name: max
                               window function: GenericUDAFMaxEvaluator
                               window frame: RANGE PRECEDING(MAX)~CURRENT
+                  PTF Vectorization:
+                      className: VectorPTFOperator
+                      evaluatorClasses: [VectorPTFEvaluatorDoubleSum, 
VectorPTFEvaluatorDoubleMax]
+                      functionInputExpressions: [col 1:double, col 1:double]
+                      functionNames: [sum, max]
+                      keyInputColumns: [0]
+                      native: true
+                      nonKeyInputColumns: [1]
+                      orderExpressions: [col 0:string]
+                      outputColumns: [2, 3, 0, 1]
+                      outputTypes: [double, double, string, double]
+                      streamingColumns: []
+                  Statistics: Num rows: 26 Data size: 9724 Basic stats: 
COMPLETE Column stats: COMPLETE
+                  Select Operator
+                    expressions: sum_window_0 (type: double), max_window_2 
(type: double), _col2 (type: string), _col7 (type: double)
+                    outputColumnNames: sum_window_0, max_window_2, _col2, _col7
+                    Select Vectorization:
+                        className: VectorSelectOperator
+                        native: true
+                        projectedOutputColumnNums: [2, 3, 0, 1]
+                    Statistics: Num rows: 26 Data size: 9724 Basic stats: 
COMPLETE Column stats: COMPLETE
+                    Reduce Output Operator
+                      key expressions: _col2 (type: string)
+                      sort order: +
+                      Map-reduce partition columns: _col2 (type: string)
+                      Reduce Sink Vectorization:
+                          className: VectorReduceSinkObjectHashOperator
+                          keyColumnNums: [0]
+                          native: true
+                          nativeConditionsMet: 
hive.vectorized.execution.reducesink.new.enabled IS true, hive.execution.engine 
tez IN [tez, spark] IS true, No PTF TopN IS true, No DISTINCT columns IS true, 
BinarySortableSerDe for keys IS true, LazyBinarySerDe for values IS true
+                          partitionColumnNums: [0]
+                          valueColumnNums: [2, 3, 1]
+                      Statistics: Num rows: 26 Data size: 9724 Basic stats: 
COMPLETE Column stats: COMPLETE
+                      value expressions: sum_window_0 (type: double), 
max_window_2 (type: double), _col7 (type: double)
+        Reducer 3 
+            Execution mode: vectorized, llap
+            Reduce Vectorization:
+                enabled: true
+                enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
+                reduceColumnNullOrder: a
+                reduceColumnSortOrder: +
+                allNative: false
+                usesVectorUDFAdaptor: false
+                vectorized: true
+                rowBatchContext:
+                    dataColumnCount: 4
+                    dataColumns: KEY.reducesinkkey0:string, 
VALUE._col0:double, VALUE._col1:double, VALUE._col8:double
+                    partitionColumnCount: 0
+                    scratchColumnTypeNames: [double, double, bigint, double, 
double]
+            Reduce Operator Tree:
+              Select Operator
+                expressions: VALUE._col0 (type: double), VALUE._col1 (type: 
double), KEY.reducesinkkey0 (type: string), VALUE._col8 (type: double)
+                outputColumnNames: _col0, _col1, _col4, _col9
+                Select Vectorization:
+                    className: VectorSelectOperator
+                    native: true
+                    projectedOutputColumnNums: [1, 2, 0, 3]
+                Statistics: Num rows: 26 Data size: 10140 Basic stats: 
COMPLETE Column stats: COMPLETE
+                PTF Operator
+                  Function definitions:
+                      Input definition
+                        input alias: ptf_0
+                        output shape: _col0: double, _col1: double, _col4: 
string, _col9: double
+                        type: WINDOWING
+                      Windowing table definition
+                        input alias: ptf_1
+                        name: windowingtablefunction
+                        order by: _col4 ASC NULLS FIRST
+                        partition by: _col4
+                        raw input shape:
+                        window functions:
+                            window function definition
+                              alias: min_window_1
+                              arguments: _col9
+                              name: min
+                              window function: GenericUDAFMinEvaluator
+                              window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
                             window function definition
                               alias: avg_window_3
-                              arguments: _col7
+                              arguments: _col9
                               name: avg
                               window function: 
GenericUDAFAverageEvaluatorDouble
                               window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
                             window function definition
                               alias: count_window_4
-                              arguments: _col7
+                              arguments: _col9
                               name: count
                               window function: GenericUDAFCountEvaluator
                               window frame: ROWS PRECEDING(MAX)~FOLLOWING(MAX)
                   PTF Vectorization:
                       className: VectorPTFOperator
-                      evaluatorClasses: [VectorPTFEvaluatorDoubleSum, 
VectorPTFEvaluatorDoubleMin, VectorPTFEvaluatorDoubleMax, 
VectorPTFEvaluatorDoubleAvg, VectorPTFEvaluatorCount]
-                      functionInputExpressions: [col 1:double, col 1:double, 
col 1:double, col 1:double, col 1:double]
-                      functionNames: [sum, min, max, avg, count]
+                      evaluatorClasses: [VectorPTFEvaluatorDoubleMin, 
VectorPTFEvaluatorDoubleAvg, VectorPTFEvaluatorCount]
+                      functionInputExpressions: [col 3:double, col 3:double, 
col 3:double]
+                      functionNames: [min, avg, count]
                       keyInputColumns: [0]
                       native: true
-                      nonKeyInputColumns: [1]
+                      nonKeyInputColumns: [1, 2, 3]
                       orderExpressions: [col 0:string]
-                      outputColumns: [2, 3, 4, 5, 6, 0, 1]
-                      outputTypes: [double, double, double, double, bigint, 
string, double]
+                      outputColumns: [4, 5, 6, 1, 2, 0, 3]
+                      outputTypes: [double, double, bigint, double, double, 
string, double]
                       streamingColumns: []
-                  Statistics: Num rows: 26 Data size: 9724 Basic stats: 
COMPLETE Column stats: COMPLETE
+                  Statistics: Num rows: 26 Data size: 10140 Basic stats: 
COMPLETE Column stats: COMPLETE
                   Select Operator
-                    expressions: _col2 (type: string), round(sum_window_0, 2) 
(type: double), min_window_1 (type: double), max_window_2 (type: double), 
round(avg_window_3, 2) (type: double), count_window_4 (type: bigint)
+                    expressions: _col4 (type: string), round(_col0, 2) (type: 
double), min_window_1 (type: double), _col1 (type: double), round(avg_window_3, 
2) (type: double), count_window_4 (type: bigint)
                     outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                     Select Vectorization:
                         className: VectorSelectOperator
                         native: true
-                        projectedOutputColumnNums: [0, 7, 3, 4, 8, 6]
-                        selectExpressions: 
RoundWithNumDigitsDoubleToDouble(col 2, decimalPlaces 2) -> 7:double, 
RoundWithNumDigitsDoubleToDouble(col 5, decimalPlaces 2) -> 8:double
+                        projectedOutputColumnNums: [0, 7, 4, 2, 8, 6]
+                        selectExpressions: 
RoundWithNumDigitsDoubleToDouble(col 1, decimalPlaces 2) -> 7:double, 
RoundWithNumDigitsDoubleToDouble(col 5, decimalPlaces 2) -> 8:double
                     Statistics: Num rows: 26 Data size: 3588 Basic stats: 
COMPLETE Column stats: COMPLETE
                     File Output Operator
                       compressed: false
@@ -8484,7 +8556,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: zz
                 reduceColumnSortOrder: ++
                 allNative: true
                 usesVectorUDFAdaptor: false
@@ -8512,7 +8584,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col2 ASC NULLS FIRST, _col1 ASC NULLS FIRST
+                        order by: _col2 ASC NULLS LAST, _col1 ASC NULLS LAST
                         partition by: _col2, _col1
                         raw input shape:
                         window functions:
@@ -8567,7 +8639,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -8595,7 +8667,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col3 ASC NULLS FIRST
+                        order by: _col3 ASC NULLS LAST
                         partition by: _col4, _col3
                         raw input shape:
                         window functions:
@@ -8759,7 +8831,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -8787,7 +8859,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: substr(_col4, 2) ASC NULLS FIRST
+                        order by: substr(_col4, 2) ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -8947,7 +9019,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -8975,7 +9047,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -9134,7 +9206,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -9162,7 +9234,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col5 ASC NULLS FIRST
+                        order by: _col5 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -9337,7 +9409,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -9491,7 +9563,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col5 ASC NULLS FIRST
+                        order by: _col5 ASC NULLS LAST
                         partition by: _col2
                         raw input shape:
                         window functions:
@@ -9709,7 +9781,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: a
+                reduceColumnNullOrder: z
                 reduceColumnSortOrder: +
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -9866,7 +9938,7 @@ STAGE PLANS:
             Reduce Vectorization:
                 enabled: true
                 enableConditionsMet: hive.vectorized.execution.reduce.enabled 
IS true, hive.execution.engine tez IN [tez, spark] IS true
-                reduceColumnNullOrder: aa
+                reduceColumnNullOrder: az
                 reduceColumnSortOrder: ++
                 allNative: false
                 usesVectorUDFAdaptor: false
@@ -9894,7 +9966,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col5 ASC NULLS FIRST
+                        order by: _col5 ASC NULLS LAST
                         partition by: 'Manufacturer#6'
                         raw input shape:
                         window functions:
@@ -10056,7 +10128,7 @@ STAGE PLANS:
                       Windowing table definition
                         input alias: ptf_1
                         name: windowingtablefunction
-                        order by: _col1 ASC NULLS FIRST
+                        order by: _col1 ASC NULLS LAST
                         partition by: 'Manufacturer#1'
                         raw input shape:
                         window functions:

Reply via email to