http://git-wip-us.apache.org/repos/asf/hive/blob/63deec40/ql/src/test/results/clientpositive/tez/vectorized_casts.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/tez/vectorized_casts.q.out 
b/ql/src/test/results/clientpositive/tez/vectorized_casts.q.out
index c9992a6..1dd07b1 100644
--- a/ql/src/test/results/clientpositive/tez/vectorized_casts.q.out
+++ b/ql/src/test/results/clientpositive/tez/vectorized_casts.q.out
@@ -1,4 +1,6 @@
-PREHOOK: query: -- Test type casting in vectorized mode to verify end-to-end 
functionality.
+PREHOOK: query: -- SORT_QUERY_RESULTS
+
+-- Test type casting in vectorized mode to verify end-to-end functionality.
 
 explain 
 select 
@@ -72,7 +74,9 @@ from alltypesorc
 -- limit output to a reasonably small number of rows
 where cbigint % 250 = 0
 PREHOOK: type: QUERY
-POSTHOOK: query: -- Test type casting in vectorized mode to verify end-to-end 
functionality.
+POSTHOOK: query: -- SORT_QUERY_RESULTS
+
+-- Test type casting in vectorized mode to verify end-to-end functionality.
 
 explain 
 select 
@@ -309,29 +313,29 @@ where cbigint % 250 = 0
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-36     -200    NULL    -2006216750     -36     -200    NULL    -15     NULL    
NULL    -36     -36     -36     -36.0   -200.0  NULL    -2.00621675E9   -36.0   
-200.0  NULL    -14.252 NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.964 
1969-12-31 15:59:59.8   NULL    1969-12-08 10:43:03.25  1969-12-31 15:59:24     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 15:59:45.748 
NULL    NULL    -36     -200    NULL    -2006216750     -36.0   -200.0  NULL    
0       1969-12-31 15:59:45.748 NULL    -36.0   NULL    0.9917788534431158      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-36     -200    NULL    1599879000      -36     -200    NULL    -7      NULL    
NULL    -36     -36     -36     -36.0   -200.0  NULL    1.599879E9      -36.0   
-200.0  NULL    -6.183  NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.964 
1969-12-31 15:59:59.8   NULL    1970-01-19 04:24:39     1969-12-31 15:59:24     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 15:59:53.817 
NULL    NULL    -36     -200    NULL    1599879000      -36.0   -200.0  NULL    
0       1969-12-31 15:59:53.817 NULL    -36.0   NULL    0.9917788534431158      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-30     -200    NULL    1429852250      -30     -200    NULL    12      NULL    
NULL    -30     -30     -30     -30.0   -200.0  NULL    1.42985225E9    -30.0   
-200.0  NULL    12.935  NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.97  
1969-12-31 15:59:59.8   NULL    1970-01-17 05:10:52.25  1969-12-31 15:59:30     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 16:00:12.935 
NULL    NULL    -30     -200    NULL    1429852250      -30.0   -200.0  NULL    
0       1969-12-31 16:00:12.935 NULL    -30.0   NULL    0.9880316240928618      
NULL
 true   NULL    true    true    true    NULL    false   false   true    true    
-51     NULL    773600971       1053923250      -51     NULL    0       8       
NULL    2       -51     -51     -51     -51.0   NULL    7.73600971E8    
1.05392325E9    -51.0   NULL    0.0     8.451   NULL    2.0     7.7360096E8     
NULL    1969-12-31 15:59:59.949 NULL    1970-01-09 14:53:20.971 1970-01-12 
20:45:23.25  1969-12-31 15:59:09     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:08.451 NULL    NULL    -51     NULL    773600971  
     1053923250      -51.0   NULL    FALSE   0       1969-12-31 16:00:08.451 
2yK4Bx76O       -51.0   1.547201942E9   -0.6702291758433747     7.7360096E8
-true   NULL    true    true    true    NULL    true    false   true    true    
-51     NULL    747553882       -1930467250     -51     NULL    1       8       
NULL    NULL    -51     -51     -51     -51.0   NULL    7.47553882E8    
-1.93046725E9   -51.0   NULL    1.0     8.451   NULL    NULL    7.4755386E8     
NULL    1969-12-31 15:59:59.949 NULL    1970-01-09 07:39:13.882 1969-12-09 
07:45:32.75  1969-12-31 15:59:09     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:08.451 NULL    NULL    -51     NULL    747553882  
     -1930467250     -51.0   NULL    TRUE    0       1969-12-31 16:00:08.451 
q8M86Fx0r       -51.0   1.495107764E9   -0.6702291758433747     7.47553857E8
-true   true    NULL    true    true    true    NULL    false   true    NULL    
20      15601   NULL    -362433250      20      15601   NULL    -15     NULL    
NULL    20      20      20      20.0    15601.0 NULL    -3.6243325E8    20.0    
15601.0 NULL    -14.871 NULL    NULL    NULL    15601.0 1969-12-31 16:00:00.02  
1969-12-31 16:00:15.601 NULL    1969-12-27 11:19:26.75  1969-12-31 16:00:20     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 15:59:45.129 
NULL    NULL    20      15601   NULL    -362433250      20.0    15601.0 NULL    
0       1969-12-31 15:59:45.129 NULL    20.0    NULL    0.9129452507276277      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-38     15601   NULL    -1858689000     -38     15601   NULL    -2      NULL    
NULL    -38     -38     -38     -38.0   15601.0 NULL    -1.858689E9     -38.0   
15601.0 NULL    -1.3860000000000001     NULL    NULL    NULL    15601.0 
1969-12-31 15:59:59.962 1969-12-31 16:00:15.601 NULL    1969-12-10 03:41:51     
1969-12-31 15:59:22     1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     
1969-12-31 15:59:58.614 NULL    NULL    -38     15601   NULL    -1858689000     
-38.0   15601.0 NULL    0       1969-12-31 15:59:58.614 NULL    -38.0   NULL    
-0.2963685787093853     NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-5      15601   NULL    612416000       -5      15601   NULL    4       NULL    
NULL    -5      -5      -5      -5.0    15601.0 NULL    6.12416E8       -5.0    
15601.0 NULL    4.679   NULL    NULL    NULL    15601.0 1969-12-31 15:59:59.995 
1969-12-31 16:00:15.601 NULL    1970-01-07 18:06:56     1969-12-31 15:59:55     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 16:00:04.679 
NULL    NULL    -5      15601   NULL    612416000       -5.0    15601.0 NULL    
0       1969-12-31 16:00:04.679 NULL    -5.0    NULL    0.9589242746631385      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
48      15601   NULL    -795361000      48      15601   NULL    -10     NULL    
NULL    48      48      48      48.0    15601.0 NULL    -7.95361E8      48.0    
15601.0 NULL    -9.765  NULL    NULL    NULL    15601.0 1969-12-31 16:00:00.048 
1969-12-31 16:00:15.601 NULL    1969-12-22 11:03:59     1969-12-31 16:00:48     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 15:59:50.235 
NULL    NULL    48      15601   NULL    -795361000      48.0    15601.0 NULL    
0       1969-12-31 15:59:50.235 NULL    48.0    NULL    -0.7682546613236668     
NULL
-true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    -661621138      -931392750      8       NULL    0       15      
NULL    NULL    8       8       8       8.0     NULL    -6.61621138E8   
-9.3139275E8    8.0     NULL    0.0     15.892  NULL    NULL    -6.6162112E8    
NULL    1969-12-31 16:00:00.008 NULL    1969-12-24 00:12:58.862 1969-12-20 
21:16:47.25  1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    -661621138 
     -931392750      8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
L15l8i5k558tBcDV20      8.0     -1.323242276E9  0.9893582466233818      
-6.6162112E8
 true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    -102936434      -1312782750     8       NULL    0       15      
NULL    NULL    8       8       8       8.0     NULL    -1.02936434E8   
-1.31278275E9   8.0     NULL    0.0     15.892  NULL    NULL    -1.02936432E8   
NULL    1969-12-31 16:00:00.008 NULL    1969-12-30 11:24:23.566 1969-12-16 
11:20:17.25  1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    -102936434 
     -1312782750     8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
eJROSNhugc3kQR7Pb       8.0     -2.05872868E8   0.9893582466233818      
-1.02936432E8
-true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    805179664       868161500       8       NULL    0       15      
NULL    NULL    8       8       8       8.0     NULL    8.05179664E8    
8.681615E8      8.0     NULL    0.0     15.892  NULL    NULL    8.0517965E8     
NULL    1969-12-31 16:00:00.008 NULL    1970-01-09 23:39:39.664 1970-01-10 
17:09:21.5   1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    805179664  
     868161500       8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
e005B5q 8.0     1.610359328E9   0.9893582466233818      8.05179648E8
+true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    -661621138      -931392750      8       NULL    0       15      
NULL    NULL    8       8       8       8.0     NULL    -6.61621138E8   
-9.3139275E8    8.0     NULL    0.0     15.892  NULL    NULL    -6.6162112E8    
NULL    1969-12-31 16:00:00.008 NULL    1969-12-24 00:12:58.862 1969-12-20 
21:16:47.25  1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    -661621138 
     -931392750      8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
L15l8i5k558tBcDV20      8.0     -1.323242276E9  0.9893582466233818      
-6.6162112E8
 true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    -669632311      1588591250      8       NULL    0       15      
NULL    3       8       8       8       8.0     NULL    -6.69632311E8   
1.58859125E9    8.0     NULL    0.0     15.892  NULL    3.0     -6.6963232E8    
NULL    1969-12-31 16:00:00.008 NULL    1969-12-23 21:59:27.689 1970-01-19 
01:16:31.25  1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    -669632311 
     1588591250      8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
3r3sDvfUkG0yTP3LnX5mNQRr        8.0     -1.339264622E9  0.9893582466233818      
-6.6963232E8
+true   NULL    true    true    true    NULL    false   false   true    true    
8       NULL    805179664       868161500       8       NULL    0       15      
NULL    NULL    8       8       8       8.0     NULL    8.05179664E8    
8.681615E8      8.0     NULL    0.0     15.892  NULL    NULL    8.0517965E8     
NULL    1969-12-31 16:00:00.008 NULL    1970-01-09 23:39:39.664 1970-01-10 
17:09:21.5   1969-12-31 16:00:08     NULL    1969-12-31 16:00:00     1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    805179664  
     868161500       8.0     NULL    FALSE   0       1969-12-31 16:00:15.892 
e005B5q 8.0     1.610359328E9   0.9893582466233818      8.05179648E8
+true   NULL    true    true    true    NULL    true    false   true    true    
-51     NULL    747553882       -1930467250     -51     NULL    1       8       
NULL    NULL    -51     -51     -51     -51.0   NULL    7.47553882E8    
-1.93046725E9   -51.0   NULL    1.0     8.451   NULL    NULL    7.4755386E8     
NULL    1969-12-31 15:59:59.949 NULL    1970-01-09 07:39:13.882 1969-12-09 
07:45:32.75  1969-12-31 15:59:09     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:08.451 NULL    NULL    -51     NULL    747553882  
     -1930467250     -51.0   NULL    TRUE    0       1969-12-31 16:00:08.451 
q8M86Fx0r       -51.0   1.495107764E9   -0.6702291758433747     7.47553857E8
+true   NULL    true    true    true    NULL    true    false   true    true    
11      NULL    -335450417      1233327000      11      NULL    1       2       
NULL    NULL    11      11      11      11.0    NULL    -3.35450417E8   
1.233327E9      11.0    NULL    1.0     2.351   NULL    NULL    -3.35450432E8   
NULL    1969-12-31 16:00:00.011 NULL    1969-12-27 18:49:09.583 1970-01-14 
22:35:27     1969-12-31 16:00:11     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:02.351 NULL    NULL    11      NULL    -335450417 
     1233327000      11.0    NULL    TRUE    0       1969-12-31 16:00:02.351 
dOYnqgaXoJ1P3ERwxe5N7   11.0    -6.70900834E8   -0.9999902065507035     
-3.35450431E8
+true   NULL    true    true    true    NULL    true    false   true    true    
11      NULL    -64615982       1803053750      11      NULL    1       2       
NULL    8       11      11      11      11.0    NULL    -6.4615982E7    
1.80305375E9    11.0    NULL    1.0     2.351   NULL    8.0     -6.4615984E7    
NULL    1969-12-31 16:00:00.011 NULL    1969-12-30 22:03:04.018 1970-01-21 
12:50:53.75  1969-12-31 16:00:11     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:02.351 NULL    NULL    11      NULL    -64615982  
     1803053750      11.0    NULL    TRUE    0       1969-12-31 16:00:02.351 
8J5OB7K26PEV7kdbeHr3    11.0    -1.29231964E8   -0.9999902065507035     
-6.4615983E7
 true   NULL    true    true    true    NULL    true    false   true    true    
8       NULL    890988972       -1862301000     8       NULL    1       15      
NULL    NULL    8       8       8       8.0     NULL    8.90988972E8    
-1.862301E9     8.0     NULL    1.0     15.892  NULL    NULL    8.9098899E8     
NULL    1969-12-31 16:00:00.008 NULL    1970-01-10 23:29:48.972 1969-12-10 
02:41:39     1969-12-31 16:00:08     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    890988972  
     -1862301000     8.0     NULL    TRUE    0       1969-12-31 16:00:15.892 
XylAH4  8.0     1.781977944E9   0.9893582466233818      8.90988993E8
 true   NULL    true    true    true    NULL    true    false   true    true    
8       NULL    930867246       1205399250      8       NULL    1       15      
NULL    NULL    8       8       8       8.0     NULL    9.30867246E8    
1.20539925E9    8.0     NULL    1.0     15.892  NULL    NULL    9.3086726E8     
NULL    1969-12-31 16:00:00.008 NULL    1970-01-11 10:34:27.246 1970-01-14 
14:49:59.25  1969-12-31 16:00:08     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:15.892 NULL    NULL    8       NULL    930867246  
     1205399250      8.0     NULL    TRUE    0       1969-12-31 16:00:15.892 
c1V8o1A 8.0     1.861734492E9   0.9893582466233818      9.30867265E8
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-59     -7196   NULL    -1604890000     -59     -7196   NULL    13      NULL    
NULL    -59     -59     -59     -59.0   -7196.0 NULL    -1.60489E9      -59.0   
-7196.0 NULL    13.15   NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.941 
1969-12-31 15:59:52.804 NULL    1969-12-13 02:11:50     1969-12-31 15:59:01     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:13.15  
NULL    NULL    -59     -7196   NULL    -1604890000     -59.0   -7196.0 NULL    
0       1969-12-31 16:00:13.15  NULL    -59.0   NULL    -0.6367380071391379     
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-14     -7196   NULL    -1552199500     -14     -7196   NULL    11      NULL    
NULL    -14     -14     -14     -14.0   -7196.0 NULL    -1.5521995E9    -14.0   
-7196.0 NULL    11.065  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.986 
1969-12-31 15:59:52.804 NULL    1969-12-13 16:50:00.5   1969-12-31 15:59:46     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:11.065 
NULL    NULL    -14     -7196   NULL    -1552199500     -14.0   -7196.0 NULL    
0       1969-12-31 16:00:11.065 NULL    -14.0   NULL    -0.9906073556948704     
NULL
 true   true    NULL    true    true    true    NULL    false   true    NULL    
-21     -7196   NULL    1542429000      -21     -7196   NULL    -5      NULL    
NULL    -21     -21     -21     -21.0   -7196.0 NULL    1.542429E9      -21.0   
-7196.0 NULL    -4.1    NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.979 
1969-12-31 15:59:52.804 NULL    1970-01-18 12:27:09     1969-12-31 15:59:39     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:55.9   
NULL    NULL    -21     -7196   NULL    1542429000      -21.0   -7196.0 NULL    
0       1969-12-31 15:59:55.9   NULL    -21.0   NULL    -0.8366556385360561     
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-24     -7196   NULL    829111000       -24     -7196   NULL    -7      NULL    
NULL    -24     -24     -24     -24.0   -7196.0 NULL    8.29111E8       -24.0   
-7196.0 NULL    -6.855  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.976 
1969-12-31 15:59:52.804 NULL    1970-01-10 06:18:31     1969-12-31 15:59:36     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:53.145 
NULL    NULL    -24     -7196   NULL    829111000       -24.0   -7196.0 NULL    
0       1969-12-31 15:59:53.145 NULL    -24.0   NULL    0.9055783620066238      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-30     -200    NULL    1429852250      -30     -200    NULL    12      NULL    
NULL    -30     -30     -30     -30.0   -200.0  NULL    1.42985225E9    -30.0   
-200.0  NULL    12.935  NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.97  
1969-12-31 15:59:59.8   NULL    1970-01-17 05:10:52.25  1969-12-31 15:59:30     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 16:00:12.935 
NULL    NULL    -30     -200    NULL    1429852250      -30.0   -200.0  NULL    
0       1969-12-31 16:00:12.935 NULL    -30.0   NULL    0.9880316240928618      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-36     -200    NULL    -2006216750     -36     -200    NULL    -15     NULL    
NULL    -36     -36     -36     -36.0   -200.0  NULL    -2.00621675E9   -36.0   
-200.0  NULL    -14.252 NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.964 
1969-12-31 15:59:59.8   NULL    1969-12-08 10:43:03.25  1969-12-31 15:59:24     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 15:59:45.748 
NULL    NULL    -36     -200    NULL    -2006216750     -36.0   -200.0  NULL    
0       1969-12-31 15:59:45.748 NULL    -36.0   NULL    0.9917788534431158      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-36     -200    NULL    1599879000      -36     -200    NULL    -7      NULL    
NULL    -36     -36     -36     -36.0   -200.0  NULL    1.599879E9      -36.0   
-200.0  NULL    -6.183  NULL    NULL    NULL    -200.0  1969-12-31 15:59:59.964 
1969-12-31 15:59:59.8   NULL    1970-01-19 04:24:39     1969-12-31 15:59:24     
1969-12-31 15:56:40     NULL    1969-12-31 16:00:00     1969-12-31 15:59:53.817 
NULL    NULL    -36     -200    NULL    1599879000      -36.0   -200.0  NULL    
0       1969-12-31 15:59:53.817 NULL    -36.0   NULL    0.9917788534431158      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-38     15601   NULL    -1858689000     -38     15601   NULL    -2      NULL    
NULL    -38     -38     -38     -38.0   15601.0 NULL    -1.858689E9     -38.0   
15601.0 NULL    -1.3860000000000001     NULL    NULL    NULL    15601.0 
1969-12-31 15:59:59.962 1969-12-31 16:00:15.601 NULL    1969-12-10 03:41:51     
1969-12-31 15:59:22     1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     
1969-12-31 15:59:58.614 NULL    NULL    -38     15601   NULL    -1858689000     
-38.0   15601.0 NULL    0       1969-12-31 15:59:58.614 NULL    -38.0   NULL    
-0.2963685787093853     NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-5      15601   NULL    612416000       -5      15601   NULL    4       NULL    
NULL    -5      -5      -5      -5.0    15601.0 NULL    6.12416E8       -5.0    
15601.0 NULL    4.679   NULL    NULL    NULL    15601.0 1969-12-31 15:59:59.995 
1969-12-31 16:00:15.601 NULL    1970-01-07 18:06:56     1969-12-31 15:59:55     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 16:00:04.679 
NULL    NULL    -5      15601   NULL    612416000       -5.0    15601.0 NULL    
0       1969-12-31 16:00:04.679 NULL    -5.0    NULL    0.9589242746631385      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-50     -7196   NULL    -1031187250     -50     -7196   NULL    -6      NULL    
NULL    -50     -50     -50     -50.0   -7196.0 NULL    -1.03118725E9   -50.0   
-7196.0 NULL    -5.267  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.95  
1969-12-31 15:59:52.804 NULL    1969-12-19 17:33:32.75  1969-12-31 15:59:10     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:54.733 
NULL    NULL    -50     -7196   NULL    -1031187250     -50.0   -7196.0 NULL    
0       1969-12-31 15:59:54.733 NULL    -50.0   NULL    0.26237485370392877     
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
-59     -7196   NULL    -1604890000     -59     -7196   NULL    13      NULL    
NULL    -59     -59     -59     -59.0   -7196.0 NULL    -1.60489E9      -59.0   
-7196.0 NULL    13.15   NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.941 
1969-12-31 15:59:52.804 NULL    1969-12-13 02:11:50     1969-12-31 15:59:01     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:13.15  
NULL    NULL    -59     -7196   NULL    -1604890000     -59.0   -7196.0 NULL    
0       1969-12-31 16:00:13.15  NULL    -59.0   NULL    -0.6367380071391379     
NULL
 true   true    NULL    true    true    true    NULL    false   true    NULL    
-60     -7196   NULL    1516314750      -60     -7196   NULL    -8      NULL    
NULL    -60     -60     -60     -60.0   -7196.0 NULL    1.51631475E9    -60.0   
-7196.0 NULL    -7.592  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.94  
1969-12-31 15:59:52.804 NULL    1970-01-18 05:11:54.75  1969-12-31 15:59:00     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:52.408 
NULL    NULL    -60     -7196   NULL    1516314750      -60.0   -7196.0 NULL    
0       1969-12-31 15:59:52.408 NULL    -60.0   NULL    0.3048106211022167      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-14     -7196   NULL    -1552199500     -14     -7196   NULL    11      NULL    
NULL    -14     -14     -14     -14.0   -7196.0 NULL    -1.5521995E9    -14.0   
-7196.0 NULL    11.065  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.986 
1969-12-31 15:59:52.804 NULL    1969-12-13 16:50:00.5   1969-12-31 15:59:46     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:11.065 
NULL    NULL    -14     -7196   NULL    -1552199500     -14.0   -7196.0 NULL    
0       1969-12-31 16:00:11.065 NULL    -14.0   NULL    -0.9906073556948704     
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
59      -7196   NULL    -1137754500     59      -7196   NULL    10      NULL    
NULL    59      59      59      59.0    -7196.0 NULL    -1.1377545E9    59.0    
-7196.0 NULL    10.956  NULL    NULL    NULL    -7196.0 1969-12-31 16:00:00.059 
1969-12-31 15:59:52.804 NULL    1969-12-18 11:57:25.5   1969-12-31 16:00:59     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:10.956 
NULL    NULL    59      -7196   NULL    -1137754500     59.0    -7196.0 NULL    
0       1969-12-31 16:00:10.956 NULL    59.0    NULL    0.6367380071391379      
NULL
 true   true    NULL    true    true    true    NULL    false   true    NULL    
-8      -7196   NULL    -1849991500     -8      -7196   NULL    3       NULL    
NULL    -8      -8      -8      -8.0    -7196.0 NULL    -1.8499915E9    -8.0    
-7196.0 NULL    3.136   NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.992 
1969-12-31 15:59:52.804 NULL    1969-12-10 06:06:48.5   1969-12-31 15:59:52     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:03.136 
NULL    NULL    -8      -7196   NULL    -1849991500     -8.0    -7196.0 NULL    
0       1969-12-31 16:00:03.136 NULL    -8.0    NULL    -0.9893582466233818     
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
20      15601   NULL    -362433250      20      15601   NULL    -15     NULL    
NULL    20      20      20      20.0    15601.0 NULL    -3.6243325E8    20.0    
15601.0 NULL    -14.871 NULL    NULL    NULL    15601.0 1969-12-31 16:00:00.02  
1969-12-31 16:00:15.601 NULL    1969-12-27 11:19:26.75  1969-12-31 16:00:20     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 15:59:45.129 
NULL    NULL    20      15601   NULL    -362433250      20.0    15601.0 NULL    
0       1969-12-31 15:59:45.129 NULL    20.0    NULL    0.9129452507276277      
NULL
+true   true    NULL    true    true    true    NULL    false   true    NULL    
48      15601   NULL    -795361000      48      15601   NULL    -10     NULL    
NULL    48      48      48      48.0    15601.0 NULL    -7.95361E8      48.0    
15601.0 NULL    -9.765  NULL    NULL    NULL    15601.0 1969-12-31 16:00:00.048 
1969-12-31 16:00:15.601 NULL    1969-12-22 11:03:59     1969-12-31 16:00:48     
1969-12-31 20:20:01     NULL    1969-12-31 16:00:00     1969-12-31 15:59:50.235 
NULL    NULL    48      15601   NULL    -795361000      48.0    15601.0 NULL    
0       1969-12-31 15:59:50.235 NULL    48.0    NULL    -0.7682546613236668     
NULL
 true   true    NULL    true    true    true    NULL    false   true    NULL    
5       -7196   NULL    -1015607500     5       -7196   NULL    10      NULL    
NULL    5       5       5       5.0     -7196.0 NULL    -1.0156075E9    5.0     
-7196.0 NULL    10.973  NULL    NULL    NULL    -7196.0 1969-12-31 16:00:00.005 
1969-12-31 15:59:52.804 NULL    1969-12-19 21:53:12.5   1969-12-31 16:00:05     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:10.973 
NULL    NULL    5       -7196   NULL    -1015607500     5.0     -7196.0 NULL    
0       1969-12-31 16:00:10.973 NULL    5.0     NULL    -0.9589242746631385     
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-24     -7196   NULL    829111000       -24     -7196   NULL    -7      NULL    
NULL    -24     -24     -24     -24.0   -7196.0 NULL    8.29111E8       -24.0   
-7196.0 NULL    -6.855  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.976 
1969-12-31 15:59:52.804 NULL    1970-01-10 06:18:31     1969-12-31 15:59:36     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:53.145 
NULL    NULL    -24     -7196   NULL    829111000       -24.0   -7196.0 NULL    
0       1969-12-31 15:59:53.145 NULL    -24.0   NULL    0.9055783620066238      
NULL
-true   true    NULL    true    true    true    NULL    false   true    NULL    
-50     -7196   NULL    -1031187250     -50     -7196   NULL    -6      NULL    
NULL    -50     -50     -50     -50.0   -7196.0 NULL    -1.03118725E9   -50.0   
-7196.0 NULL    -5.267  NULL    NULL    NULL    -7196.0 1969-12-31 15:59:59.95  
1969-12-31 15:59:52.804 NULL    1969-12-19 17:33:32.75  1969-12-31 15:59:10     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 15:59:54.733 
NULL    NULL    -50     -7196   NULL    -1031187250     -50.0   -7196.0 NULL    
0       1969-12-31 15:59:54.733 NULL    -50.0   NULL    0.26237485370392877     
NULL
-true   NULL    true    true    true    NULL    true    false   true    true    
11      NULL    -64615982       1803053750      11      NULL    1       2       
NULL    8       11      11      11      11.0    NULL    -6.4615982E7    
1.80305375E9    11.0    NULL    1.0     2.351   NULL    8.0     -6.4615984E7    
NULL    1969-12-31 16:00:00.011 NULL    1969-12-30 22:03:04.018 1970-01-21 
12:50:53.75  1969-12-31 16:00:11     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:02.351 NULL    NULL    11      NULL    -64615982  
     1803053750      11.0    NULL    TRUE    0       1969-12-31 16:00:02.351 
8J5OB7K26PEV7kdbeHr3    11.0    -1.29231964E8   -0.9999902065507035     
-6.4615983E7
-true   NULL    true    true    true    NULL    true    false   true    true    
11      NULL    -335450417      1233327000      11      NULL    1       2       
NULL    NULL    11      11      11      11.0    NULL    -3.35450417E8   
1.233327E9      11.0    NULL    1.0     2.351   NULL    NULL    -3.35450432E8   
NULL    1969-12-31 16:00:00.011 NULL    1969-12-27 18:49:09.583 1970-01-14 
22:35:27     1969-12-31 16:00:11     NULL    1969-12-31 16:00:00.001 1969-12-31 
16:00:00     1969-12-31 16:00:02.351 NULL    NULL    11      NULL    -335450417 
     1233327000      11.0    NULL    TRUE    0       1969-12-31 16:00:02.351 
dOYnqgaXoJ1P3ERwxe5N7   11.0    -6.70900834E8   -0.9999902065507035     
-3.35450431E8
+true   true    NULL    true    true    true    NULL    false   true    NULL    
59      -7196   NULL    -1137754500     59      -7196   NULL    10      NULL    
NULL    59      59      59      59.0    -7196.0 NULL    -1.1377545E9    59.0    
-7196.0 NULL    10.956  NULL    NULL    NULL    -7196.0 1969-12-31 16:00:00.059 
1969-12-31 15:59:52.804 NULL    1969-12-18 11:57:25.5   1969-12-31 16:00:59     
1969-12-31 14:00:04     NULL    1969-12-31 16:00:00     1969-12-31 16:00:10.956 
NULL    NULL    59      -7196   NULL    -1137754500     59.0    -7196.0 NULL    
0       1969-12-31 16:00:10.956 NULL    59.0    NULL    0.6367380071391379      
NULL

http://git-wip-us.apache.org/repos/asf/hive/blob/63deec40/ql/src/test/results/clientpositive/tez/vectorized_date_funcs.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/tez/vectorized_date_funcs.q.out 
b/ql/src/test/results/clientpositive/tez/vectorized_date_funcs.q.out
index be782e4..71a5ba6 100644
--- a/ql/src/test/results/clientpositive/tez/vectorized_date_funcs.q.out
+++ b/ql/src/test/results/clientpositive/tez/vectorized_date_funcs.q.out
@@ -1,4 +1,6 @@
-PREHOOK: query: -- Test timestamp functions in vectorized mode to verify they 
run correctly end-to-end.
+PREHOOK: query: -- SORT_QUERY_RESULTS
+
+-- Test timestamp functions in vectorized mode to verify they run correctly 
end-to-end.
 
 CREATE TABLE date_udf_flight (
   origin_city_name STRING,
@@ -10,7 +12,9 @@ CREATE TABLE date_udf_flight (
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@date_udf_flight
-POSTHOOK: query: -- Test timestamp functions in vectorized mode to verify they 
run correctly end-to-end.
+POSTHOOK: query: -- SORT_QUERY_RESULTS
+
+-- Test timestamp functions in vectorized mode to verify they run correctly 
end-to-end.
 
 CREATE TABLE date_udf_flight (
   origin_city_name STRING,
@@ -70,6 +74,13 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-20     2010-10-20 07:00:00
 2010-10-20     2010-10-20 07:00:00
 2010-10-20     2010-10-20 07:00:00
+2010-10-20     2010-10-20 07:00:00
+2010-10-20     2010-10-20 07:00:00
+2010-10-20     2010-10-20 07:00:00
+2010-10-21     2010-10-21 07:00:00
+2010-10-21     2010-10-21 07:00:00
+2010-10-21     2010-10-21 07:00:00
+2010-10-21     2010-10-21 07:00:00
 2010-10-21     2010-10-21 07:00:00
 2010-10-21     2010-10-21 07:00:00
 2010-10-21     2010-10-21 07:00:00
@@ -86,6 +97,14 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-22     2010-10-22 07:00:00
 2010-10-22     2010-10-22 07:00:00
 2010-10-22     2010-10-22 07:00:00
+2010-10-22     2010-10-22 07:00:00
+2010-10-22     2010-10-22 07:00:00
+2010-10-22     2010-10-22 07:00:00
+2010-10-23     2010-10-23 07:00:00
+2010-10-23     2010-10-23 07:00:00
+2010-10-23     2010-10-23 07:00:00
+2010-10-23     2010-10-23 07:00:00
+2010-10-23     2010-10-23 07:00:00
 2010-10-23     2010-10-23 07:00:00
 2010-10-23     2010-10-23 07:00:00
 2010-10-23     2010-10-23 07:00:00
@@ -100,6 +119,15 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-24     2010-10-24 07:00:00
 2010-10-24     2010-10-24 07:00:00
 2010-10-24     2010-10-24 07:00:00
+2010-10-24     2010-10-24 07:00:00
+2010-10-24     2010-10-24 07:00:00
+2010-10-24     2010-10-24 07:00:00
+2010-10-24     2010-10-24 07:00:00
+2010-10-24     2010-10-24 07:00:00
+2010-10-25     2010-10-25 07:00:00
+2010-10-25     2010-10-25 07:00:00
+2010-10-25     2010-10-25 07:00:00
+2010-10-25     2010-10-25 07:00:00
 2010-10-25     2010-10-25 07:00:00
 2010-10-25     2010-10-25 07:00:00
 2010-10-25     2010-10-25 07:00:00
@@ -116,6 +144,14 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-26     2010-10-26 07:00:00
 2010-10-26     2010-10-26 07:00:00
 2010-10-26     2010-10-26 07:00:00
+2010-10-26     2010-10-26 07:00:00
+2010-10-26     2010-10-26 07:00:00
+2010-10-26     2010-10-26 07:00:00
+2010-10-26     2010-10-26 07:00:00
+2010-10-26     2010-10-26 07:00:00
+2010-10-27     2010-10-27 07:00:00
+2010-10-27     2010-10-27 07:00:00
+2010-10-27     2010-10-27 07:00:00
 2010-10-27     2010-10-27 07:00:00
 2010-10-27     2010-10-27 07:00:00
 2010-10-27     2010-10-27 07:00:00
@@ -132,6 +168,11 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-28     2010-10-28 07:00:00
 2010-10-28     2010-10-28 07:00:00
 2010-10-28     2010-10-28 07:00:00
+2010-10-28     2010-10-28 07:00:00
+2010-10-28     2010-10-28 07:00:00
+2010-10-28     2010-10-28 07:00:00
+2010-10-28     2010-10-28 07:00:00
+2010-10-29     2010-10-29 07:00:00
 2010-10-29     2010-10-29 07:00:00
 2010-10-29     2010-10-29 07:00:00
 2010-10-29     2010-10-29 07:00:00
@@ -140,6 +181,13 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-29     2010-10-29 07:00:00
 2010-10-29     2010-10-29 07:00:00
 2010-10-29     2010-10-29 07:00:00
+2010-10-29     2010-10-29 07:00:00
+2010-10-29     2010-10-29 07:00:00
+2010-10-29     2010-10-29 07:00:00
+2010-10-30     2010-10-30 07:00:00
+2010-10-30     2010-10-30 07:00:00
+2010-10-30     2010-10-30 07:00:00
+2010-10-30     2010-10-30 07:00:00
 2010-10-30     2010-10-30 07:00:00
 2010-10-30     2010-10-30 07:00:00
 2010-10-30     2010-10-30 07:00:00
@@ -154,50 +202,6 @@ POSTHOOK: Input: default@date_udf_flight_orc
 2010-10-31     2010-10-31 07:00:00
 2010-10-31     2010-10-31 07:00:00
 2010-10-31     2010-10-31 07:00:00
-2010-10-30     2010-10-30 07:00:00
-2010-10-30     2010-10-30 07:00:00
-2010-10-29     2010-10-29 07:00:00
-2010-10-29     2010-10-29 07:00:00
-2010-10-29     2010-10-29 07:00:00
-2010-10-28     2010-10-28 07:00:00
-2010-10-28     2010-10-28 07:00:00
-2010-10-28     2010-10-28 07:00:00
-2010-10-27     2010-10-27 07:00:00
-2010-10-27     2010-10-27 07:00:00
-2010-10-26     2010-10-26 07:00:00
-2010-10-26     2010-10-26 07:00:00
-2010-10-26     2010-10-26 07:00:00
-2010-10-26     2010-10-26 07:00:00
-2010-10-25     2010-10-25 07:00:00
-2010-10-25     2010-10-25 07:00:00
-2010-10-25     2010-10-25 07:00:00
-2010-10-24     2010-10-24 07:00:00
-2010-10-24     2010-10-24 07:00:00
-2010-10-24     2010-10-24 07:00:00
-2010-10-24     2010-10-24 07:00:00
-2010-10-23     2010-10-23 07:00:00
-2010-10-22     2010-10-22 07:00:00
-2010-10-22     2010-10-22 07:00:00
-2010-10-22     2010-10-22 07:00:00
-2010-10-21     2010-10-21 07:00:00
-2010-10-21     2010-10-21 07:00:00
-2010-10-21     2010-10-21 07:00:00
-2010-10-20     2010-10-20 07:00:00
-2010-10-20     2010-10-20 07:00:00
-2010-10-23     2010-10-23 07:00:00
-2010-10-23     2010-10-23 07:00:00
-2010-10-23     2010-10-23 07:00:00
-2010-10-30     2010-10-30 07:00:00
-2010-10-30     2010-10-30 07:00:00
-2010-10-20     2010-10-20 07:00:00
-2010-10-21     2010-10-21 07:00:00
-2010-10-23     2010-10-23 07:00:00
-2010-10-24     2010-10-24 07:00:00
-2010-10-25     2010-10-25 07:00:00
-2010-10-26     2010-10-26 07:00:00
-2010-10-27     2010-10-27 07:00:00
-2010-10-28     2010-10-28 07:00:00
-2010-10-29     2010-10-29 07:00:00
 2010-10-31     2010-10-31 07:00:00
 PREHOOK: query: EXPLAIN SELECT
   to_unix_timestamp(fl_time),
@@ -282,6 +286,12 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
 1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
 1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
@@ -290,6 +300,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
+1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
+1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
@@ -305,6 +319,15 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
 1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
 1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
@@ -312,6 +335,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
@@ -320,6 +347,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
@@ -328,6 +359,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
@@ -336,6 +371,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
@@ -344,6 +383,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
@@ -352,6 +395,11 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
@@ -366,50 +414,6 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288533600     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 1288533600     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 1288533600     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
-1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287756000     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288447200     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1287583200     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287669600     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287842400     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287928800     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1288015200     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1288101600     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288188000     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288274400     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288360800     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288533600     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 PREHOOK: query: EXPLAIN SELECT
   to_unix_timestamp(fl_date),
@@ -494,6 +498,12 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
 1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
 1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
+1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
@@ -502,6 +512,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
 1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
+1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
+1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
+1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
 1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
@@ -517,6 +531,14 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
 1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
 1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
+1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
@@ -524,6 +546,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
 1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
+1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
@@ -532,6 +558,11 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
 1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
+1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
@@ -540,6 +571,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
 1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
+1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
@@ -548,6 +583,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
 1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
+1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
@@ -556,6 +595,10 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
 1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
+1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
@@ -564,6 +607,11 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
+1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
+1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
 1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
@@ -578,50 +626,6 @@ POSTHOOK: Input: default@date_udf_flight_orc
 1288508400     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 1288508400     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 1288508400     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
-1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
-1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287730800     2010    10      22      22      42      2010-10-22      
2010-10-22      2010-10-24      2010-10-20      3947
-1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1288422000     2010    10      30      30      43      2010-10-30      
2010-10-30      2010-11-01      2010-10-28      3955
-1287558000     2010    10      20      20      42      2010-10-20      
2010-10-20      2010-10-22      2010-10-18      3945
-1287644400     2010    10      21      21      42      2010-10-21      
2010-10-21      2010-10-23      2010-10-19      3946
-1287817200     2010    10      23      23      42      2010-10-23      
2010-10-23      2010-10-25      2010-10-21      3948
-1287903600     2010    10      24      24      42      2010-10-24      
2010-10-24      2010-10-26      2010-10-22      3949
-1287990000     2010    10      25      25      43      2010-10-25      
2010-10-25      2010-10-27      2010-10-23      3950
-1288076400     2010    10      26      26      43      2010-10-26      
2010-10-26      2010-10-28      2010-10-24      3951
-1288162800     2010    10      27      27      43      2010-10-27      
2010-10-27      2010-10-29      2010-10-25      3952
-1288249200     2010    10      28      28      43      2010-10-28      
2010-10-28      2010-10-30      2010-10-26      3953
-1288335600     2010    10      29      29      43      2010-10-29      
2010-10-29      2010-10-31      2010-10-27      3954
 1288508400     2010    10      31      31      43      2010-10-31      
2010-10-31      2010-11-02      2010-10-29      3956
 PREHOOK: query: EXPLAIN SELECT
   year(fl_time) = year(fl_date),

http://git-wip-us.apache.org/repos/asf/hive/blob/63deec40/ql/src/test/results/clientpositive/update_all_types.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/update_all_types.q.out 
b/ql/src/test/results/clientpositive/update_all_types.q.out
index 38e0c27..ca098fb 100644
--- a/ql/src/test/results/clientpositive/update_all_types.q.out
+++ b/ql/src/test/results/clientpositive/update_all_types.q.out
@@ -1,4 +1,6 @@
-PREHOOK: query: create table acid_uat(ti tinyint,
+PREHOOK: query: -- SORT_QUERY_RESULTS
+
+create table acid_uat(ti tinyint,
                  si smallint,
                  i int,
                  j int,
@@ -15,7 +17,9 @@ PREHOOK: query: create table acid_uat(ti tinyint,
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@acid_uat
-POSTHOOK: query: create table acid_uat(ti tinyint,
+POSTHOOK: query: -- SORT_QUERY_RESULTS
+
+create table acid_uat(ti tinyint,
                  si smallint,
                  i int,
                  j int,
@@ -92,16 +96,16 @@ POSTHOOK: query: select * from acid_uat order by i
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@acid_uat
 #### A masked pattern was here ####
-11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
-NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
-11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
-NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true
-NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
 -51    NULL    -1071480828     -1071480828     -1401575336     -51.0   NULL    
-51     1969-12-31 16:00:08.451 NULL    aw724t8c5558x2xneC624   
aw724t8c5558x2xneC624   4uE7l74tESBiKfu7c8wM7GA                 true
+11     NULL    -1069736047     -1069736047     -453772520      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    k17Am8uPHWk02cEf1jet    
k17Am8uPHWk02cEf1jet    qrXLLNX1                                true
+11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
+11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
 8      NULL    -1071363017     -1071363017     1349676361      8.0     NULL    
8       1969-12-31 16:00:15.892 NULL    Anj0oF  Anj0oF  IwE1G7Qb0B1NEfV030g     
                true
+NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
+NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
 NULL   -741    -1070883071     -1070883071     -1645852809     NULL    -741.0  
NULL    NULL    1969-12-31      0ruyd6Y50JpdGRf6HqD     0ruyd6Y50JpdGRf6HqD     
xH7445Rals48VOulSyR5F                   false
 NULL   -947    -1070551679     -1070551679     1864027286      NULL    -947.0  
NULL    NULL    1969-12-31      iUR3Q   iUR3Q   4KWs6gw7lv2WYd66P               
        false
-11     NULL    -1069736047     -1069736047     -453772520      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    k17Am8uPHWk02cEf1jet    
k17Am8uPHWk02cEf1jet    qrXLLNX1                                true
+NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true
 PREHOOK: query: update acid_uat set
     ti = 1,
     si = 2,
@@ -146,16 +150,16 @@ POSTHOOK: query: select * from acid_uat order by i
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@acid_uat
 #### A masked pattern was here ####
-11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
-NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
-11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
-NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true
-NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
 -51    NULL    -1071480828     -1071480828     -1401575336     -51.0   NULL    
-51     1969-12-31 16:00:08.451 NULL    aw724t8c5558x2xneC624   
aw724t8c5558x2xneC624   4uE7l74tESBiKfu7c8wM7GA                 true
-8      NULL    -1071363017     -1071363017     1349676361      8.0     NULL    
8       1969-12-31 16:00:15.892 NULL    Anj0oF  Anj0oF  IwE1G7Qb0B1NEfV030g     
                true
 1      2       -1070883071     3       4       3.14    6.28    5.99    NULL    
2014-09-01      its a beautiful day in the neighbhorhood        a beautiful day 
for a neighbor  wont you be mine                        true
-NULL   -947    -1070551679     -1070551679     1864027286      NULL    -947.0  
NULL    NULL    1969-12-31      iUR3Q   iUR3Q   4KWs6gw7lv2WYd66P               
        false
 11     NULL    -1069736047     -1069736047     -453772520      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    k17Am8uPHWk02cEf1jet    
k17Am8uPHWk02cEf1jet    qrXLLNX1                                true
+11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
+11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
+8      NULL    -1071363017     -1071363017     1349676361      8.0     NULL    
8       1969-12-31 16:00:15.892 NULL    Anj0oF  Anj0oF  IwE1G7Qb0B1NEfV030g     
                true
+NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
+NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
+NULL   -947    -1070551679     -1070551679     1864027286      NULL    -947.0  
NULL    NULL    1969-12-31      iUR3Q   iUR3Q   4KWs6gw7lv2WYd66P               
        false
+NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true
 PREHOOK: query: update acid_uat set
   ti = ti * 2,
   si = cast(f as int),
@@ -180,13 +184,13 @@ POSTHOOK: query: select * from acid_uat order by i
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@acid_uat
 #### A masked pattern was here ####
-11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
-NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
-11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
-NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true
-NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
 -102   -51     -1071480828     -1071480828     -1401575336     -51.0   -51.0   
-51     1969-12-31 16:00:08.451 NULL    aw724t8c5558x2xneC624   
aw724t8c5558x2xneC624   4uE7l74tESBiKfu7c8wM7GA                 true
-8      NULL    -1071363017     -1071363017     1349676361      8.0     NULL    
8       1969-12-31 16:00:15.892 NULL    Anj0oF  Anj0oF  IwE1G7Qb0B1NEfV030g     
                true
 1      2       -1070883071     3       4       3.14    6.28    5.99    NULL    
2014-09-01      its a beautiful day in the neighbhorhood        a beautiful day 
for a neighbor  wont you be mine                        true
-NULL   -947    -1070551679     -1070551679     1864027286      NULL    -947.0  
NULL    NULL    1969-12-31      iUR3Q   iUR3Q   4KWs6gw7lv2WYd66P               
        false
 11     NULL    -1069736047     -1069736047     -453772520      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    k17Am8uPHWk02cEf1jet    
k17Am8uPHWk02cEf1jet    qrXLLNX1                                true
+11     NULL    -1072910839     -1072910839     2048385991      11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    0iqrc5  0iqrc5  KbaDXiN85adbHRx58v      
                false
+11     NULL    -1073279343     -1073279343     -1595604468     11.0    NULL    
11      1969-12-31 16:00:02.351 NULL    oj1YrV5Wa       oj1YrV5Wa       
P76636jJ6qM17d7DIy                      true
+8      NULL    -1071363017     -1071363017     1349676361      8.0     NULL    
8       1969-12-31 16:00:15.892 NULL    Anj0oF  Anj0oF  IwE1G7Qb0B1NEfV030g     
                true
+NULL   -5470   -1072076362     -1072076362     1864027286      NULL    -5470.0 
NULL    NULL    1969-12-31      2uLyD28144vklju213J1mr  2uLyD28144vklju213J1mr  
4KWs6gw7lv2WYd66P                       true
+NULL   -7382   -1073051226     -1073051226     -1887561756     NULL    -7382.0 
NULL    NULL    1969-12-31      A34p7oRr2WvUJNf A34p7oRr2WvUJNf 
4hA4KQj2vD3fI6gX82220d                  false
+NULL   -947    -1070551679     -1070551679     1864027286      NULL    -947.0  
NULL    NULL    1969-12-31      iUR3Q   iUR3Q   4KWs6gw7lv2WYd66P               
        false
+NULL   8373    -1072081801     -1072081801     1864027286      NULL    8373.0  
NULL    NULL    1969-12-31      dPkN74F7        dPkN74F7        
4KWs6gw7lv2WYd66P                       true

http://git-wip-us.apache.org/repos/asf/hive/blob/63deec40/ql/src/test/results/clientpositive/update_orig_table.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/update_orig_table.q.out 
b/ql/src/test/results/clientpositive/update_orig_table.q.out
index de7dc86..66533e1 100644
--- a/ql/src/test/results/clientpositive/update_orig_table.q.out
+++ b/ql/src/test/results/clientpositive/update_orig_table.q.out
@@ -1,4 +1,6 @@
-PREHOOK: query: create table acid_uot(
+PREHOOK: query: -- SORT_QUERY_RESULTS
+
+create table acid_uot(
     ctinyint TINYINT,
     csmallint SMALLINT,
     cint INT,
@@ -15,7 +17,9 @@ PREHOOK: type: CREATETABLE
 #### A masked pattern was here ####
 PREHOOK: Output: database:default
 PREHOOK: Output: default@acid_uot
-POSTHOOK: query: create table acid_uot(
+POSTHOOK: query: -- SORT_QUERY_RESULTS
+
+create table acid_uot(
     ctinyint TINYINT,
     csmallint SMALLINT,
     cint INT,
@@ -49,11 +53,10 @@ POSTHOOK: type: QUERY
 POSTHOOK: Input: default@acid_uot
 #### A masked pattern was here ####
 -51    NULL    -1071480828     -1401575336     -51.0   NULL    fred    
4uE7l74tESBiKfu7c8wM7GA 1969-12-31 16:00:08.451 NULL    true    true
-NULL   -5470   -1072076362     1864027286      NULL    -5470.0 fred    
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:01.836 true    true
-NULL   8373    -1072081801     1864027286      NULL    8373.0  fred    
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:56.465 true    true
+11     NULL    -1072910839     2048385991      11.0    NULL    fred    
KbaDXiN85adbHRx58v      1969-12-31 16:00:02.351 NULL    false   false
+11     NULL    -1073279343     -1595604468     11.0    NULL    fred    
P76636jJ6qM17d7DIy      1969-12-31 16:00:02.351 NULL    true    true
 8      NULL    -1071363017     1349676361      8.0     NULL    fred    
IwE1G7Qb0B1NEfV030g     1969-12-31 16:00:15.892 NULL    true    true
+NULL   -5470   -1072076362     1864027286      NULL    -5470.0 fred    
4KWs6gw7lv2WYd66P       NULL    1969-12-31 16:00:01.836 true    true
 NULL   -7382   -1073051226     -1887561756     NULL    -7382.0 fred    
4hA4KQj2vD3fI6gX82220d  NULL    1969-12-31 16:00:10.331 false   false
-11     NULL    -1073279343     -1595604468     11.0    NULL    fred    
P76636jJ6qM17d7DIy      1969-12-31 16:00:02.351 NULL    true    true
-11     NULL    -1072910839     2048385991      11.0    NULL    fred    
KbaDXiN85adbHRx58v      1969-12-31 16:00:02.351 NULL    false   false
 NULL   -741    -1070883071     -1645852809     NULL    -741.0  fred    
xH7445Rals48VOulSyR5F   NULL    1969-12-31 15:59:51.293 false   false
-#### A masked pattern was here ####
+NULL   8373    -1072081801     1864027286      NULL    8373.0  fred    
4KWs6gw7lv2WYd66P       NULL    1969-12-31 15:59:56.465 true    true

http://git-wip-us.apache.org/repos/asf/hive/blob/63deec40/ql/src/test/results/clientpositive/vector_coalesce.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_coalesce.q.out 
b/ql/src/test/results/clientpositive/vector_coalesce.q.out
index 02a4e62..eb5f204 100644
--- a/ql/src/test/results/clientpositive/vector_coalesce.q.out
+++ b/ql/src/test/results/clientpositive/vector_coalesce.q.out
@@ -1,10 +1,18 @@
-PREHOOK: query: EXPLAIN SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) 
+PREHOOK: query: -- SORT_QUERY_RESULTS
+
+EXPLAIN SELECT cdouble, cstring1, cint, cfloat, csmallint, coalesce(cdouble, 
cstring1, cint, cfloat, csmallint) as c
 FROM alltypesorc
-WHERE (cdouble IS NULL) LIMIT 10
+WHERE (cdouble IS NULL)
+ORDER BY cdouble, cstring1, cint, cfloat, csmallint, c
+LIMIT 10
 PREHOOK: type: QUERY
-POSTHOOK: query: EXPLAIN SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) 
+POSTHOOK: query: -- SORT_QUERY_RESULTS
+
+EXPLAIN SELECT cdouble, cstring1, cint, cfloat, csmallint, coalesce(cdouble, 
cstring1, cint, cfloat, csmallint) as c
 FROM alltypesorc
-WHERE (cdouble IS NULL) LIMIT 10
+WHERE (cdouble IS NULL)
+ORDER BY cdouble, cstring1, cint, cfloat, csmallint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
@@ -21,20 +29,29 @@ STAGE PLANS:
               predicate: cdouble is null (type: boolean)
               Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
-                expressions: null (type: double), cstring1 (type: string), 
cint (type: int), cfloat (type: float), csmallint (type: smallint), 
COALESCE(null,cstring1,cint,cfloat,csmallint) (type: string)
-                outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
+                expressions: cstring1 (type: string), cint (type: int), cfloat 
(type: float), csmallint (type: smallint), 
COALESCE(null,cstring1,cint,cfloat,csmallint) (type: string)
+                outputColumnNames: _col1, _col2, _col3, _col4, _col5
                 Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
-                Limit
-                  Number of rows: 10
-                  Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                  File Output Operator
-                    compressed: false
-                    Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                    table:
-                        input format: org.apache.hadoop.mapred.TextInputFormat
-                        output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
-                        serde: 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Reduce Output Operator
+                  key expressions: null (type: double), _col1 (type: string), 
_col2 (type: int), _col3 (type: float), _col4 (type: smallint), _col5 (type: 
string)
+                  sort order: ++++++
+                  Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
       Execution mode: vectorized
+      Reduce Operator Tree:
+        Select Operator
+          expressions: null (type: double), KEY.reducesinkkey1 (type: string), 
KEY.reducesinkkey2 (type: int), KEY.reducesinkkey3 (type: float), 
KEY.reducesinkkey4 (type: smallint), KEY.reducesinkkey5 (type: string)
+          outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
+          Statistics: Num rows: 6144 Data size: 1320982 Basic stats: COMPLETE 
Column stats: NONE
+          Limit
+            Number of rows: 10
+            Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.TextInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -42,35 +59,43 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-PREHOOK: query: SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) 
+PREHOOK: query: SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) as c 
 FROM alltypesorc
-WHERE (cdouble IS NULL) LIMIT 10
+WHERE (cdouble IS NULL)
+ORDER BY cdouble, cstring1, cint, cfloat, csmallint, c
+LIMIT 10
 PREHOOK: type: QUERY
 PREHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-POSTHOOK: query: SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) 
+POSTHOOK: query: SELECT cdouble, cstring1, cint, cfloat, csmallint, 
coalesce(cdouble, cstring1, cint, cfloat, csmallint) as c 
 FROM alltypesorc
-WHERE (cdouble IS NULL) LIMIT 10
+WHERE (cdouble IS NULL)
+ORDER BY cdouble, cstring1, cint, cfloat, csmallint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-NULL   LFgU5WT87C2yJ4W4YU0r8Pp -285355633      -51.0   NULL    
LFgU5WT87C2yJ4W4YU0r8Pp
-NULL   75bFXC7TqGo1SEaYAx4C58m NULL    -51.0   NULL    75bFXC7TqGo1SEaYAx4C58m
-NULL   v3p153e2bSkGS70v04G     354670578       -51.0   NULL    
v3p153e2bSkGS70v04G
-NULL   0pOH7A4O8aQ37NuBqn      951003458       -51.0   NULL    
0pOH7A4O8aQ37NuBqn
-NULL   8ShAFcD734S8Q26WjMwpq0Q 164554497       -51.0   NULL    
8ShAFcD734S8Q26WjMwpq0Q
-NULL   nOF31ehjY7ULCHMf        455419170       -51.0   NULL    nOF31ehjY7ULCHMf
-NULL   t32s57Cjt4a250qQgVNAB5T -109813638      -51.0   NULL    
t32s57Cjt4a250qQgVNAB5T
-NULL   nvO822k30OaH37Il        665801232       -51.0   NULL    nvO822k30OaH37Il
-NULL   M152O   -601502867      -51.0   NULL    M152O
-NULL   FgJ7Hft6845s1766oyt82q  199879534       -51.0   NULL    
FgJ7Hft6845s1766oyt82q
-PREHOOK: query: EXPLAIN SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) 
+NULL   NULL    -413196097      -51.0   NULL    -413196097
+NULL   NULL    -413553449      11.0    NULL    -413553449
+NULL   NULL    -457224565      11.0    NULL    -457224565
+NULL   NULL    -591488718      -51.0   NULL    -591488718
+NULL   NULL    -656987896      8.0     NULL    -656987896
+NULL   NULL    -670908417      8.0     NULL    -670908417
+NULL   NULL    -738306196      -51.0   NULL    -738306196
+NULL   NULL    -819152895      8.0     NULL    -819152895
+NULL   NULL    -827212561      8.0     NULL    -827212561
+NULL   NULL    -949587513      11.0    NULL    -949587513
+PREHOOK: query: EXPLAIN SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) as c
 FROM alltypesorc
-WHERE (ctinyint IS NULL) LIMIT 10
+WHERE (ctinyint IS NULL)
+ORDER BY ctinyint, cdouble, cint, c
+LIMIT 10
 PREHOOK: type: QUERY
-POSTHOOK: query: EXPLAIN SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) 
+POSTHOOK: query: EXPLAIN SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) as c
 FROM alltypesorc
-WHERE (ctinyint IS NULL) LIMIT 10
+WHERE (ctinyint IS NULL)
+ORDER BY ctinyint, cdouble, cint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
@@ -87,20 +112,29 @@ STAGE PLANS:
               predicate: ctinyint is null (type: boolean)
               Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
-                expressions: null (type: tinyint), cdouble (type: double), 
cint (type: int), COALESCE(null,(cdouble + log2(cint)),0) (type: double)
-                outputColumnNames: _col0, _col1, _col2, _col3
+                expressions: cdouble (type: double), cint (type: int), 
COALESCE(null,(cdouble + log2(cint)),0) (type: double)
+                outputColumnNames: _col1, _col2, _col3
                 Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
-                Limit
-                  Number of rows: 10
-                  Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                  File Output Operator
-                    compressed: false
-                    Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                    table:
-                        input format: org.apache.hadoop.mapred.TextInputFormat
-                        output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
-                        serde: 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Reduce Output Operator
+                  key expressions: null (type: tinyint), _col1 (type: double), 
_col2 (type: int), _col3 (type: double)
+                  sort order: ++++
+                  Statistics: Num rows: 6144 Data size: 1320982 Basic stats: 
COMPLETE Column stats: NONE
       Execution mode: vectorized
+      Reduce Operator Tree:
+        Select Operator
+          expressions: null (type: tinyint), KEY.reducesinkkey1 (type: 
double), KEY.reducesinkkey2 (type: int), KEY.reducesinkkey3 (type: double)
+          outputColumnNames: _col0, _col1, _col2, _col3
+          Statistics: Num rows: 6144 Data size: 1320982 Basic stats: COMPLETE 
Column stats: NONE
+          Limit
+            Number of rows: 10
+            Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.TextInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -108,35 +142,43 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-PREHOOK: query: SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) 
+PREHOOK: query: SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) as c
 FROM alltypesorc
-WHERE (ctinyint IS NULL) LIMIT 10
+WHERE (ctinyint IS NULL)
+ORDER BY ctinyint, cdouble, cint, c
+LIMIT 10
 PREHOOK: type: QUERY
 PREHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-POSTHOOK: query: SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) 
+POSTHOOK: query: SELECT ctinyint, cdouble, cint, coalesce(ctinyint+10, 
(cdouble+log2(cint)), 0) as c
 FROM alltypesorc
-WHERE (ctinyint IS NULL) LIMIT 10
+WHERE (ctinyint IS NULL)
+ORDER BY ctinyint, cdouble, cint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-NULL   -4213.0 528534767       -4184.022576865738
-NULL   -3012.0 528534767       -2983.0225768657383
-NULL   -4016.0 528534767       -3987.0225768657383
-NULL   -11534.0        528534767       -11505.022576865738
-NULL   -6147.0 528534767       -6118.022576865738
-NULL   -7680.0 528534767       -7651.022576865738
-NULL   -7314.0 528534767       -7285.022576865738
-NULL   11254.0 528534767       11282.977423134262
-NULL   13889.0 528534767       13917.977423134262
-NULL   3321.0  528534767       3349.9774231342617
-PREHOOK: query: EXPLAIN SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
+NULL   NULL    -1015272448     0.0
+NULL   NULL    -609074876      0.0
+NULL   NULL    -700300206      0.0
+NULL   NULL    -726473298      0.0
+NULL   NULL    -738747840      0.0
+NULL   NULL    -838810013      0.0
+NULL   NULL    -850295959      0.0
+NULL   NULL    -886426182      0.0
+NULL   NULL    -899422227      0.0
+NULL   NULL    -971543377      0.0
+PREHOOK: query: EXPLAIN SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
as c
 FROM alltypesorc
-WHERE (cfloat IS NULL AND cbigint IS NULL) LIMIT 10
+WHERE (cfloat IS NULL AND cbigint IS NULL)
+ORDER BY cfloat, cbigint, c
+LIMIT 10
 PREHOOK: type: QUERY
-POSTHOOK: query: EXPLAIN SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
+POSTHOOK: query: EXPLAIN SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
as c
 FROM alltypesorc
-WHERE (cfloat IS NULL AND cbigint IS NULL) LIMIT 10
+WHERE (cfloat IS NULL AND cbigint IS NULL)
+ORDER BY cfloat, cbigint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
@@ -153,20 +195,29 @@ STAGE PLANS:
               predicate: (cfloat is null and cbigint is null) (type: boolean)
               Statistics: Num rows: 3072 Data size: 660491 Basic stats: 
COMPLETE Column stats: NONE
               Select Operator
-                expressions: null (type: float), null (type: bigint), 0.0 
(type: float)
-                outputColumnNames: _col0, _col1, _col2
+                expressions: 0.0 (type: float)
+                outputColumnNames: _col2
                 Statistics: Num rows: 3072 Data size: 660491 Basic stats: 
COMPLETE Column stats: NONE
-                Limit
-                  Number of rows: 10
-                  Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                  File Output Operator
-                    compressed: false
-                    Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                    table:
-                        input format: org.apache.hadoop.mapred.TextInputFormat
-                        output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
-                        serde: 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Reduce Output Operator
+                  key expressions: null (type: float), null (type: bigint), 
_col2 (type: float)
+                  sort order: +++
+                  Statistics: Num rows: 3072 Data size: 660491 Basic stats: 
COMPLETE Column stats: NONE
       Execution mode: vectorized
+      Reduce Operator Tree:
+        Select Operator
+          expressions: null (type: float), null (type: bigint), 
KEY.reducesinkkey2 (type: float)
+          outputColumnNames: _col0, _col1, _col2
+          Statistics: Num rows: 3072 Data size: 660491 Basic stats: COMPLETE 
Column stats: NONE
+          Limit
+            Number of rows: 10
+            Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.TextInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -174,15 +225,19 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-PREHOOK: query: SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
+PREHOOK: query: SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) as c
 FROM alltypesorc
-WHERE (cfloat IS NULL AND cbigint IS NULL) LIMIT 10
+WHERE (cfloat IS NULL AND cbigint IS NULL)
+ORDER BY cfloat, cbigint, c
+LIMIT 10
 PREHOOK: type: QUERY
 PREHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-POSTHOOK: query: SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) 
+POSTHOOK: query: SELECT cfloat, cbigint, coalesce(cfloat, cbigint, 0) as c
 FROM alltypesorc
-WHERE (cfloat IS NULL AND cbigint IS NULL) LIMIT 10
+WHERE (cfloat IS NULL AND cbigint IS NULL)
+ORDER BY cfloat, cbigint, c
+LIMIT 10
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
@@ -196,13 +251,17 @@ NULL      NULL    0.0
 NULL   NULL    0.0
 NULL   NULL    0.0
 NULL   NULL    0.0
-PREHOOK: query: EXPLAIN SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) 
+PREHOOK: query: EXPLAIN SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) as c
 FROM alltypesorc 
-WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL LIMIT 10
+WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL
+ORDER BY ctimestamp1, ctimestamp2, c
+LIMIT 10
 PREHOOK: type: QUERY
-POSTHOOK: query: EXPLAIN SELECT ctimestamp1, ctimestamp2, 
coalesce(ctimestamp1, ctimestamp2) 
+POSTHOOK: query: EXPLAIN SELECT ctimestamp1, ctimestamp2, 
coalesce(ctimestamp1, ctimestamp2) as c
 FROM alltypesorc 
-WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL LIMIT 10
+WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL
+ORDER BY ctimestamp1, ctimestamp2, c
+LIMIT 10
 POSTHOOK: type: QUERY
 STAGE DEPENDENCIES:
   Stage-1 is a root stage
@@ -222,17 +281,26 @@ STAGE PLANS:
                 expressions: ctimestamp1 (type: timestamp), ctimestamp2 (type: 
timestamp), COALESCE(ctimestamp1,ctimestamp2) (type: timestamp)
                 outputColumnNames: _col0, _col1, _col2
                 Statistics: Num rows: 12288 Data size: 2641964 Basic stats: 
COMPLETE Column stats: NONE
-                Limit
-                  Number of rows: 10
-                  Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                  File Output Operator
-                    compressed: false
-                    Statistics: Num rows: 10 Data size: 2150 Basic stats: 
COMPLETE Column stats: NONE
-                    table:
-                        input format: org.apache.hadoop.mapred.TextInputFormat
-                        output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
-                        serde: 
org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
+                Reduce Output Operator
+                  key expressions: _col0 (type: timestamp), _col1 (type: 
timestamp), _col2 (type: timestamp)
+                  sort order: +++
+                  Statistics: Num rows: 12288 Data size: 2641964 Basic stats: 
COMPLETE Column stats: NONE
       Execution mode: vectorized
+      Reduce Operator Tree:
+        Select Operator
+          expressions: KEY.reducesinkkey0 (type: timestamp), 
KEY.reducesinkkey1 (type: timestamp), KEY.reducesinkkey2 (type: timestamp)
+          outputColumnNames: _col0, _col1, _col2
+          Statistics: Num rows: 12288 Data size: 2641964 Basic stats: COMPLETE 
Column stats: NONE
+          Limit
+            Number of rows: 10
+            Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+            File Output Operator
+              compressed: false
+              Statistics: Num rows: 10 Data size: 2150 Basic stats: COMPLETE 
Column stats: NONE
+              table:
+                  input format: org.apache.hadoop.mapred.TextInputFormat
+                  output format: 
org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat
+                  serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
 
   Stage: Stage-0
     Fetch Operator
@@ -240,25 +308,29 @@ STAGE PLANS:
       Processor Tree:
         ListSink
 
-PREHOOK: query: SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) 
+PREHOOK: query: SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) as c
 FROM alltypesorc 
-WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL LIMIT 10
+WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL
+ORDER BY ctimestamp1, ctimestamp2, c
+LIMIT 10
 PREHOOK: type: QUERY
 PREHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-POSTHOOK: query: SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) 
+POSTHOOK: query: SELECT ctimestamp1, ctimestamp2, coalesce(ctimestamp1, 
ctimestamp2) as c
 FROM alltypesorc 
-WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL LIMIT 10
+WHERE ctimestamp1 IS NOT NULL OR ctimestamp2 IS NOT NULL
+ORDER BY ctimestamp1, ctimestamp2, c
+LIMIT 10
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@alltypesorc
 #### A masked pattern was here ####
-1969-12-31 15:59:46.674        1969-12-31 16:00:08.875 1969-12-31 15:59:46.674
-NULL   1969-12-31 16:00:13.589 1969-12-31 16:00:13.589
-1969-12-31 15:59:55.787        1969-12-31 16:00:01.546 1969-12-31 15:59:55.787
-1969-12-31 15:59:44.187        1969-12-31 16:00:06.961 1969-12-31 15:59:44.187
-1969-12-31 15:59:50.434        1969-12-31 16:00:13.352 1969-12-31 15:59:50.434
-1969-12-31 16:00:15.007        1969-12-31 16:00:15.148 1969-12-31 16:00:15.007
-1969-12-31 16:00:07.021        1969-12-31 16:00:02.997 1969-12-31 16:00:07.021
-1969-12-31 16:00:04.963        1969-12-31 15:59:56.474 1969-12-31 16:00:04.963
-1969-12-31 15:59:52.176        1969-12-31 16:00:07.787 1969-12-31 15:59:52.176
-1969-12-31 15:59:44.569        1969-12-31 15:59:51.665 1969-12-31 15:59:44.569
+NULL   1969-12-31 15:59:30.929 1969-12-31 15:59:30.929
+NULL   1969-12-31 15:59:30.929 1969-12-31 15:59:30.929
+NULL   1969-12-31 15:59:30.929 1969-12-31 15:59:30.929
+NULL   1969-12-31 15:59:43.63  1969-12-31 15:59:43.63
+NULL   1969-12-31 15:59:43.658 1969-12-31 15:59:43.658
+NULL   1969-12-31 15:59:43.672 1969-12-31 15:59:43.672
+NULL   1969-12-31 15:59:43.684 1969-12-31 15:59:43.684
+NULL   1969-12-31 15:59:43.703 1969-12-31 15:59:43.703
+NULL   1969-12-31 15:59:43.704 1969-12-31 15:59:43.704
+NULL   1969-12-31 15:59:43.709 1969-12-31 15:59:43.709

Reply via email to