FAQ
Repository: hive
Updated Branches:
   refs/heads/master 318c2ef2f -> 13f8cfece


http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_aggregate.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_aggregate.q.out b/ql/src/test/results/clientpositive/vector_decimal_aggregate.q.out
index cf975d1..9b9fb71 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_aggregate.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_aggregate.q.out
@@ -110,14 +110,14 @@ POSTHOOK: query: SELECT cint,
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_vgby
  #### A masked pattern was here ####
--3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 6 6984454.211097692 -4033.445769230769 6967702.8672438458471
--563 2 -515.621072973 -3367.6517567568 -3883.2728297298 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459
-253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089
-528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003
-626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.746153846154 -11712.276923076923 12625.04759999997746
-6981 3 5831542.269248378 -515.621072973 5830511.027102432 3 6984454.211097692 -617.5607769230769 6983219.0895438458462
-762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2 6984454.211097692 1833.9456923076925 6986288.1567899996925
-NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536
+-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710
+-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590
+253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089
+528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003
+626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746
+6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620
+762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250
+NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360
  PREHOOK: query: -- Now add the others...
  EXPLAIN SELECT cint,
      COUNT(cdecimal1), MAX(cdecimal1), MIN(cdecimal1), SUM(cdecimal1), AVG(cdecimal1), STDDEV_POP(cdecimal1), STDDEV_SAMP(cdecimal1),
@@ -208,11 +208,11 @@ POSTHOOK: query: SELECT cint,
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_vgby
  #### A masked pattern was here ####
--3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.211097692 -4033.445769230769 6967702.8672438458471 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
--563 2 -515.621072973 -3367.6517567568 -3883.2728297298 -1941.6364148649 1426.0153418918999 2016.6902366556308 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459 -2325.50327307692295 1707.9424961538462 2415.395441814127
-253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
-528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
-626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.746153846154 -11712.276923076923 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
-6981 3 5831542.269248378 -515.621072973 5830511.027102432 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.211097692 -617.5607769230769 6983219.0895438458462 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
-762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2916536.7443268917 2915005.5249214866 4122440.3477364695 2 6984454.211097692 1833.9456923076925 6986288.1567899996925 3493144.07839499984625 3491310.1327026924 4937458.140118758
-NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536 1956.576923076922966667 6821.495748565159 6822.606289190924
+-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
+-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 -1941.63641486490000 1426.0153418918999 2016.6902366556308 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590 -2325.503273076922950000 1707.9424961538462 2415.395441814127
+253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
+528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
+626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
+6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
+762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2916536.74432689170000 2915005.5249214866 4122440.3477364695 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250 3493144.078394999846250000 3491310.1327026924 4937458.140118758
+NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360 1956.576923076922966667 6821.495748565159 6822.606289190924

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_cast.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_cast.q.out b/ql/src/test/results/clientpositive/vector_decimal_cast.q.out
index 88c09d9..2d81305 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_cast.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_cast.q.out
@@ -46,13 +46,13 @@ POSTHOOK: query: SELECT cdouble, cint, cboolean1, ctimestamp1, CAST(cdouble AS D
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@alltypesorc
  #### A masked pattern was here ####
--13326.0 528534767 true 1969-12-31 15:59:46.674 -13326 528534767 1 -13
--15813.0 528534767 true 1969-12-31 15:59:55.787 -15813 528534767 1 -4
--9566.0 528534767 true 1969-12-31 15:59:44.187 -9566 528534767 1 -16
-15007.0 528534767 true 1969-12-31 15:59:50.434 15007 528534767 1 -10
-7021.0 528534767 true 1969-12-31 16:00:15.007 7021 528534767 1 15
-4963.0 528534767 true 1969-12-31 16:00:07.021 4963 528534767 1 7
--7824.0 528534767 true 1969-12-31 16:00:04.963 -7824 528534767 1 5
--15431.0 528534767 true 1969-12-31 15:59:52.176 -15431 528534767 1 -8
--15549.0 528534767 true 1969-12-31 15:59:44.569 -15549 528534767 1 -15
-5780.0 528534767 true 1969-12-31 15:59:44.451 5780 528534767 1 -16
+-13326.0 528534767 true 1969-12-31 15:59:46.674 -13326.0000000000 528534767.00000000000000 1.00 -13
+-15813.0 528534767 true 1969-12-31 15:59:55.787 -15813.0000000000 528534767.00000000000000 1.00 -4
+-9566.0 528534767 true 1969-12-31 15:59:44.187 -9566.0000000000 528534767.00000000000000 1.00 -16
+15007.0 528534767 true 1969-12-31 15:59:50.434 15007.0000000000 528534767.00000000000000 1.00 -10
+7021.0 528534767 true 1969-12-31 16:00:15.007 7021.0000000000 528534767.00000000000000 1.00 15
+4963.0 528534767 true 1969-12-31 16:00:07.021 4963.0000000000 528534767.00000000000000 1.00 7
+-7824.0 528534767 true 1969-12-31 16:00:04.963 -7824.0000000000 528534767.00000000000000 1.00 5
+-15431.0 528534767 true 1969-12-31 15:59:52.176 -15431.0000000000 528534767.00000000000000 1.00 -8
+-15549.0 528534767 true 1969-12-31 15:59:44.569 -15549.0000000000 528534767.00000000000000 1.00 -15
+5780.0 528534767 true 1969-12-31 15:59:44.451 5780.0000000000 528534767.00000000000000 1.00 -16

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_expressions.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_expressions.q.out b/ql/src/test/results/clientpositive/vector_decimal_expressions.q.out
index 6369bc8..e57d6c1 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_expressions.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_expressions.q.out
@@ -77,13 +77,13 @@ LIMIT 10
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_test
  #### A masked pattern was here ####
-1836.441995841977 -1166.027234927254 0.8372697814833714 245972.55810810256 5.6189189189 835 1000 -24 835 true 1000.823076923077 835.6189 1000.823076923077 1969-12-31 16:13:55.618918918
-1856.1322245322462 -1178.5293139292924 0.8372449787014038 251275.4432432497 4.5783783784 844 1011 -13 844 true 1011.5538461538462 844.57837 1011.5538461538462 1969-12-31 16:14:04.578378378
-1858.7575883576155 -1180.196257796231 0.837241711366943 251986.76756757565 5.772972973 845 1012 -12 845 true 1012.9846153846155 845.77295 1012.9846153846155 1969-12-31 16:14:05.772972973
-1862.6956340956693 -1182.6966735966386 0.8372368276344616 253055.6391891997 7.5648648649 847 1015 -9 847 true 1015.1307692307693 847.5649 1015.1307692307693 1969-12-31 16:14:07.564864864
-1883.6985446985233 -1196.0322245322466 0.8372111259286499 258794.49324323673 7.1216216216 857 1026 2 857 true 1026.5769230769233 857.12164 1026.5769230769233 1969-12-31 16:14:17.121621621
-1886.3239085238924 -1197.6991683991848 0.8372079534581902 259516.37432431948 8.3162162162 858 1028 4 858 true 1028.0076923076924 858.3162 1028.0076923076924 1969-12-31 16:14:18.316216216
-1887.636590436577 -1198.532640332654 0.8372063705322131 259877.69189188787 8.9135135135 858 1028 4 858 true 1028.723076923077 858.9135 1028.723076923077 1969-12-31 16:14:18.913513513
-1895.5126819126846 -1203.5334719334692 0.8371969190171343 262050.87567567648 2.4972972973 862 1033 9 862 true 1033.0153846153846 862.4973 1033.0153846153846 1969-12-31 16:14:22.497297297
-1909.9521829522155 -1212.701663201631 0.8371797936946236 266058.54729730723 9.0675675676 869 1040 16 869 true 1040.8846153846155 869.06757 1040.8846153846155 1969-12-31 16:14:29.067567567
-1913.8902286902692 -1215.2020790020384 0.8371751679995797 267156.8270270395 0.8594594595 870 1043 19 870 true 1043.0307692307692 870.85944 1043.0307692307692 1969-12-31 16:14:30.859459459
+1836.44199584197700 -1166.02723492725400 0.8372697814833714 245972.55810810256 5.6189189189 835 1000 -24 835 true 1000.823076923077 835.6189 1000.823076923077 1969-12-31 16:13:55.618918918
+1856.13222453224620 -1178.52931392929240 0.8372449787014038 251275.4432432497 4.5783783784 844 1011 -13 844 true 1011.5538461538462 844.57837 1011.5538461538462 1969-12-31 16:14:04.578378378
+1858.75758835761550 -1180.19625779623100 0.837241711366943 251986.76756757565 5.7729729730 845 1012 -12 845 true 1012.9846153846155 845.77295 1012.9846153846155 1969-12-31 16:14:05.772972973
+1862.69563409566930 -1182.69667359663860 0.8372368276344616 253055.6391891997 7.5648648649 847 1015 -9 847 true 1015.1307692307693 847.5649 1015.1307692307693 1969-12-31 16:14:07.564864864
+1883.69854469852330 -1196.03222453224660 0.8372111259286499 258794.49324323673 7.1216216216 857 1026 2 857 true 1026.5769230769233 857.12164 1026.5769230769233 1969-12-31 16:14:17.121621621
+1886.32390852389240 -1197.69916839918480 0.8372079534581902 259516.37432431948 8.3162162162 858 1028 4 858 true 1028.0076923076924 858.3162 1028.0076923076924 1969-12-31 16:14:18.316216216
+1887.63659043657700 -1198.53264033265400 0.8372063705322131 259877.69189188787 8.9135135135 858 1028 4 858 true 1028.723076923077 858.9135 1028.723076923077 1969-12-31 16:14:18.913513513
+1895.51268191268460 -1203.53347193346920 0.8371969190171343 262050.87567567648 2.4972972973 862 1033 9 862 true 1033.0153846153846 862.4973 1033.0153846153846 1969-12-31 16:14:22.497297297
+1909.95218295221550 -1212.70166320163100 0.8371797936946236 266058.54729730723 9.0675675676 869 1040 16 869 true 1040.8846153846155 869.06757 1040.8846153846155 1969-12-31 16:14:29.067567567
+1913.89022869026920 -1215.20207900203840 0.8371751679995797 267156.8270270395 0.8594594595 870 1043 19 870 true 1043.0307692307692 870.85944 1043.0307692307692 1969-12-31 16:14:30.859459459

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_mapjoin.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_mapjoin.q.out b/ql/src/test/results/clientpositive/vector_decimal_mapjoin.q.out
index cf48a32..d3356ed 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_mapjoin.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_mapjoin.q.out
@@ -155,109 +155,109 @@ POSTHOOK: type: QUERY
  POSTHOOK: Input: default@t1
  POSTHOOK: Input: default@t2
  #### A masked pattern was here ####
-14 14
-14 14
-14 14
-14 14
-14 14
-14 14
-14 14
-14 14
-14 14
-17 17
-17 17
-17 17
-17 17
-17 17
-17 17
-17 17
-17 17
-17 17
-17 17
-45 45
-45 45
-45 45
-45 45
-45 45
-6 6
-6 6
-6 6
-6 6
-6 6
-6 6
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-62 62
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-64 64
-70 70
-70 70
-70 70
-70 70
-70 70
-70 70
-70 70
-79 79
-79 79
-79 79
-79 79
-79 79
-79 79
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-89 89
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
-9 9
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+14.00 14
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+17.00 17
+45.00 45
+45.00 45
+45.00 45
+45.00 45
+45.00 45
+6.00 6
+6.00 6
+6.00 6
+6.00 6
+6.00 6
+6.00 6
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+62.00 62
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+64.00 64
+70.00 70
+70.00 70
+70.00 70
+70.00 70
+70.00 70
+70.00 70
+70.00 70
+79.00 79
+79.00 79
+79.00 79
+79.00 79
+79.00 79
+79.00 79
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+89.00 89
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9
+9.00 9

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_precision.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_precision.q.out b/ql/src/test/results/clientpositive/vector_decimal_precision.q.out
index f2aaf8d..c5ab8a7 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_precision.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_precision.q.out
@@ -99,13 +99,13 @@ NULL
  NULL
  NULL
  NULL
-0
-0
-0
-0
-0
-0.123456789
-0.123456789
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.1234567890
+0.1234567890
  1.2345678901
  1.2345678901
  1.2345678901
@@ -122,14 +122,14 @@ NULL
  12345.6789012346
  123456.7890123456
  123456.7890123457
-1234567.890123456
+1234567.8901234560
  1234567.8901234568
-12345678.90123456
+12345678.9012345600
  12345678.9012345679
-123456789.0123456
+123456789.0123456000
  123456789.0123456789
-1234567890.123456
-1234567890.123456789
+1234567890.1234560000
+1234567890.1234567890
  PREHOOK: query: SELECT dec, dec + 1, dec - 1 FROM DECIMAL_PRECISION ORDER BY dec
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision
@@ -182,13 +182,13 @@ NULL NULL NULL
  NULL NULL NULL
  NULL NULL NULL
  NULL NULL NULL
-0 1 -1
-0 1 -1
-0 1 -1
-0 1 -1
-0 1 -1
-0.123456789 1.123456789 -0.876543211
-0.123456789 1.123456789 -0.876543211
+0.0000000000 1.0000000000 -1.0000000000
+0.0000000000 1.0000000000 -1.0000000000
+0.0000000000 1.0000000000 -1.0000000000
+0.0000000000 1.0000000000 -1.0000000000
+0.0000000000 1.0000000000 -1.0000000000
+0.1234567890 1.1234567890 -0.8765432110
+0.1234567890 1.1234567890 -0.8765432110
  1.2345678901 2.2345678901 0.2345678901
  1.2345678901 2.2345678901 0.2345678901
  1.2345678901 2.2345678901 0.2345678901
@@ -205,14 +205,14 @@ NULL NULL NULL
  12345.6789012346 12346.6789012346 12344.6789012346
  123456.7890123456 123457.7890123456 123455.7890123456
  123456.7890123457 123457.7890123457 123455.7890123457
-1234567.890123456 1234568.890123456 1234566.890123456
+1234567.8901234560 1234568.8901234560 1234566.8901234560
  1234567.8901234568 1234568.8901234568 1234566.8901234568
-12345678.90123456 12345679.90123456 12345677.90123456
+12345678.9012345600 12345679.9012345600 12345677.9012345600
  12345678.9012345679 12345679.9012345679 12345677.9012345679
-123456789.0123456 123456790.0123456 123456788.0123456
+123456789.0123456000 123456790.0123456000 123456788.0123456000
  123456789.0123456789 123456790.0123456789 123456788.0123456789
-1234567890.123456 1234567891.123456 1234567889.123456
-1234567890.123456789 1234567891.123456789 1234567889.123456789
+1234567890.1234560000 1234567891.1234560000 1234567889.1234560000
+1234567890.1234567890 1234567891.1234567890 1234567889.1234567890
  PREHOOK: query: SELECT dec, dec * 2, dec / 3 FROM DECIMAL_PRECISION ORDER BY dec
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision
@@ -265,37 +265,37 @@ NULL NULL NULL
  NULL NULL NULL
  NULL NULL NULL
  NULL NULL NULL
-0 0 0
-0 0 0
-0 0 0
-0 0 0
-0 0 0
-0.123456789 0.246913578 0.041152263
-0.123456789 0.246913578 0.041152263
+0.0000000000 0.0000000000 0.000000000000
+0.0000000000 0.0000000000 0.000000000000
+0.0000000000 0.0000000000 0.000000000000
+0.0000000000 0.0000000000 0.000000000000
+0.0000000000 0.0000000000 0.000000000000
+0.1234567890 0.2469135780 0.041152263000
+0.1234567890 0.2469135780 0.041152263000
  1.2345678901 2.4691357802 0.411522630033
  1.2345678901 2.4691357802 0.411522630033
  1.2345678901 2.4691357802 0.411522630033
-12.3456789012 24.6913578024 4.1152263004
-12.3456789012 24.6913578024 4.1152263004
-12.3456789012 24.6913578024 4.1152263004
-123.4567890123 246.9135780246 41.1522630041
-123.4567890123 246.9135780246 41.1522630041
-123.4567890123 246.9135780246 41.1522630041
-1234.5678901235 2469.135780247 411.522630041167
-1234.5678901235 2469.135780247 411.522630041167
-1234.5678901235 2469.135780247 411.522630041167
+12.3456789012 24.6913578024 4.115226300400
+12.3456789012 24.6913578024 4.115226300400
+12.3456789012 24.6913578024 4.115226300400
+123.4567890123 246.9135780246 41.152263004100
+123.4567890123 246.9135780246 41.152263004100
+123.4567890123 246.9135780246 41.152263004100
+1234.5678901235 2469.1357802470 411.522630041167
+1234.5678901235 2469.1357802470 411.522630041167
+1234.5678901235 2469.1357802470 411.522630041167
  12345.6789012346 24691.3578024692 4115.226300411533
  12345.6789012346 24691.3578024692 4115.226300411533
-123456.7890123456 246913.5780246912 41152.2630041152
+123456.7890123456 246913.5780246912 41152.263004115200
  123456.7890123457 246913.5780246914 41152.263004115233
-1234567.890123456 2469135.780246912 411522.630041152
+1234567.8901234560 2469135.7802469120 411522.630041152000
  1234567.8901234568 2469135.7802469136 411522.630041152267
-12345678.90123456 24691357.80246912 4115226.30041152
+12345678.9012345600 24691357.8024691200 4115226.300411520000
  12345678.9012345679 24691357.8024691358 4115226.300411522633
-123456789.0123456 246913578.0246912 41152263.0041152
-123456789.0123456789 246913578.0246913578 41152263.0041152263
-1234567890.123456 2469135780.246912 411522630.041152
-1234567890.123456789 2469135780.246913578 411522630.041152263
+123456789.0123456000 246913578.0246912000 41152263.004115200000
+123456789.0123456789 246913578.0246913578 41152263.004115226300
+1234567890.1234560000 2469135780.2469120000 411522630.041152000000
+1234567890.1234567890 2469135780.2469135780 411522630.041152263000
  PREHOOK: query: SELECT dec, dec / 9 FROM DECIMAL_PRECISION ORDER BY dec
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision
@@ -348,13 +348,13 @@ NULL NULL
  NULL NULL
  NULL NULL
  NULL NULL
-0 0
-0 0
-0 0
-0 0
-0 0
-0.123456789 0.013717421
-0.123456789 0.013717421
+0.0000000000 0.000000000000
+0.0000000000 0.000000000000
+0.0000000000 0.000000000000
+0.0000000000 0.000000000000
+0.0000000000 0.000000000000
+0.1234567890 0.013717421000
+0.1234567890 0.013717421000
  1.2345678901 0.137174210011
  1.2345678901 0.137174210011
  1.2345678901 0.137174210011
@@ -371,14 +371,14 @@ NULL NULL
  12345.6789012346 1371.742100137178
  123456.7890123456 13717.421001371733
  123456.7890123457 13717.421001371744
-1234567.890123456 137174.210013717333
+1234567.8901234560 137174.210013717333
  1234567.8901234568 137174.210013717422
-12345678.90123456 1371742.100137173333
+12345678.9012345600 1371742.100137173333
  12345678.9012345679 1371742.100137174211
-123456789.0123456 13717421.001371733333
-123456789.0123456789 13717421.0013717421
-1234567890.123456 137174210.013717333333
-1234567890.123456789 137174210.013717421
+123456789.0123456000 13717421.001371733333
+123456789.0123456789 13717421.001371742100
+1234567890.1234560000 137174210.013717333333
+1234567890.1234567890 137174210.013717421000
  PREHOOK: query: SELECT dec, dec / 27 FROM DECIMAL_PRECISION ORDER BY dec
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision
@@ -431,13 +431,13 @@ NULL NULL
  NULL NULL
  NULL NULL
  NULL NULL
-0 0
-0 0
-0 0
-0 0
-0 0
-0.123456789 0.0045724736667
-0.123456789 0.0045724736667
+0.0000000000 0.0000000000000
+0.0000000000 0.0000000000000
+0.0000000000 0.0000000000000
+0.0000000000 0.0000000000000
+0.0000000000 0.0000000000000
+0.1234567890 0.0045724736667
+0.1234567890 0.0045724736667
  1.2345678901 0.0457247366704
  1.2345678901 0.0457247366704
  1.2345678901 0.0457247366704
@@ -454,14 +454,14 @@ NULL NULL
  12345.6789012346 457.2473667123926
  123456.7890123456 4572.4736671239111
  123456.7890123457 4572.4736671239148
-1234567.890123456 45724.7366712391111
+1234567.8901234560 45724.7366712391111
  1234567.8901234568 45724.7366712391407
-12345678.90123456 457247.3667123911111
+12345678.9012345600 457247.3667123911111
  12345678.9012345679 457247.3667123914037
-123456789.0123456 4572473.6671239111111
+123456789.0123456000 4572473.6671239111111
  123456789.0123456789 4572473.6671239140333
-1234567890.123456 45724736.6712391111111
-1234567890.123456789 45724736.6712391403333
+1234567890.1234560000 45724736.6712391111111
+1234567890.1234567890 45724736.6712391403333
  PREHOOK: query: SELECT dec, dec * dec FROM DECIMAL_PRECISION ORDER BY dec
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision
@@ -514,13 +514,13 @@ NULL NULL
  NULL NULL
  NULL NULL
  NULL NULL
-0 0
-0 0
-0 0
-0 0
-0 0
-0.123456789 0.015241578750190521
-0.123456789 0.015241578750190521
+0.0000000000 0.00000000000000000000
+0.0000000000 0.00000000000000000000
+0.0000000000 0.00000000000000000000
+0.0000000000 0.00000000000000000000
+0.0000000000 0.00000000000000000000
+0.1234567890 0.01524157875019052100
+0.1234567890 0.01524157875019052100
  1.2345678901 1.52415787526596567801
  1.2345678901 1.52415787526596567801
  1.2345678901 1.52415787526596567801
@@ -537,14 +537,14 @@ NULL NULL
  12345.6789012346 152415787.53238916034140423716
  123456.7890123456 15241578753.23881726870921383936
  123456.7890123457 15241578753.23884196006701630849
-1234567.890123456 1524157875323.881726870921383936
+1234567.8901234560 1524157875323.88172687092138393600
  1234567.8901234568 1524157875323.88370217954558146624
-12345678.90123456 152415787532388.1726870921383936
+12345678.9012345600 152415787532388.17268709213839360000
  12345678.9012345679 152415787532388.36774881877789971041
-123456789.0123456 15241578753238817.26870921383936
+123456789.0123456000 15241578753238817.26870921383936000000
  123456789.0123456789 15241578753238836.75019051998750190521
-1234567890.123456 NULL
-1234567890.123456789 NULL
+1234567890.1234560000 NULL
+1234567890.1234567890 NULL
  PREHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
@@ -637,7 +637,7 @@ POSTHOOK: query: SELECT MIN(cast('12345678901234567890.12345678' as decimal(38,1
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_precision
  #### A masked pattern was here ####
-12345678901234567890.12345678
+12345678901234567890.123456780000000000
  PREHOOK: query: SELECT COUNT(cast('12345678901234567890.12345678' as decimal(38,18))) FROM DECIMAL_PRECISION
  PREHOOK: type: QUERY
  PREHOOK: Input: default@decimal_precision

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_round_2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_round_2.q.out b/ql/src/test/results/clientpositive/vector_decimal_round_2.q.out
index 0151b04..5291609 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_round_2.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_round_2.q.out
@@ -25,7 +25,7 @@ POSTHOOK: query: select * from decimal_tbl_1_orc
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_1_orc
  #### A masked pattern was here ####
-55555
+55555.000000000000000000
  PREHOOK: query: -- EXPLAIN
  -- SELECT dec, round(null), round(null, 0), round(125, null),
  -- round(1.0/0.0, 0), round(power(-1.0,0.5), 0)
@@ -114,7 +114,7 @@ FROM decimal_tbl_1_orc ORDER BY d
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_1_orc
  #### A masked pattern was here ####
-55555 55555 55555 55555 55555 55560 55600 56000 60000 100000 0 0 0
+55555 55555 55555.0 55555.00 55555.000 55560 55600 56000 60000 100000 0 0 0
  PREHOOK: query: create table decimal_tbl_2_orc (pos decimal(38,18), neg decimal(38,18))
  STORED AS ORC
  PREHOOK: type: CREATETABLE
@@ -143,7 +143,7 @@ POSTHOOK: query: select * from decimal_tbl_2_orc
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_2_orc
  #### A masked pattern was here ####
-125.315 -125.315
+125.315000000000000000 -125.315000000000000000
  PREHOOK: query: EXPLAIN
  SELECT
    round(pos) as p, round(pos, 0),
@@ -226,7 +226,7 @@ FROM decimal_tbl_2_orc ORDER BY p
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_2_orc
  #### A masked pattern was here ####
-125 125 125.3 125.32 125.315 125.315 130 100 0 0 -125 -125 -125.3 -125.32 -125.315 -125.315 -130 -100 0 0
+125 125 125.3 125.32 125.315 125.3150 130 100 0 0 -125 -125 -125.3 -125.32 -125.315 -125.3150 -130 -100 0 0
  PREHOOK: query: create table decimal_tbl_3_orc (dec decimal(38,18))
  STORED AS ORC
  PREHOOK: type: CREATETABLE
@@ -254,7 +254,7 @@ POSTHOOK: query: select * from decimal_tbl_3_orc
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_3_orc
  #### A masked pattern was here ####
-3.141592653589793
+3.141592653589793000
  PREHOOK: query: EXPLAIN
  SELECT
    round(dec, -15) as d, round(dec, -16),
@@ -381,7 +381,7 @@ FROM decimal_tbl_3_orc ORDER BY d
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_3_orc
  #### A masked pattern was here ####
-0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3.1 3.14 3.142 3.1416 3.14159 3.141593 3.1415927 3.14159265 3.141592654 3.1415926536 3.14159265359 3.14159265359 3.1415926535898 3.1415926535898 3.14159265358979 3.141592653589793 3.141592653589793
+0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3.1 3.14 3.142 3.1416 3.14159 3.141593 3.1415927 3.14159265 3.141592654 3.1415926536 3.14159265359 3.141592653590 3.1415926535898 3.1415926535898 3.14159265358979 3.141592653589793 3.1415926535897930
  PREHOOK: query: create table decimal_tbl_4_orc (pos decimal(38,18), neg decimal(38,18))
  STORED AS ORC
  PREHOOK: type: CREATETABLE
@@ -410,7 +410,7 @@ POSTHOOK: query: select * from decimal_tbl_4_orc
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_tbl_4_orc
  #### A masked pattern was here ####
-1809242.3151111344 -1809242.3151111344
+1809242.315111134400000000 -1809242.315111134400000000
  PREHOOK: query: EXPLAIN
  SELECT round(pos, 9) as p, round(neg, 9), round(1809242.3151111344BD, 9), round(-1809242.3151111344BD, 9)
  FROM decimal_tbl_4_orc ORDER BY p

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_trailing.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_trailing.q.out b/ql/src/test/results/clientpositive/vector_decimal_trailing.q.out
index ffdb1c9..7dea1a2 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_trailing.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_trailing.q.out
@@ -73,16 +73,16 @@ POSTHOOK: query: SELECT * FROM DECIMAL_TRAILING ORDER BY id
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_trailing
  #### A masked pattern was here ####
-0 0 0
-1 0 0
+0 0.0000 0.00000000
+1 0.0000 0.00000000
  2 NULL NULL
-3 1 1
-4 10 10
-5 100 100
-6 1000 1000
-7 10000 10000
-8 100000 100000
-9 NULL 1000000
+3 1.0000 1.00000000
+4 10.0000 10.00000000
+5 100.0000 100.00000000
+6 1000.0000 1000.00000000
+7 10000.0000 10000.00000000
+8 100000.0000 100000.00000000
+9 NULL 1000000.00000000
  10 NULL NULL
  11 NULL NULL
  12 NULL NULL
@@ -91,18 +91,18 @@ POSTHOOK: Input: default@decimal_trailing
  15 NULL NULL
  16 NULL NULL
  17 NULL NULL
-18 1 1
-19 10 10
-20 100 100
-21 1000 1000
-22 100000 10000
-23 0 0
-24 0 0
-25 0 0
-26 0 0
-27 0 0
-28 12313.2 134134.312525
-29 99999.999 134134.31242553
+18 1.0000 1.00000000
+19 10.0000 10.00000000
+20 100.0000 100.00000000
+21 1000.0000 1000.00000000
+22 100000.0000 10000.00000000
+23 0.0000 0.00000000
+24 0.0000 0.00000000
+25 0.0000 0.00000000
+26 0.0000 0.00000000
+27 0.0000 0.00000000
+28 12313.2000 134134.31252500
+29 99999.9990 134134.31242553
  PREHOOK: query: DROP TABLE DECIMAL_TRAILING_txt
  PREHOOK: type: DROPTABLE
  PREHOOK: Input: default@decimal_trailing_txt

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_udf.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_decimal_udf.q.out b/ql/src/test/results/clientpositive/vector_decimal_udf.q.out
index cfd2a55..6837b76 100644
--- a/ql/src/test/results/clientpositive/vector_decimal_udf.q.out
+++ b/ql/src/test/results/clientpositive/vector_decimal_udf.q.out
@@ -92,44 +92,44 @@ POSTHOOK: query: SELECT key + key FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--8800
+-8800.0000000000
  NULL
-0
-0
-200
-20
-2
-0.2
-0.02
-400
-40
-4
-0
-0.4
-0.04
-0.6
-0.66
-0.666
--0.6
--0.66
--0.666
-2
-4
-6.28
--2.24
--2.24
--2.244
-2.24
-2.244
-248
-250.4
--2510.98
-6.28
-6.28
-6.28
-2
--2469135780.246913578
-2469135780.24691356
+0.0000000000
+0.0000000000
+200.0000000000
+20.0000000000
+2.0000000000
+0.2000000000
+0.0200000000
+400.0000000000
+40.0000000000
+4.0000000000
+0.0000000000
+0.4000000000
+0.0400000000
+0.6000000000
+0.6600000000
+0.6660000000
+-0.6000000000
+-0.6600000000
+-0.6660000000
+2.0000000000
+4.0000000000
+6.2800000000
+-2.2400000000
+-2.2400000000
+-2.2440000000
+2.2400000000
+2.2440000000
+248.0000000000
+250.4000000000
+-2510.9800000000
+6.2800000000
+6.2800000000
+6.2800000000
+2.0000000000
+-2469135780.2469135780
+2469135780.2469135600
  PREHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
@@ -172,44 +172,44 @@ POSTHOOK: query: SELECT key + value FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-0
+0.0000000000
  NULL
-0
-0
-200
-20
-2
-0.1
-0.01
-400
-40
-4
-0
-0.2
-0.02
-0.3
-0.33
-0.333
--0.3
--0.33
--0.333
-2
-4
-6.14
--2.12
--2.12
--12.122
-2.12
-2.122
-248
-250.2
--2510.49
-6.14
-6.14
-7.14
-2
--2469135780.123456789
-2469135780.12345678
+0.0000000000
+0.0000000000
+200.0000000000
+20.0000000000
+2.0000000000
+0.1000000000
+0.0100000000
+400.0000000000
+40.0000000000
+4.0000000000
+0.0000000000
+0.2000000000
+0.0200000000
+0.3000000000
+0.3300000000
+0.3330000000
+-0.3000000000
+-0.3300000000
+-0.3330000000
+2.0000000000
+4.0000000000
+6.1400000000
+-2.1200000000
+-2.1200000000
+-12.1220000000
+2.1200000000
+2.1220000000
+248.0000000000
+250.2000000000
+-2510.4900000000
+6.1400000000
+6.1400000000
+7.1400000000
+2.0000000000
+-2469135780.1234567890
+2469135780.1234567800
  PREHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
@@ -414,44 +414,44 @@ POSTHOOK: query: SELECT key - key FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-0
+0.0000000000
  NULL
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
-0
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
  PREHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
@@ -494,44 +494,44 @@ POSTHOOK: query: SELECT key - value FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--8800
+-8800.0000000000
  NULL
-0
-0
-0
-0
-0
-0.1
-0.01
-0
-0
-0
-0
-0.2
-0.02
-0.3
-0.33
-0.333
--0.3
--0.33
--0.333
-0
-0
-0.14
--0.12
--0.12
-9.878
-0.12
-0.122
-0
-0.2
--0.49
-0.14
-0.14
--0.86
-0
--0.123456789
-0.12345678
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.1000000000
+0.0100000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.2000000000
+0.0200000000
+0.3000000000
+0.3300000000
+0.3330000000
+-0.3000000000
+-0.3300000000
+-0.3330000000
+0.0000000000
+0.0000000000
+0.1400000000
+-0.1200000000
+-0.1200000000
+9.8780000000
+0.1200000000
+0.1220000000
+0.0000000000
+0.2000000000
+-0.4900000000
+0.1400000000
+0.1400000000
+-0.8600000000
+0.0000000000
+-0.1234567890
+0.1234567800
  PREHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
@@ -736,42 +736,42 @@ POSTHOOK: query: SELECT key * key FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-19360000
+19360000.00000000000000000000
  NULL
-0
-0
-10000
-100
-1
-0.01
-0.0001
-40000
-400
-4
-0
-0.04
-0.0004
-0.09
-0.1089
-0.110889
-0.09
-0.1089
-0.110889
-1
-4
-9.8596
-1.2544
-1.2544
-1.258884
-1.2544
-1.258884
-15376
-15675.04
-1576255.1401
-9.8596
-9.8596
-9.8596
-1
+0.00000000000000000000
+0.00000000000000000000
+10000.00000000000000000000
+100.00000000000000000000
+1.00000000000000000000
+0.01000000000000000000
+0.00010000000000000000
+40000.00000000000000000000
+400.00000000000000000000
+4.00000000000000000000
+0.00000000000000000000
+0.04000000000000000000
+0.00040000000000000000
+0.09000000000000000000
+0.10890000000000000000
+0.11088900000000000000
+0.09000000000000000000
+0.10890000000000000000
+0.11088900000000000000
+1.00000000000000000000
+4.00000000000000000000
+9.85960000000000000000
+1.25440000000000000000
+1.25440000000000000000
+1.25888400000000000000
+1.25440000000000000000
+1.25888400000000000000
+15376.00000000000000000000
+15675.04000000000000000000
+1576255.14010000000000000000
+9.85960000000000000000
+9.85960000000000000000
+9.85960000000000000000
+1.00000000000000000000
  NULL
  NULL
  PREHOOK: query: EXPLAIN SELECT key, value FROM DECIMAL_UDF where key * value > 0
@@ -819,29 +819,29 @@ POSTHOOK: query: SELECT key, value FROM DECIMAL_UDF where key * value > 0
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-100 100
-10 10
-1 1
-200 200
-20 20
-2 2
-1 1
-2 2
-3.14 3
--1.12 -1
--1.12 -1
--1.122 -11
-1.12 1
-1.122 1
-124 124
-125.2 125
--1255.49 -1255
-3.14 3
-3.14 3
-3.14 4
-1 1
--1234567890.123456789 -1234567890
-1234567890.12345678 1234567890
+100.0000000000 100
+10.0000000000 10
+1.0000000000 1
+200.0000000000 200
+20.0000000000 20
+2.0000000000 2
+1.0000000000 1
+2.0000000000 2
+3.1400000000 3
+-1.1200000000 -1
+-1.1200000000 -1
+-1.1220000000 -11
+1.1200000000 1
+1.1220000000 1
+124.0000000000 124
+125.2000000000 125
+-1255.4900000000 -1255
+3.1400000000 3
+3.1400000000 3
+3.1400000000 4
+1.0000000000 1
+-1234567890.1234567890 -1234567890
+1234567890.1234567800 1234567890
  PREHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
@@ -884,44 +884,44 @@ POSTHOOK: query: SELECT key * value FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--19360000
+-19360000.0000000000
  NULL
-0
-0
-10000
-100
-1
-0
-0
-40000
-400
-4
-0
-0
-0
-0
-0
-0
-0
-0
-0
-1
-4
-9.42
-1.12
-1.12
-12.342
-1.12
-1.122
-15376
-15650
-1575639.95
-9.42
-9.42
-12.56
-1
-1524157875171467887.50190521
-1524157875171467876.3907942
+0.0000000000
+0.0000000000
+10000.0000000000
+100.0000000000
+1.0000000000
+0.0000000000
+0.0000000000
+40000.0000000000
+400.0000000000
+4.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+0.0000000000
+1.0000000000
+4.0000000000
+9.4200000000
+1.1200000000
+1.1200000000
+12.3420000000
+1.1200000000
+1.1220000000
+15376.0000000000
+15650.0000000000
+1575639.9500000000
+9.4200000000
+9.4200000000
+12.5600000000
+1.0000000000
+1524157875171467887.5019052100
+1524157875171467876.3907942000
  PREHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
@@ -1220,40 +1220,40 @@ POSTHOOK: query: SELECT key / key FROM DECIMAL_UDF WHERE key is not null and key
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
+1.000000000000000000000000
  PREHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
@@ -1299,30 +1299,30 @@ POSTHOOK: query: SELECT key / value FROM DECIMAL_UDF WHERE value is not null and
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--1
-1
-1
-1
-1
-1
-1
-1
-1
+-1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
+1.000000000000000000000
  1.046666666666666666667
-1.12
-1.12
-0.102
-1.12
-1.122
-1
-1.0016
+1.120000000000000000000
+1.120000000000000000000
+0.102000000000000000000
+1.120000000000000000000
+1.122000000000000000000
+1.000000000000000000000
+1.001600000000000000000
  1.000390438247011952191
  1.046666666666666666667
  1.046666666666666666667
-0.785
-1
-1.0000000001
-1.00000000009999999271
+0.785000000000000000000
+1.000000000000000000000
+1.000000000100000000000
+1.000000000099999992710
  PREHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
  PREHOOK: type: QUERY
  POSTHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
@@ -1516,44 +1516,44 @@ POSTHOOK: query: SELECT abs(key) FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-4400
+4400.0000000000
  NULL
-0
-0
-100
-10
-1
-0.1
-0.01
-200
-20
-2
-0
-0.2
-0.02
-0.3
-0.33
-0.333
-0.3
-0.33
-0.333
-1
-2
-3.14
-1.12
-1.12
-1.122
-1.12
-1.122
-124
-125.2
-1255.49
-3.14
-3.14
-3.14
-1
-1234567890.123456789
-1234567890.12345678
+0.0000000000
+0.0000000000
+100.0000000000
+10.0000000000
+1.0000000000
+0.1000000000
+0.0100000000
+200.0000000000
+20.0000000000
+2.0000000000
+0.0000000000
+0.2000000000
+0.0200000000
+0.3000000000
+0.3300000000
+0.3330000000
+0.3000000000
+0.3300000000
+0.3330000000
+1.0000000000
+2.0000000000
+3.1400000000
+1.1200000000
+1.1200000000
+1.1220000000
+1.1200000000
+1.1220000000
+124.0000000000
+125.2000000000
+1255.4900000000
+3.1400000000
+3.1400000000
+3.1400000000
+1.0000000000
+1234567890.1234567890
+1234567890.1234567800
  PREHOOK: query: -- avg
  EXPLAIN SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DECIMAL_UDF GROUP BY value ORDER BY value
  PREHOOK: type: QUERY
@@ -1643,23 +1643,23 @@ POSTHOOK: query: SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DE
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--1234567890 -1234567890.123456789 -1234567890.123456789 -1234567890.123456789
--1255 -1255.49 -1255.49 -1255.49
--11 -1.122 -1.122 -1.122
--1 -1.12 -1.12 -2.24
-0 0.02538461538461538461538 0.02538461538462 0.33
-1 1.0484 1.0484 5.242
-2 2 2 4
-3 3.14 3.14 9.42
-4 3.14 3.14 3.14
-10 10 10 10
-20 20 20 20
-100 100 100 100
-124 124 124 124
-125 125.2 125.2 125.2
-200 200 200 200
-4400 -4400 -4400 -4400
-1234567890 1234567890.12345678 1234567890.12345678 1234567890.12345678
+-1234567890 -1234567890.12345678900000000000000 -1234567890.12345678900000 -1234567890.1234567890
+-1255 -1255.49000000000000000000000 -1255.49000000000000 -1255.4900000000
+-11 -1.12200000000000000000000 -1.12200000000000 -1.1220000000
+-1 -1.12000000000000000000000 -1.12000000000000 -2.2400000000
+0 0.02538461538461538461538 0.02538461538462 0.3300000000
+1 1.04840000000000000000000 1.04840000000000 5.2420000000
+2 2.00000000000000000000000 2.00000000000000 4.0000000000
+3 3.14000000000000000000000 3.14000000000000 9.4200000000
+4 3.14000000000000000000000 3.14000000000000 3.1400000000
+10 10.00000000000000000000000 10.00000000000000 10.0000000000
+20 20.00000000000000000000000 20.00000000000000 20.0000000000
+100 100.00000000000000000000000 100.00000000000000 100.0000000000
+124 124.00000000000000000000000 124.00000000000000 124.0000000000
+125 125.20000000000000000000000 125.20000000000000 125.2000000000
+200 200.00000000000000000000000 200.00000000000000 200.0000000000
+4400 -4400.00000000000000000000000 -4400.00000000000000 -4400.0000000000
+1234567890 1234567890.12345678000000000000000 1234567890.12345678000000 1234567890.1234567800
  PREHOOK: query: -- negative
  EXPLAIN SELECT -key FROM DECIMAL_UDF
  PREHOOK: type: QUERY
@@ -1704,44 +1704,44 @@ POSTHOOK: query: SELECT -key FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-4400
+4400.0000000000
  NULL
-0
-0
--100
--10
--1
--0.1
--0.01
--200
--20
--2
-0
--0.2
--0.02
--0.3
--0.33
--0.333
-0.3
-0.33
-0.333
--1
--2
--3.14
-1.12
-1.12
-1.122
--1.12
--1.122
--124
--125.2
-1255.49
--3.14
--3.14
--3.14
--1
-1234567890.123456789
--1234567890.12345678
+0.0000000000
+0.0000000000
+-100.0000000000
+-10.0000000000
+-1.0000000000
+-0.1000000000
+-0.0100000000
+-200.0000000000
+-20.0000000000
+-2.0000000000
+0.0000000000
+-0.2000000000
+-0.0200000000
+-0.3000000000
+-0.3300000000
+-0.3330000000
+0.3000000000
+0.3300000000
+0.3330000000
+-1.0000000000
+-2.0000000000
+-3.1400000000
+1.1200000000
+1.1200000000
+1.1220000000
+-1.1200000000
+-1.1220000000
+-124.0000000000
+-125.2000000000
+1255.4900000000
+-3.1400000000
+-3.1400000000
+-3.1400000000
+-1.0000000000
+1234567890.1234567890
+-1234567890.1234567800
  PREHOOK: query: -- positive
  EXPLAIN SELECT +key FROM DECIMAL_UDF
  PREHOOK: type: QUERY
@@ -1773,44 +1773,44 @@ POSTHOOK: query: SELECT +key FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--4400
+-4400.0000000000
  NULL
-0
-0
-100
-10
-1
-0.1
-0.01
-200
-20
-2
-0
-0.2
-0.02
-0.3
-0.33
-0.333
--0.3
--0.33
--0.333
-1
-2
-3.14
--1.12
--1.12
--1.122
-1.12
-1.122
-124
-125.2
--1255.49
-3.14
-3.14
-3.14
-1
--1234567890.123456789
-1234567890.12345678
+0.0000000000
+0.0000000000
+100.0000000000
+10.0000000000
+1.0000000000
+0.1000000000
+0.0100000000
+200.0000000000
+20.0000000000
+2.0000000000
+0.0000000000
+0.2000000000
+0.0200000000
+0.3000000000
+0.3300000000
+0.3330000000
+-0.3000000000
+-0.3300000000
+-0.3330000000
+1.0000000000
+2.0000000000
+3.1400000000
+-1.1200000000
+-1.1200000000
+-1.1220000000
+1.1200000000
+1.1220000000
+124.0000000000
+125.2000000000
+-1255.4900000000
+3.1400000000
+3.1400000000
+3.1400000000
+1.0000000000
+-1234567890.1234567890
+1234567890.1234567800
  PREHOOK: query: -- ceiling
  EXPlAIN SELECT CEIL(key) FROM DECIMAL_UDF
  PREHOOK: type: QUERY
@@ -2019,42 +2019,42 @@ POSTHOOK: query: SELECT ROUND(key, 2) FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--4400
+-4400.00
  NULL
-0
-0
-100
-10
-1
-0.1
+0.00
+0.00
+100.00
+10.00
+1.00
+0.10
  0.01
-200
-20
-2
-0
-0.2
+200.00
+20.00
+2.00
+0.00
+0.20
  0.02
-0.3
+0.30
  0.33
  0.33
--0.3
+-0.30
  -0.33
  -0.33
-1
-2
+1.00
+2.00
  3.14
  -1.12
  -1.12
  -1.12
  1.12
  1.12
-124
-125.2
+124.00
+125.20
  -1255.49
  3.14
  3.14
  3.14
-1
+1.00
  -1234567890.12
  1234567890.12
  PREHOOK: query: -- power
@@ -2182,44 +2182,44 @@ POSTHOOK: query: SELECT (key + 1) % (key / 2) FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--2199
+-2199.000000000000
  NULL
  NULL
  NULL
-1
-1
-0
-0
-0
-1
-1
-0
+1.000000000000
+1.000000000000
+0.000000000000
+0.000000000000
+0.000000000000
+1.000000000000
+1.000000000000
+0.000000000000
  NULL
-0
-0
-0.1
-0.01
-0.001
-0.1
-0.01
-0.001
-0
-0
-1
--0.12
--0.12
--0.122
-0.44
-0.439
-1
-1
--626.745
-1
-1
-1
-0
--617283944.0617283945
-1
+0.000000000000
+0.000000000000
+0.100000000000
+0.010000000000
+0.001000000000
+0.100000000000
+0.010000000000
+0.001000000000
+0.000000000000
+0.000000000000
+1.000000000000
+-0.120000000000
+-0.120000000000
+-0.122000000000
+0.440000000000
+0.439000000000
+1.000000000000
+1.000000000000
+-626.745000000000
+1.000000000000
+1.000000000000
+1.000000000000
+0.000000000000
+-617283944.061728394500
+1.000000000000
  PREHOOK: query: -- stddev, var
  EXPLAIN SELECT value, stddev(key), variance(key) FROM DECIMAL_UDF GROUP BY value
  PREHOOK: type: QUERY
@@ -2498,7 +2498,7 @@ POSTHOOK: query: SELECT MIN(key) FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
--1234567890.123456789
+-1234567890.1234567890
  PREHOOK: query: -- max
  EXPLAIN SELECT MAX(key) FROM DECIMAL_UDF
  PREHOOK: type: QUERY
@@ -2558,7 +2558,7 @@ POSTHOOK: query: SELECT MAX(key) FROM DECIMAL_UDF
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_udf
  #### A masked pattern was here ####
-1234567890.12345678
+1234567890.1234567800
  PREHOOK: query: -- count
  EXPLAIN SELECT COUNT(key) FROM DECIMAL_UDF
  PREHOOK: type: QUERY

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_reduce_groupby_decimal.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/vector_reduce_groupby_decimal.q.out b/ql/src/test/results/clientpositive/vector_reduce_groupby_decimal.q.out
index 77dc175..5352885 100644
--- a/ql/src/test/results/clientpositive/vector_reduce_groupby_decimal.q.out
+++ b/ql/src/test/results/clientpositive/vector_reduce_groupby_decimal.q.out
@@ -113,56 +113,56 @@ LIMIT 50
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@decimal_test
  #### A masked pattern was here ####
--1073051226 -7382.0 -4409.2486486486 -5280.969230769231 -4409.2486486486
--1072081801 8373.0 5001.1702702703 5989.915384615385 5001.1702702703
--1072076362 -5470.0 -3267.2162162162 -3913.1538461538466 -3267.2162162162
--1070883071 -741.0 -442.5972972973 -530.1 -442.5972972973
--1070551679 -947.0 -565.6405405405 -677.4692307692308 -565.6405405405
--1069512165 11417.0 6819.3432432432 8167.546153846154 6819.3432432432
--1069109166 8390.0 5011.3243243243 6002.076923076923 5011.3243243243
--1068623584 -14005.0 -8365.1486486486 -10018.961538461539 -8365.1486486486
--1067386090 -3977.0 -2375.4513513514 -2845.084615384616 -2375.4513513514
--1066922682 -9987.0 -5965.2081081081 -7144.546153846154 -5965.2081081081
--1066226047 -9439.0 -5637.8891891892 -6752.515384615385 -5637.8891891892
--1065117869 2538.0 1515.9405405405 1815.646153846154 1515.9405405405
--1064949302 6454.0 3854.9567567568 4617.092307692308 3854.9567567568
--1063498122 -11480.0 -6856.972972973 -8212.615384615387 -6856.972972973
--1062973443 10541.0 6296.1108108108 7540.869230769231 6296.1108108108
--1061614989 -4234.0 -2528.9567567568 -3028.938461538462 -2528.9567567568
--1061057428 -1085.0 -648.0675675676 -776.1923076923077 -648.0675675676
--1059941909 8782.0 5245.4648648649 6282.507692307693 5245.4648648649
--1059338191 7322.0 4373.4108108108 5238.046153846154 4373.4108108108
--1059047258 12452.0 7437.5459459459 8907.969230769231 7437.5459459459
--1056684111 13991.0 8356.7864864865 10008.946153846155 8356.7864864865
--1055945837 13690.0 8177 9793.615384615387 8177
--1055669248 2570.0 1535.0540540541 1838.538461538462 1535.0540540541
--1055316250 -14990.0 -8953.4864864865 -10723.615384615385 -8953.4864864865
--1053385587 14504.0 8663.2 10375.938461538462 8663.2
--1053238077 -3704.0 -2212.3891891892 -2649.784615384616 -2212.3891891892
--1052745800 -12404.0 -7408.8756756757 -8873.630769230771 -7408.8756756757
--1052322972 -7433.0 -4439.7108108108 -5317.453846153847 -4439.7108108108
--1050684541 -8261.0 -4934.272972973 -5909.792307692308 -4934.272972973
--1050657303 -6999.0 -4180.4837837838 -5006.976923076923 -4180.4837837838
--1050165799 8634.0 5157.0648648649 6176.63076923077 5157.0648648649
+-1073051226 -7382.0 -4409.2486486486 -5280.96923076923100 -4409.2486486486
+-1072081801 8373.0 5001.1702702703 5989.91538461538500 5001.1702702703
+-1072076362 -5470.0 -3267.2162162162 -3913.15384615384660 -3267.2162162162
+-1070883071 -741.0 -442.5972972973 -530.10000000000000 -442.5972972973
+-1070551679 -947.0 -565.6405405405 -677.46923076923080 -565.6405405405
+-1069512165 11417.0 6819.3432432432 8167.54615384615400 6819.3432432432
+-1069109166 8390.0 5011.3243243243 6002.07692307692300 5011.3243243243
+-1068623584 -14005.0 -8365.1486486486 -10018.96153846153900 -8365.1486486486
+-1067386090 -3977.0 -2375.4513513514 -2845.08461538461600 -2375.4513513514
+-1066922682 -9987.0 -5965.2081081081 -7144.54615384615400 -5965.2081081081
+-1066226047 -9439.0 -5637.8891891892 -6752.51538461538500 -5637.8891891892
+-1065117869 2538.0 1515.9405405405 1815.64615384615400 1515.9405405405
+-1064949302 6454.0 3854.9567567568 4617.09230769230800 3854.9567567568
+-1063498122 -11480.0 -6856.9729729730 -8212.61538461538700 -6856.9729729730
+-1062973443 10541.0 6296.1108108108 7540.86923076923100 6296.1108108108
+-1061614989 -4234.0 -2528.9567567568 -3028.93846153846200 -2528.9567567568
+-1061057428 -1085.0 -648.0675675676 -776.19230769230770 -648.0675675676
+-1059941909 8782.0 5245.4648648649 6282.50769230769300 5245.4648648649
+-1059338191 7322.0 4373.4108108108 5238.04615384615400 4373.4108108108
+-1059047258 12452.0 7437.5459459459 8907.96923076923100 7437.5459459459
+-1056684111 13991.0 8356.7864864865 10008.94615384615500 8356.7864864865
+-1055945837 13690.0 8177.0000000000 9793.61538461538700 8177.0000000000
+-1055669248 2570.0 1535.0540540541 1838.53846153846200 1535.0540540541
+-1055316250 -14990.0 -8953.4864864865 -10723.61538461538500 -8953.4864864865
+-1053385587 14504.0 8663.2000000000 10375.93846153846200 8663.2000000000
+-1053238077 -3704.0 -2212.3891891892 -2649.78461538461600 -2212.3891891892
+-1052745800 -12404.0 -7408.8756756757 -8873.63076923077100 -7408.8756756757
+-1052322972 -7433.0 -4439.7108108108 -5317.45384615384700 -4439.7108108108
+-1050684541 -8261.0 -4934.2729729730 -5909.79230769230800 -4934.2729729730
+-1050657303 -6999.0 -4180.4837837838 -5006.97692307692300 -4180.4837837838
+-1050165799 8634.0 5157.0648648649 6176.63076923077000 5157.0648648649
  -1048934049 -524.0 -312.9837837838 -374.86153846153854 -312.9837837838
--1046399794 4130.0 2466.8378378378 2954.5384615384614 2466.8378378378
--1045867222 -8034.0 -4798.6864864865 -5747.400000000001 -4798.6864864865
--1045196363 -5039.0 -3009.7810810811 -3604.823076923077 -3009.7810810811
--1045181724 -5706.0 -3408.1783783784 -4081.9846153846156 -3408.1783783784
--1045087657 -5865.0 -3503.1486486486 -4195.7307692307695 -3503.1486486486
--1044207190 5381.0 3214.0567567568 3849.4846153846156 3214.0567567568
--1044093617 -3422.0 -2043.9513513514 -2448.046153846154 -2043.9513513514
--1043573508 16216.0 9685.772972973 11600.676923076924 9685.772972973
--1043132597 12302.0 7347.9513513514 8800.66153846154 7347.9513513514
--1043082182 9180.0 5483.1891891892 6567.2307692307695 5483.1891891892
--1042805968 5133.0 3065.927027027 3672.0692307692307 3065.927027027
--1042712895 9296.0 5552.4756756757 6650.215384615385 5552.4756756757
--1042396242 9583.0 5723.9 6855.53076923077 5723.9
--1041734429 -836.0 -499.3405405405 -598.0615384615385 -499.3405405405
--1041391389 -12970.0 -7746.9459459459 -9278.538461538463 -7746.9459459459
--1041252354 756.0 451.5567567568 540.8307692307692 451.5567567568
--1039776293 13704.0 8185.3621621622 9803.630769230771 8185.3621621622
--1039762548 -3802.0 -2270.9243243243 -2719.8923076923083 -2270.9243243243
+-1046399794 4130.0 2466.8378378378 2954.53846153846140 2466.8378378378
+-1045867222 -8034.0 -4798.6864864865 -5747.40000000000100 -4798.6864864865
+-1045196363 -5039.0 -3009.7810810811 -3604.82307692307700 -3009.7810810811
+-1045181724 -5706.0 -3408.1783783784 -4081.98461538461560 -3408.1783783784
+-1045087657 -5865.0 -3503.1486486486 -4195.73076923076950 -3503.1486486486
+-1044207190 5381.0 3214.0567567568 3849.48461538461560 3214.0567567568
+-1044093617 -3422.0 -2043.9513513514 -2448.04615384615400 -2043.9513513514
+-1043573508 16216.0 9685.7729729730 11600.67692307692400 9685.7729729730
+-1043132597 12302.0 7347.9513513514 8800.66153846154000 7347.9513513514
+-1043082182 9180.0 5483.1891891892 6567.23076923076950 5483.1891891892
+-1042805968 5133.0 3065.9270270270 3672.06923076923070 3065.9270270270
+-1042712895 9296.0 5552.4756756757 6650.21538461538500 5552.4756756757
+-1042396242 9583.0 5723.9000000000 6855.53076923077000 5723.9000000000
+-1041734429 -836.0 -499.3405405405 -598.06153846153850 -499.3405405405
+-1041391389 -12970.0 -7746.9459459459 -9278.53846153846300 -7746.9459459459
+-1041252354 756.0 451.5567567568 540.83076923076920 451.5567567568
+-1039776293 13704.0 8185.3621621622 9803.63076923077100 8185.3621621622
+-1039762548 -3802.0 -2270.9243243243 -2719.89230769230830 -2270.9243243243
  PREHOOK: query: SELECT sum(hash(*))
    FROM (SELECT cint, cdouble, cdecimal1, cdecimal2, min(cdecimal1) as min_decimal1 FROM decimal_test
          WHERE cdecimal1 is not null and cdecimal2 is not null

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/windowing_decimal.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/windowing_decimal.q.out b/ql/src/test/results/clientpositive/windowing_decimal.q.out
index 60563ba..b157a23 100644
--- a/ql/src/test/results/clientpositive/windowing_decimal.q.out
+++ b/ql/src/test/results/clientpositive/windowing_decimal.q.out
@@ -57,32 +57,32 @@ from part_dec
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@part_dec
  #### A masked pattern was here ####
-Manufacturer#1 1173.15 1173.15 2346.3
-Manufacturer#1 1173.15 1173.15 2346.3
-Manufacturer#1 1414.42 1173.15 3760.72
-Manufacturer#1 1602.59 1173.15 5363.31
-Manufacturer#1 1632.66 1173.15 6995.97
-Manufacturer#1 1753.76 1173.15 8749.73
-Manufacturer#2 1690.68 1690.68 1690.68
-Manufacturer#2 1698.66 1690.68 3389.34
-Manufacturer#2 1701.6 1690.68 5090.94
-Manufacturer#2 1800.7 1690.68 6891.64
-Manufacturer#2 2031.98 1690.68 8923.62
-Manufacturer#3 1190.27 1190.27 1190.27
-Manufacturer#3 1337.29 1190.27 2527.56
-Manufacturer#3 1410.39 1190.27 3937.95
-Manufacturer#3 1671.68 1190.27 5609.63
-Manufacturer#3 1922.98 1190.27 7532.61
-Manufacturer#4 1206.26 1206.26 1206.26
-Manufacturer#4 1290.35 1206.26 2496.61
-Manufacturer#4 1375.42 1206.26 3872.03
-Manufacturer#4 1620.67 1206.26 5492.7
-Manufacturer#4 1844.92 1206.26 7337.62
-Manufacturer#5 1018.1 1018.1 1018.1
-Manufacturer#5 1464.48 1018.1 2482.58
-Manufacturer#5 1611.66 1018.1 4094.24
-Manufacturer#5 1788.73 1018.1 5882.97
-Manufacturer#5 1789.69 1018.1 7672.66
+Manufacturer#1 1173.150 1173.150 2346.300
+Manufacturer#1 1173.150 1173.150 2346.300
+Manufacturer#1 1414.420 1173.150 3760.720
+Manufacturer#1 1602.590 1173.150 5363.310
+Manufacturer#1 1632.660 1173.150 6995.970
+Manufacturer#1 1753.760 1173.150 8749.730
+Manufacturer#2 1690.680 1690.680 1690.680
+Manufacturer#2 1698.660 1690.680 3389.340
+Manufacturer#2 1701.600 1690.680 5090.940
+Manufacturer#2 1800.700 1690.680 6891.640
+Manufacturer#2 2031.980 1690.680 8923.620
+Manufacturer#3 1190.270 1190.270 1190.270
+Manufacturer#3 1337.290 1190.270 2527.560
+Manufacturer#3 1410.390 1190.270 3937.950
+Manufacturer#3 1671.680 1190.270 5609.630
+Manufacturer#3 1922.980 1190.270 7532.610
+Manufacturer#4 1206.260 1206.260 1206.260
+Manufacturer#4 1290.350 1206.260 2496.610
+Manufacturer#4 1375.420 1206.260 3872.030
+Manufacturer#4 1620.670 1206.260 5492.700
+Manufacturer#4 1844.920 1206.260 7337.620
+Manufacturer#5 1018.100 1018.100 1018.100
+Manufacturer#5 1464.480 1018.100 2482.580
+Manufacturer#5 1611.660 1018.100 4094.240
+Manufacturer#5 1788.730 1018.100 5882.970
+Manufacturer#5 1789.690 1018.100 7672.660
  PREHOOK: query: select p_mfgr, p_retailprice,
  first_value(p_retailprice) over(partition by p_mfgr order by p_retailprice range between 5 preceding and current row) ,
  sum(p_retailprice) over(partition by p_mfgr order by p_retailprice range between 5 preceding and current row)
@@ -97,29 +97,29 @@ from part_dec
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@part_dec
  #### A masked pattern was here ####
-Manufacturer#1 1173.15 1173.15 2346.3
-Manufacturer#1 1173.15 1173.15 2346.3
-Manufacturer#1 1414.42 1414.42 1414.42
-Manufacturer#1 1602.59 1602.59 1602.59
-Manufacturer#1 1632.66 1632.66 1632.66
-Manufacturer#1 1753.76 1753.76 1753.76
-Manufacturer#2 1690.68 1690.68 1690.68
-Manufacturer#2 1698.66 1698.66 1698.66
-Manufacturer#2 1701.6 1698.66 3400.26
-Manufacturer#2 1800.7 1800.7 1800.7
-Manufacturer#2 2031.98 2031.98 2031.98
-Manufacturer#3 1190.27 1190.27 1190.27
-Manufacturer#3 1337.29 1337.29 1337.29
-Manufacturer#3 1410.39 1410.39 1410.39
-Manufacturer#3 1671.68 1671.68 1671.68
-Manufacturer#3 1922.98 1922.98 1922.98
-Manufacturer#4 1206.26 1206.26 1206.26
-Manufacturer#4 1290.35 1290.35 1290.35
-Manufacturer#4 1375.42 1375.42 1375.42
-Manufacturer#4 1620.67 1620.67 1620.67
-Manufacturer#4 1844.92 1844.92 1844.92
-Manufacturer#5 1018.1 1018.1 1018.1
-Manufacturer#5 1464.48 1464.48 1464.48
-Manufacturer#5 1611.66 1611.66 1611.66
-Manufacturer#5 1788.73 1788.73 1788.73
-Manufacturer#5 1789.69 1788.73 3578.42
+Manufacturer#1 1173.150 1173.150 2346.300
+Manufacturer#1 1173.150 1173.150 2346.300
+Manufacturer#1 1414.420 1414.420 1414.420
+Manufacturer#1 1602.590 1602.590 1602.590
+Manufacturer#1 1632.660 1632.660 1632.660
+Manufacturer#1 1753.760 1753.760 1753.760
+Manufacturer#2 1690.680 1690.680 1690.680
+Manufacturer#2 1698.660 1698.660 1698.660
+Manufacturer#2 1701.600 1698.660 3400.260
+Manufacturer#2 1800.700 1800.700 1800.700
+Manufacturer#2 2031.980 2031.980 2031.980
+Manufacturer#3 1190.270 1190.270 1190.270
+Manufacturer#3 1337.290 1337.290 1337.290
+Manufacturer#3 1410.390 1410.390 1410.390
+Manufacturer#3 1671.680 1671.680 1671.680
+Manufacturer#3 1922.980 1922.980 1922.980
+Manufacturer#4 1206.260 1206.260 1206.260
+Manufacturer#4 1290.350 1290.350 1290.350
+Manufacturer#4 1375.420 1375.420 1375.420
+Manufacturer#4 1620.670 1620.670 1620.670
+Manufacturer#4 1844.920 1844.920 1844.920
+Manufacturer#5 1018.100 1018.100 1018.100
+Manufacturer#5 1464.480 1464.480 1464.480
+Manufacturer#5 1611.660 1611.660 1611.660
+Manufacturer#5 1788.730 1788.730 1788.730
+Manufacturer#5 1789.690 1788.730 3578.420

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/windowing_navfn.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/windowing_navfn.q.out b/ql/src/test/results/clientpositive/windowing_navfn.q.out
index ae7d95a..a79fccc 100644
--- a/ql/src/test/results/clientpositive/windowing_navfn.q.out
+++ b/ql/src/test/results/clientpositive/windowing_navfn.q.out
@@ -287,13 +287,13 @@ POSTHOOK: Input: default@over10k
  65536 98.42
  65536 0.93
  65536 83.48
-65536 75.7
+65536 75.70
  65536 88.04
  65536 94.09
  65536 33.45
  65536 44.41
  65536 22.15
-65536 20.5
+65536 20.50
  65536 58.86
  65536 30.91
  65536 74.47
@@ -310,9 +310,9 @@ POSTHOOK: Input: default@over10k
  65536 80.26
  65536 35.07
  65536 95.88
-65536 30.6
+65536 30.60
  65536 46.97
-65536 58.8
+65536 58.80
  65536 5.72
  65536 29.27
  65536 62.25
@@ -336,7 +336,7 @@ POSTHOOK: Input: default@over10k
  65537 35.86
  65537 47.75
  65537 1.12
-65537 52.9
+65537 52.90
  65537 53.92
  65537 43.45
  65537 7.52
@@ -350,20 +350,20 @@ POSTHOOK: Input: default@over10k
  65537 56.48
  65537 83.21
  65537 56.52
-65537 36.6
-65537 59.7
+65537 36.60
+65537 59.70
  65537 80.14
-65537 66.3
+65537 66.30
  65537 94.87
  65537 40.92
-65537 25.2
+65537 25.20
  65537 7.36
  65538 NULL
  65538 53.35
  65538 54.64
  65538 76.67
  65538 15.17
-65538 1.2
+65538 1.20
  65538 13.71
  65538 81.59
  65538 43.33

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/windowing_rank.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/windowing_rank.q.out b/ql/src/test/results/clientpositive/windowing_rank.q.out
index 6a74a8e..67975f3 100644
--- a/ql/src/test/results/clientpositive/windowing_rank.q.out
+++ b/ql/src/test/results/clientpositive/windowing_rank.q.out
@@ -508,16 +508,16 @@ where rnk = 1 limit 10
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@over10k
  #### A masked pattern was here ####
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
-2013-03-01 09:11:58.70307 0.5 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
+2013-03-01 09:11:58.70307 0.50 1
  PREHOOK: query: select ts, dec, rnk
  from
    (select ts, dec,
@@ -546,16 +546,16 @@ where dec = 89.5 limit 10
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@over10k
  #### A masked pattern was here ####
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
-2013-03-01 09:11:58.703124 89.5 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
+2013-03-01 09:11:58.703124 89.50 1
  PREHOOK: query: select ts, dec, rnk
  from
    (select ts, dec,
@@ -586,13 +586,13 @@ where rnk = 1 limit 10
  POSTHOOK: type: QUERY
  POSTHOOK: Input: default@over10k
  #### A masked pattern was here ####
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
-2013-03-01 09:11:58.70307 37.3 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1
+2013-03-01 09:11:58.70307 37.30 1

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/windowing_windowspec3.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/windowing_windowspec3.q.out b/ql/src/test/results/clientpositive/windowing_windowspec3.q.out
index aeb5adc..e311cf9 100644
--- a/ql/src/test/results/clientpositive/windowing_windowspec3.q.out
+++ b/ql/src/test/results/clientpositive/windowing_windowspec3.q.out
@@ -215,18 +215,18 @@ POSTHOOK: type: QUERY
  POSTHOOK: Input: default@emp
  #### A masked pattern was here ####
  10 7839 NULL 5000.0 5000.0 5000.0 NULL NULL 1687.5 5000.0
-10 7782 50 2450.0 2450.0 1687.5 NULL 1500.0 NULL 2350.0
-10 7934 100 1300.0 1875.0 1687.5 NULL NULL NULL 2350.0
-10 7987 150.5 1500.0 1750.0 1687.5 NULL NULL NULL 2350.0
-10 7988 200 1500.0 1687.5 1687.5 2450.0 NULL NULL 2350.0
+10 7782 50.00 2450.0 2450.0 1687.5 NULL 1500.0 NULL 2350.0
+10 7934 100.00 1300.0 1875.0 1687.5 NULL NULL NULL 2350.0
+10 7987 150.50 1500.0 1750.0 1687.5 NULL NULL NULL 2350.0
+10 7988 200.00 1500.0 1687.5 1687.5 2450.0 NULL NULL 2350.0
  20 7788 NULL 3000.0 1975.0 1975.0 NULL NULL 2975.0 1975.0
  20 7902 NULL 3000.0 1975.0 1975.0 NULL NULL 2975.0 1975.0
  20 7876 NULL 1100.0 1975.0 1975.0 NULL NULL 2975.0 1975.0
  20 7369 NULL 800.0 1975.0 1975.0 NULL NULL 2975.0 1975.0
-20 7566 100 2975.0 2975.0 2975.0 NULL NULL NULL 2175.0
+20 7566 100.00 2975.0 2975.0 2975.0 NULL NULL NULL 2175.0
  30 7900 NULL 950.0 1900.0 1900.0 NULL NULL 1400.0 1900.0
  30 7698 NULL 2850.0 1900.0 1900.0 NULL NULL 1400.0 1900.0
-30 7499 200.5 1600.0 1600.0 1450.0 NULL NULL 1250.0 1630.0
-30 7844 300 1500.0 1550.0 1400.0 NULL 1250.0 NULL 1566.6666666666667
-30 7521 300.5 1250.0 1450.0 1400.0 NULL 1250.0 NULL 1566.6666666666667
-30 7654 500 1250.0 1333.3333333333333 1333.3333333333333 1375.0 NULL NULL 1566.6666666666667
+30 7499 200.50 1600.0 1600.0 1450.0 NULL NULL 1250.0 1630.0
+30 7844 300.00 1500.0 1550.0 1400.0 NULL 1250.0 NULL 1566.6666666666667
+30 7521 300.50 1250.0 1450.0 1400.0 NULL 1250.0 NULL 1566.6666666666667
+30 7654 500.00 1250.0 1333.3333333333333 1333.3333333333333 1375.0 NULL NULL 1566.6666666666667

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/fast/BinarySortableSerializeWrite.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/fast/BinarySortableSerializeWrite.java b/serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/fast/BinarySortableSerializeWrite.java
index 709e53f..9ea6e91 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/fast/BinarySortableSerializeWrite.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/binarysortable/fast/BinarySortableSerializeWrite.java
@@ -366,7 +366,7 @@ public final class BinarySortableSerializeWrite implements SerializeWrite {
     * DECIMAL.
     */
    @Override
- public void writeHiveDecimal(HiveDecimal dec) throws IOException {
+ public void writeHiveDecimal(HiveDecimal dec, int scale) throws IOException {
      final boolean invert = columnSortOrderIsDesc[++index];

      // This field is not a null.

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/fast/SerializeWrite.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/fast/SerializeWrite.java b/serde/src/java/org/apache/hadoop/hive/serde2/fast/SerializeWrite.java
index e6fb8b6..21daa8b 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/fast/SerializeWrite.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/fast/SerializeWrite.java
@@ -151,5 +151,5 @@ public interface SerializeWrite {
    /*
     * DECIMAL.
     */
- void writeHiveDecimal(HiveDecimal dec) throws IOException;
+ void writeHiveDecimal(HiveDecimal dec, int scale) throws IOException;
  }

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java
index 40601c0..4e82e9b 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyHiveDecimal.java
@@ -102,12 +102,12 @@ public class LazyHiveDecimal extends LazyPrimitive<LazyHiveDecimalObjectInspecto
     * @param hiveDecimal
     * @throws IOException
     */
- public static void writeUTF8(OutputStream outputStream, HiveDecimal hiveDecimal)
+ public static void writeUTF8(OutputStream outputStream, HiveDecimal hiveDecimal, int scale)
      throws IOException {
      if (hiveDecimal == null) {
        outputStream.write(nullBytes);
      } else {
- ByteBuffer b = Text.encode(hiveDecimal.toString());
+ ByteBuffer b = Text.encode(hiveDecimal.toFormatString(scale));
        outputStream.write(b.array(), 0, b.limit());
      }
    }

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java
index d6b2219..29d6ad8 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/LazyUtils.java
@@ -304,8 +304,9 @@ public final class LazyUtils {
        break;
      }
      case DECIMAL: {
+ HiveDecimalObjectInspector decimalOI = (HiveDecimalObjectInspector) oi;
        LazyHiveDecimal.writeUTF8(out,
- ((HiveDecimalObjectInspector) oi).getPrimitiveJavaObject(o));
+ decimalOI.getPrimitiveJavaObject(o), decimalOI.scale());
        break;
      }
      default: {

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
index 986d246..b64a803 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazy/fast/LazySimpleSerializeWrite.java
@@ -20,7 +20,6 @@ package org.apache.hadoop.hive.serde2.lazy.fast;

  import java.io.IOException;
  import java.nio.ByteBuffer;
-import java.nio.charset.CharacterCodingException;
  import java.sql.Date;
  import java.sql.Timestamp;

@@ -34,7 +33,6 @@ import org.apache.hadoop.hive.common.type.HiveIntervalYearMonth;
  import org.apache.hadoop.hive.common.type.HiveVarchar;
  import org.apache.hadoop.hive.serde2.ByteStream.Output;
  import org.apache.hadoop.hive.serde2.io.DateWritable;
-import org.apache.hadoop.hive.serde2.io.HiveDecimalWritable;
  import org.apache.hadoop.hive.serde2.io.HiveIntervalDayTimeWritable;
  import org.apache.hadoop.hive.serde2.io.HiveIntervalYearMonthWritable;
  import org.apache.hadoop.hive.serde2.io.TimestampWritable;
@@ -47,13 +45,6 @@ import org.apache.hadoop.hive.serde2.lazy.LazyLong;
  import org.apache.hadoop.hive.serde2.lazy.LazySerDeParameters;
  import org.apache.hadoop.hive.serde2.lazy.LazyTimestamp;
  import org.apache.hadoop.hive.serde2.lazy.LazyUtils;
-import org.apache.hadoop.hive.serde2.lazy.objectinspector.primitive.LazyObjectInspectorParameters;
-import org.apache.hadoop.hive.serde2.lazybinary.LazyBinaryUtils;
-import org.apache.hadoop.hive.serde2.objectinspector.primitive.ByteObjectInspector;
-import org.apache.hadoop.hive.serde2.objectinspector.primitive.DateObjectInspector;
-import org.apache.hadoop.hive.serde2.objectinspector.primitive.HiveDecimalObjectInspector;
-import org.apache.hadoop.hive.serde2.objectinspector.primitive.LongObjectInspector;
-import org.apache.hadoop.hive.serde2.objectinspector.primitive.TimestampObjectInspector;
  import org.apache.hadoop.hive.serde2.fast.SerializeWrite;
  import org.apache.hadoop.io.Text;
  import org.apache.hive.common.util.DateUtils;
@@ -506,13 +497,12 @@ public final class LazySimpleSerializeWrite implements SerializeWrite {
     * DECIMAL.
     */
    @Override
- public void writeHiveDecimal(HiveDecimal v) throws IOException {
-
+ public void writeHiveDecimal(HiveDecimal v, int scale) throws IOException {
      if (index > 0) {
        output.write(separator);
      }

- LazyHiveDecimal.writeUTF8(output, v);
+ LazyHiveDecimal.writeUTF8(output, v, scale);

      index++;
    }

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/fast/LazyBinarySerializeWrite.java
----------------------------------------------------------------------
diff --git a/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/fast/LazyBinarySerializeWrite.java b/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/fast/LazyBinarySerializeWrite.java
index ebe4181..8f81df6 100644
--- a/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/fast/LazyBinarySerializeWrite.java
+++ b/serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/fast/LazyBinarySerializeWrite.java
@@ -713,7 +713,7 @@ public class LazyBinarySerializeWrite implements SerializeWrite {
     * DECIMAL.
     */
    @Override
- public void writeHiveDecimal(HiveDecimal v) throws IOException {
+ public void writeHiveDecimal(HiveDecimal v, int scale) throws IOException {

      // Every 8 fields we write a NULL byte.
      if ((fieldIndex % 8) == 0) {

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/test/org/apache/hadoop/hive/serde2/VerifyFast.java
----------------------------------------------------------------------
diff --git a/serde/src/test/org/apache/hadoop/hive/serde2/VerifyFast.java b/serde/src/test/org/apache/hadoop/hive/serde2/VerifyFast.java
index fa46c9e..fc845a5 100644
--- a/serde/src/test/org/apache/hadoop/hive/serde2/VerifyFast.java
+++ b/serde/src/test/org/apache/hadoop/hive/serde2/VerifyFast.java
@@ -259,12 +259,12 @@ public class VerifyFast {
      }
    }

- public static void serializeWrite(SerializeWrite serializeWrite, PrimitiveCategory primitiveCategory, Object object) throws IOException {
+ public static void serializeWrite(SerializeWrite serializeWrite, PrimitiveTypeInfo primitiveTypeInfo, Object object) throws IOException {
      if (object == null) {
        serializeWrite.writeNull();
        return;
      }
- switch (primitiveCategory) {
+ switch (primitiveTypeInfo.getPrimitiveCategory()) {
        case BOOLEAN:
        {
          boolean value = (Boolean) object;
@@ -330,7 +330,8 @@ public class VerifyFast {
      case DECIMAL:
        {
          HiveDecimal value = (HiveDecimal) object;
- serializeWrite.writeHiveDecimal(value);
+ DecimalTypeInfo decTypeInfo = (DecimalTypeInfo)primitiveTypeInfo;
+ serializeWrite.writeHiveDecimal(value, decTypeInfo.scale());
        }
        break;
      case DATE:
@@ -365,7 +366,7 @@ public class VerifyFast {
        }
        break;
      default:
- throw new Error("Unknown primitive category " + primitiveCategory.name());
+ throw new Error("Unknown primitive category " + primitiveTypeInfo.getPrimitiveCategory().name());
      }
    }
  }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableFast.java
----------------------------------------------------------------------
diff --git a/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableFast.java b/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableFast.java
index 4438bdc..ae476ae 100644
--- a/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableFast.java
+++ b/serde/src/test/org/apache/hadoop/hive/serde2/binarysortable/TestBinarySortableFast.java
@@ -62,8 +62,7 @@ public class TestBinarySortableFast extends TestCase {
        int[] perFieldWriteLengths = new int[MyTestPrimitiveClass.primitiveCount];
        for (int index = 0; index < MyTestPrimitiveClass.primitiveCount; index++) {
          Object object = t.getPrimitiveObject(index);
- PrimitiveCategory primitiveCategory = t.getPrimitiveCategory(index);
- VerifyFast.serializeWrite(binarySortableSerializeWrite, primitiveCategory, object);
+ VerifyFast.serializeWrite(binarySortableSerializeWrite, primitiveTypeInfoMap.get(t)[index], object);
          perFieldWriteLengths[index] = output.getLength();
        }
        perFieldWriteLengthsArray[i] = perFieldWriteLengths;

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazySimpleFast.java
----------------------------------------------------------------------
diff --git a/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazySimpleFast.java b/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazySimpleFast.java
index 951d91a..7ebe7ae 100644
--- a/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazySimpleFast.java
+++ b/serde/src/test/org/apache/hadoop/hive/serde2/lazy/TestLazySimpleFast.java
@@ -61,8 +61,7 @@ public class TestLazySimpleFast extends TestCase {

        for (int index = 0; index < MyTestPrimitiveClass.primitiveCount; index++) {
          Object object = t.getPrimitiveObject(index);
- PrimitiveCategory primitiveCategory = t.getPrimitiveCategory(index);
- VerifyFast.serializeWrite(lazySimpleSerializeWrite, primitiveCategory, object);
+ VerifyFast.serializeWrite(lazySimpleSerializeWrite, primitiveTypeInfosArray[i][index], object);
        }

        BytesWritable bytesWritable = new BytesWritable();

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinaryFast.java
----------------------------------------------------------------------
diff --git a/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinaryFast.java b/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinaryFast.java
index a169586..4032743 100644
--- a/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinaryFast.java
+++ b/serde/src/test/org/apache/hadoop/hive/serde2/lazybinary/TestLazyBinaryFast.java
@@ -60,8 +60,7 @@ public class TestLazyBinaryFast extends TestCase {

        for (int index = 0; index < MyTestPrimitiveClass.primitiveCount; index++) {
          Object object = t.getPrimitiveObject(index);
- PrimitiveCategory primitiveCategory = t.getPrimitiveCategory(index);
- VerifyFast.serializeWrite(lazyBinarySerializeWrite, primitiveCategory, object);
+ VerifyFast.serializeWrite(lazyBinarySerializeWrite, primitiveTypeInfosArray[i][index], object);
        }

        BytesWritable bytesWritable = new BytesWritable();

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java
----------------------------------------------------------------------
diff --git a/storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java b/storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java
index 4ed17a2..1c6be91 100644
--- a/storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java
+++ b/storage-api/src/java/org/apache/hadoop/hive/common/type/HiveDecimal.java
@@ -102,6 +102,17 @@ public class HiveDecimal implements Comparable<HiveDecimal> {
    public String toString() {
       return bd.toPlainString();
    }
+
+ /**
+ * Return a string representation of the number with the number of decimal digits as
+ * the given scale. Please note that this is different from toString().
+ * @param scale the number of digits after the decimal point
+ * @return the string representation of exact number of decimal digits
+ */
+ public String toFormatString(int scale) {
+ return (bd.scale() == scale ? bd :
+ bd.setScale(scale, RoundingMode.HALF_UP)).toPlainString();
+ }

    public HiveDecimal setScale(int i) {
      return new HiveDecimal(bd.setScale(i, RoundingMode.HALF_UP));

http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/DecimalColumnVector.java
----------------------------------------------------------------------
diff --git a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/DecimalColumnVector.java b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/DecimalColumnVector.java
index a7d31fa..fe8ad85 100644
--- a/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/DecimalColumnVector.java
+++ b/storage-api/src/java/org/apache/hadoop/hive/ql/exec/vector/DecimalColumnVector.java
@@ -17,10 +17,8 @@
   */

  package org.apache.hadoop.hive.ql.exec.vector;
-import java.io.IOException;
  import java.math.BigInteger;

-
  import org.apache.hadoop.hive.serde2.io.HiveDecimalWritable;
  import org.apache.hadoop.hive.common.type.HiveDecimal;

Search Discussions

  • Xuefu at Nov 4, 2015 at 3:41 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out b/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
    index 04eaaa1..bcf5944 100644
    --- a/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
    +++ b/ql/src/test/results/clientpositive/spark/vector_decimal_aggregate.q.out
    @@ -117,14 +117,14 @@ POSTHOOK: query: SELECT cint,
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_vgby
      #### A masked pattern was here ####
    --3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 6 6984454.211097692 -4033.445769230769 6967702.8672438458471
    --563 2 -515.621072973 -3367.6517567568 -3883.2728297298 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459
    -253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089
    -528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003
    -626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.746153846154 -11712.276923076923 12625.04759999997746
    -6981 3 5831542.269248378 -515.621072973 5830511.027102432 3 6984454.211097692 -617.5607769230769 6983219.0895438458462
    -762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2 6984454.211097692 1833.9456923076925 6986288.1567899996925
    -NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536
    +-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710
    +-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590
    +253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089
    +528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003
    +626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746
    +6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620
    +762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250
    +NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360
      PREHOOK: query: -- Now add the others...
      EXPLAIN SELECT cint,
          COUNT(cdecimal1), MAX(cdecimal1), MIN(cdecimal1), SUM(cdecimal1), AVG(cdecimal1), STDDEV_POP(cdecimal1), STDDEV_SAMP(cdecimal1),
    @@ -221,11 +221,11 @@ POSTHOOK: query: SELECT cint,
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_vgby
      #### A masked pattern was here ####
    --3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.211097692 -4033.445769230769 6967702.8672438458471 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
    --563 2 -515.621072973 -3367.6517567568 -3883.2728297298 -1941.6364148649 1426.0153418918999 2016.6902366556308 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459 -2325.50327307692295 1707.9424961538462 2415.395441814127
    -253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
    -528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
    -626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.746153846154 -11712.276923076923 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
    -6981 3 5831542.269248378 -515.621072973 5830511.027102432 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.211097692 -617.5607769230769 6983219.0895438458462 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
    -762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2916536.7443268917 2915005.5249214866 4122440.3477364695 2 6984454.211097692 1833.9456923076925 6986288.1567899996925 3493144.07839499984625 3491310.1327026924 4937458.140118758
    -NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536 1956.576923076922966667 6821.495748565159 6822.606289190924
    +-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
    +-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 -1941.63641486490000 1426.0153418918999 2016.6902366556308 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590 -2325.503273076922950000 1707.9424961538462 2415.395441814127
    +253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
    +528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
    +626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
    +6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
    +762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2916536.74432689170000 2915005.5249214866 4122440.3477364695 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250 3493144.078394999846250000 3491310.1327026924 4937458.140118758
    +NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360 1956.576923076922966667 6821.495748565159 6822.606289190924

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/vector_decimal_mapjoin.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/vector_decimal_mapjoin.q.out b/ql/src/test/results/clientpositive/spark/vector_decimal_mapjoin.q.out
    index e9fc3f8..d138102 100644
    --- a/ql/src/test/results/clientpositive/spark/vector_decimal_mapjoin.q.out
    +++ b/ql/src/test/results/clientpositive/spark/vector_decimal_mapjoin.q.out
    @@ -161,109 +161,109 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/sum_expr_with_order.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/sum_expr_with_order.q.out b/ql/src/test/results/clientpositive/sum_expr_with_order.q.out
    index 00318e8..5e00930 100644
    --- a/ql/src/test/results/clientpositive/sum_expr_with_order.q.out
    +++ b/ql/src/test/results/clientpositive/sum_expr_with_order.q.out
    @@ -12,4 +12,4 @@ order by c1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@src
      #### A masked pattern was here ####
    -13009100
    +13009100.000

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/hybridgrace_hashjoin_1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/hybridgrace_hashjoin_1.q.out b/ql/src/test/results/clientpositive/tez/hybridgrace_hashjoin_1.q.out
    index 4b39b2c..69fab90 100644
    --- a/ql/src/test/results/clientpositive/tez/hybridgrace_hashjoin_1.q.out
    +++ b/ql/src/test/results/clientpositive/tez/hybridgrace_hashjoin_1.q.out
    @@ -1290,105 +1290,105 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_mapjoin
      #### A masked pattern was here ####
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 6984454.211097692
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 6984454.21109769200000
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
      PREHOOK: query: EXPLAIN SELECT l.cint, r.cint, l.cdecimal1, r.cdecimal2
        FROM decimal_mapjoin l
        JOIN decimal_mapjoin r ON l.cint = r.cint
    @@ -1478,105 +1478,105 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_mapjoin
      #### A masked pattern was here ####
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 6984454.211097692
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 6984454.21109769200000
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
      PREHOOK: query: DROP TABLE decimal_mapjoin
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_mapjoin

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/mapjoin_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/mapjoin_decimal.q.out b/ql/src/test/results/clientpositive/tez/mapjoin_decimal.q.out
    index 7ca537d..4b15062 100644
    --- a/ql/src/test/results/clientpositive/tez/mapjoin_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/tez/mapjoin_decimal.q.out
    @@ -166,112 +166,112 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
      PREHOOK: query: select t1.dec, t2.dec from t1 join t2 on (t1.dec=t2.dec) order by t1.dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@t1
    @@ -282,109 +282,109 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/update_all_types.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/update_all_types.q.out b/ql/src/test/results/clientpositive/tez/update_all_types.q.out
    index 1cfa088..c5c1abb 100644
    --- a/ql/src/test/results/clientpositive/tez/update_all_types.q.out
    +++ b/ql/src/test/results/clientpositive/tez/update_all_types.q.out
    @@ -96,11 +96,11 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --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
    +-51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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
    @@ -150,12 +150,12 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +-51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA 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
    -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
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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
    @@ -184,12 +184,12 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --102 -51 -1071480828 -1071480828 -1401575336 -51.0 -51.0 -51 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +-102 -51 -1071480828 -1071480828 -1401575336 -51.0 -51.0 -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA 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
    -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
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_aggregate_9.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_aggregate_9.q.out b/ql/src/test/results/clientpositive/tez/vector_aggregate_9.q.out
    index d6a8517..0be71b1 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_aggregate_9.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_aggregate_9.q.out
    @@ -170,4 +170,4 @@ select min(dc), max(dc), sum(dc), avg(dc) from vectortab2korc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@vectortab2korc
      #### A masked pattern was here ####
    --4997414117561.546875 4994550248722.298828 -10252745435816.02441 -5399023399.587163986308583465
    +-4997414117561.546875000000000000 4994550248722.298828000000000000 -10252745435816.024410000000000000 -5399023399.587163986308583465

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_between_in.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_between_in.q.out b/ql/src/test/results/clientpositive/tez/vector_between_in.q.out
    index 1d720c0..11c3d71 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_between_in.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_between_in.q.out
    @@ -650,34 +650,34 @@ POSTHOOK: Input: default@decimal_date_test
      -18.5162162162
      -17.3216216216
      -16.7243243243
    --16.127027027
    +-16.1270270270
      -15.5297297297
      -10.7513513514
      -9.5567567568
      -8.3621621622
    --5.972972973
    +-5.9729729730
      -3.5837837838
      4.1810810811
      4.7783783784
      4.7783783784
      5.3756756757
    -5.972972973
    -5.972972973
    +5.9729729730
    +5.9729729730
      11.3486486486
      11.3486486486
      11.9459459459
      14.9324324324
      19.1135135135
      20.3081081081
    -22.1
    +22.1000000000
      24.4891891892
      33.4486486486
      34.6432432432
      40.0189189189
      42.4081081081
      43.0054054054
    -44.2
    -44.2
    +44.2000000000
    +44.2000000000
      44.7972972973
      45.9918918919
      PREHOOK: query: SELECT COUNT(*) FROM decimal_date_test WHERE cdecimal1 NOT BETWEEN -2000 AND 4390.1351351351

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_cast_constant.q.java1.7.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_cast_constant.q.java1.7.out b/ql/src/test/results/clientpositive/tez/vector_cast_constant.q.java1.7.out
    index 331edd0..12920d2 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_cast_constant.q.java1.7.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_cast_constant.q.java1.7.out
    @@ -204,13 +204,13 @@ POSTHOOK: query: SELECT
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
    -65536 50.0 50.0 50
    -65537 50.0 50.0 50
    -65538 50.0 50.0 50
    -65539 50.0 50.0 50
    -65540 50.0 50.0 50
    -65541 50.0 50.0 50
    -65542 50.0 50.0 50
    -65543 50.0 50.0 50
    -65544 50.0 50.0 50
    -65545 50.0 50.0 50
    +65536 50.0 50.0 50.0000
    +65537 50.0 50.0 50.0000
    +65538 50.0 50.0 50.0000
    +65539 50.0 50.0 50.0000
    +65540 50.0 50.0 50.0000
    +65541 50.0 50.0 50.0000
    +65542 50.0 50.0 50.0000
    +65543 50.0 50.0 50.0000
    +65544 50.0 50.0 50.0000
    +65545 50.0 50.0 50.0000

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_data_types.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_data_types.q.out b/ql/src/test/results/clientpositive/tez/vector_data_types.q.out
    index 9474c2c..8a21697 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_data_types.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_data_types.q.out
    @@ -159,7 +159,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education
    @@ -252,7 +252,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
    index fc37e0d..3de006c 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_2.q.out
    @@ -1184,7 +1184,7 @@ POSTHOOK: query: select cast(cast('2012-12-19 11:12:19.1234567' as timestamp) as
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_2
      #### A masked pattern was here ####
    -1355944339.1234567
    +1355944339.12345670
      PREHOOK: query: explain
      select cast(true as decimal) as c from decimal_2 order by c
      PREHOOK: type: QUERY
    @@ -1588,7 +1588,7 @@ POSTHOOK: query: select cast(0.99999999999999999999 as decimal(20,19)) as c from
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_2
      #### A masked pattern was here ####
    -1
    +1.0000000000000000000
      PREHOOK: query: explain
      select cast('0.99999999999999999999' as decimal(20,20)) as c from decimal_2 order by c
      PREHOOK: type: QUERY

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_3.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_3.q.out
    index 75f872e..eea91bb 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_3.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_3.q.out
    @@ -47,43 +47,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -92,43 +92,43 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -1234567890.12345678 1234567890
    -200 200
    -125.2 125
    -124 124
    -100 100
    -20 20
    -10 10
    -3.14 4
    -3.14 3
    -3.14 3
    -3.14 3
    -2 2
    -2 2
    -1.122 1
    -1.12 1
    -1 1
    -1 1
    -1 1
    -0.333 0
    -0.33 0
    -0.3 0
    -0.2 0
    -0.1 0
    -0.02 0
    -0.01 0
    -0 0
    -0 0
    -0 0
    --0.3 0
    --0.33 0
    --0.333 0
    --1.12 -1
    --1.12 -1
    --1.122 -11
    --1255.49 -1255
    --4400 4400
    --1234567890.123456789 -1234567890
    +1234567890.123456780000000000 1234567890
    +200.000000000000000000 200
    +125.200000000000000000 125
    +124.000000000000000000 124
    +100.000000000000000000 100
    +20.000000000000000000 20
    +10.000000000000000000 10
    +3.140000000000000000 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +2.000000000000000000 2
    +2.000000000000000000 2
    +1.122000000000000000 1
    +1.120000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +0.333000000000000000 0
    +0.330000000000000000 0
    +0.300000000000000000 0
    +0.200000000000000000 0
    +0.100000000000000000 0
    +0.020000000000000000 0
    +0.010000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +-0.300000000000000000 0
    +-0.330000000000000000 0
    +-0.333000000000000000 0
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-1.122000000000000000 -11
    +-1255.490000000000000000 -1255
    +-4400.000000000000000000 4400
    +-1234567890.123456789000000000 -1234567890
      NULL 0
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key, value
      PREHOOK: type: QUERY
    @@ -139,43 +139,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_3 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -185,34 +185,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL
    --1234567890.123456789
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    -1234567890.12345678
    +-1234567890.123456789000000000
    +-4400.000000000000000000
    +-1255.490000000000000000
    +-1.122000000000000000
    +-1.120000000000000000
    +-0.333000000000000000
    +-0.330000000000000000
    +-0.300000000000000000
    +0.000000000000000000
    +0.010000000000000000
    +0.020000000000000000
    +0.100000000000000000
    +0.200000000000000000
    +0.300000000000000000
    +0.330000000000000000
    +0.333000000000000000
    +1.000000000000000000
    +1.120000000000000000
    +1.122000000000000000
    +2.000000000000000000
    +3.140000000000000000
    +10.000000000000000000
    +20.000000000000000000
    +100.000000000000000000
    +124.000000000000000000
    +125.200000000000000000
    +200.000000000000000000
    +1234567890.123456780000000000
      PREHOOK: query: SELECT key, sum(value) FROM DECIMAL_3 GROUP BY key ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -222,34 +222,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -2
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 3
    -1.12 1
    -1.122 1
    -2 4
    -3.14 13
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -2
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 3
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 4
    +3.140000000000000000 13
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -258,23 +258,23 @@ POSTHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY v
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890 -1234567890.123456789
    --1255 -1255.49
    --11 -1.122
    --1 -2.24
    -0 0.33
    -1 5.242
    -2 4
    -3 9.42
    -4 3.14
    -10 10
    -20 20
    -100 100
    -124 124
    -125 125.2
    -200 200
    -4400 -4400
    -1234567890 1234567890.12345678
    +-1234567890 -1234567890.123456789000000000
    +-1255 -1255.490000000000000000
    +-11 -1.122000000000000000
    +-1 -2.240000000000000000
    +0 0.330000000000000000
    +1 5.242000000000000000
    +2 4.000000000000000000
    +3 9.420000000000000000
    +4 3.140000000000000000
    +10 10.000000000000000000
    +20 20.000000000000000000
    +100 100.000000000000000000
    +124 124.000000000000000000
    +125 125.200000000000000000
    +200 200.000000000000000000
    +4400 -4400.000000000000000000
    +1234567890 1234567890.123456780000000000
      PREHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) ORDER BY a.key, a.value, b.value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -283,71 +283,71 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) O
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890.123456789 -1234567890 -1234567890.123456789 -1234567890
    --4400 4400 -4400 4400
    --1255.49 -1255 -1255.49 -1255
    --1.122 -11 -1.122 -11
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --0.333 0 -0.333 0
    --0.33 0 -0.33 0
    --0.3 0 -0.3 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0.01 0 0.01 0
    -0.02 0 0.02 0
    -0.1 0 0.1 0
    -0.2 0 0.2 0
    -0.3 0 0.3 0
    -0.33 0 0.33 0
    -0.333 0 0.333 0
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1.12 1 1.12 1
    -1.122 1 1.122 1
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 4
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125.2 125 125.2 125
    -200 200 200 200
    -1234567890.12345678 1234567890 1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890 -1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400 -4400.000000000000000000 4400
    +-1255.490000000000000000 -1255 -1255.490000000000000000 -1255
    +-1.122000000000000000 -11 -1.122000000000000000 -11
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-0.333000000000000000 0 -0.333000000000000000 0
    +-0.330000000000000000 0 -0.330000000000000000 0
    +-0.300000000000000000 0 -0.300000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.010000000000000000 0 0.010000000000000000 0
    +0.020000000000000000 0 0.020000000000000000 0
    +0.100000000000000000 0 0.100000000000000000 0
    +0.200000000000000000 0 0.200000000000000000 0
    +0.300000000000000000 0 0.300000000000000000 0
    +0.330000000000000000 0 0.330000000000000000 0
    +0.333000000000000000 0 0.333000000000000000 0
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.120000000000000000 1 1.120000000000000000 1
    +1.122000000000000000 1 1.122000000000000000 1
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 4
    +10.000000000000000000 10 10.000000000000000000 10
    +20.000000000000000000 20 20.000000000000000000 20
    +100.000000000000000000 100 100.000000000000000000 100
    +124.000000000000000000 124 124.000000000000000000 124
    +125.200000000000000000 125 125.200000000000000000 125
    +200.000000000000000000 200 200.000000000000000000 200
    +1234567890.123456780000000000 1234567890 1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -356,10 +356,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -368,10 +368,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: DROP TABLE DECIMAL_3_txt
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_3_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_4.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_4.q.out
    index 613f5a8..c7d3d9e 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_4.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_4.q.out
    @@ -57,43 +57,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_1
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    +-1234567890.1234567890000000000000000 -1234567890
    +-4400.0000000000000000000000000 4400
    +-1255.4900000000000000000000000 -1255
    +-1.1220000000000000000000000 -11
    +-1.1200000000000000000000000 -1
    +-1.1200000000000000000000000 -1
    +-0.3330000000000000000000000 0
    +-0.3300000000000000000000000 0
    +-0.3000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0100000000000000000000000 0
    +0.0200000000000000000000000 0
    +0.1000000000000000000000000 0
    +0.2000000000000000000000000 0
    +0.3000000000000000000000000 0
    +0.3300000000000000000000000 0
    +0.3330000000000000000000000 0
      0.9999999999999999999999999 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +1.0000000000000000000000000 1
    +1.0000000000000000000000000 1
    +1.1200000000000000000000000 1
    +1.1220000000000000000000000 1
    +2.0000000000000000000000000 2
    +2.0000000000000000000000000 2
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 4
    +10.0000000000000000000000000 10
    +20.0000000000000000000000000 20
    +100.0000000000000000000000000 100
    +124.0000000000000000000000000 124
    +125.2000000000000000000000000 125
    +200.0000000000000000000000000 200
    +1234567890.1234567800000000000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -103,43 +103,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -149,43 +149,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -195,43 +195,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: DROP TABLE DECIMAL_4_1
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_4_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_5.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_5.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_5.q.out
    index 34c3351..0bfd12e 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_5.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_5.q.out
    @@ -59,41 +59,41 @@ POSTHOOK: Input: default@decimal_5
      NULL
      NULL
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1
    -1
    -1.12
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_5 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -103,32 +103,32 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT cast(key as decimal) FROM DECIMAL_5
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -185,40 +185,40 @@ POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    +0.000
    +0.000
    +100.000
    +10.000
    +1.000
    +0.100
    +0.010
    +200.000
    +20.000
    +2.000
    +0.000
    +0.200
    +0.020
    +0.300
    +0.330
      0.333
    --0.3
    --0.33
    +-0.300
    +-0.330
      -0.333
    -1
    -2
    -3.14
    --1.12
    --1.12
    +1.000
    +2.000
    +3.140
    +-1.120
    +-1.120
      -1.122
    -1.12
    +1.120
      1.122
    -124
    -125.2
    +124.000
    +125.200
      NULL
    -3.14
    -3.14
    -3.14
    -1
    +3.140
    +3.140
    +3.140
    +1.000
      NULL
      NULL
      PREHOOK: query: DROP TABLE DECIMAL_5_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_6.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_6.q.out
    index 9cdd7fc..e0ccbc6 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_6.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_6.q.out
    @@ -119,27 +119,27 @@ NULL 0
      NULL 3
      NULL 4
      NULL 1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --0.333 0
    --0.3 0
    -0 0
    -0 0
    -0.333 0
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    +-4400.00000 4400
    +-1255.49000 -1255
    +-1.12200 -11
    +-1.12000 -1
    +-0.33300 0
    +-0.30000 0
    +0.00000 0
    +0.00000 0
    +0.33300 0
    +1.00000 1
    +1.00000 1
    +1.12000 1
    +1.12200 1
    +2.00000 2
    +3.14000 3
    +3.14000 3
    +3.14000 4
    +10.00000 10
      10.73433 5
    -124 124
    -125.2 125
    +124.00000 124
    +125.20000 125
      23232.23435 2
      PREHOOK: query: SELECT * FROM DECIMAL_6_2 ORDER BY key, value
      PREHOOK: type: QUERY
    @@ -151,27 +151,27 @@ POSTHOOK: Input: default@decimal_6_2
      #### A masked pattern was here ####
      NULL 0
      -1234567890.1235 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --0.333 0
    --0.3 0
    -0 0
    -0 0
    -0.333 0
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    +-4400.0000 4400
    +-1255.4900 -1255
    +-1.1220 -11
    +-1.1200 -1
    +-0.3330 0
    +-0.3000 0
    +0.0000 0
    +0.0000 0
    +0.3330 0
    +1.0000 1
    +1.0000 1
    +1.1200 1
    +1.1220 1
    +2.0000 2
    +3.1400 3
    +3.1400 3
    +3.1400 4
    +10.0000 10
      10.7343 5
    -124 124
    -125.2 125
    +124.0000 124
    +125.2000 125
      23232.2344 2
      2389432.2375 3
      2389432.2375 4
    @@ -200,54 +200,54 @@ NULL
      NULL
      NULL
      NULL
    --1234567890.1235
    --4400
    --4400
    --1255.49
    --1255.49
    --1.122
    --1.122
    --1.12
    --1.12
    --0.333
    --0.333
    --0.3
    --0.3
    -0
    -0
    -0
    -0
    -0.333
    -0.333
    -1
    -1
    -1
    -1
    -1.12
    -1.12
    -1.122
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -10
    -10.7343
    +-1234567890.12350
    +-4400.00000
    +-4400.00000
    +-1255.49000
    +-1255.49000
    +-1.12200
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33300
    +-0.30000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.00000
    +0.33300
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12000
    +1.12200
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +10.00000
    +10.73430
      10.73433
    -124
    -124
    -125.2
    -125.2
    +124.00000
    +124.00000
    +125.20000
    +125.20000
      23232.23435
    -23232.2344
    -2389432.2375
    -2389432.2375
    -1234567890.1235
    +23232.23440
    +2389432.23750
    +2389432.23750
    +1234567890.12350
      PREHOOK: query: CREATE TABLE DECIMAL_6_3 STORED AS ORC AS SELECT key + 5.5 AS k, value * 11 AS v from DECIMAL_6_1 ORDER BY v
      PREHOOK: type: CREATETABLE_AS_SELECT
      PREHOOK: Input: default@decimal_6_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_aggregate.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_aggregate.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_aggregate.q.out
    index 683af86..d10f053 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_aggregate.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_aggregate.q.out
    @@ -117,14 +117,14 @@ POSTHOOK: query: SELECT cint,
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_vgby
      #### A masked pattern was here ####
    --3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 6 6984454.211097692 -4033.445769230769 6967702.8672438458471
    --563 2 -515.621072973 -3367.6517567568 -3883.2728297298 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459
    -253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089
    -528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003
    -626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.746153846154 -11712.276923076923 12625.04759999997746
    -6981 3 5831542.269248378 -515.621072973 5830511.027102432 3 6984454.211097692 -617.5607769230769 6983219.0895438458462
    -762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2 6984454.211097692 1833.9456923076925 6986288.1567899996925
    -NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536
    +-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710
    +-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590
    +253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089
    +528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003
    +626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746
    +6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620
    +762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250
    +NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360
      PREHOOK: query: -- Now add the others...
      EXPLAIN SELECT cint,
          COUNT(cdecimal1), MAX(cdecimal1), MIN(cdecimal1), SUM(cdecimal1), AVG(cdecimal1), STDDEV_POP(cdecimal1), STDDEV_SAMP(cdecimal1),
    @@ -221,11 +221,11 @@ POSTHOOK: query: SELECT cint,
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_vgby
      #### A masked pattern was here ####
    --3728 6 5831542.269248378 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.211097692 -4033.445769230769 6967702.8672438458471 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
    --563 2 -515.621072973 -3367.6517567568 -3883.2728297298 -1941.6364148649 1426.0153418918999 2016.6902366556308 2 -617.5607769230769 -4033.445769230769 -4651.0065461538459 -2325.50327307692295 1707.9424961538462 2415.395441814127
    -253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.969230769231 -11712.99230769231 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
    -528534767 1024 5831542.269248378 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.211097692 -11710.130769230771 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
    -626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.746153846154 -11712.276923076923 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
    -6981 3 5831542.269248378 -515.621072973 5830511.027102432 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.211097692 -617.5607769230769 6983219.0895438458462 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
    -762 2 5831542.269248378 1531.2194054054 5833073.4886537834 2916536.7443268917 2915005.5249214866 4122440.3477364695 2 6984454.211097692 1833.9456923076925 6986288.1567899996925 3493144.07839499984625 3491310.1327026924 4937458.140118758
    -NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.715384615385 -5147.907692307693 6010604.3076923073536 1956.576923076922966667 6821.495748565159 6822.606289190924
    +-3728 6 5831542.2692483780 -3367.6517567568 5817556.0411483778 969592.67352472963333 2174330.2092403853 2381859.406131774 6 6984454.21109769200000 -4033.44576923076900 6967702.86724384584710 1161283.811207307641183333 2604201.2704476737 2852759.5602156054
    +-563 2 -515.6210729730 -3367.6517567568 -3883.2728297298 -1941.63641486490000 1426.0153418918999 2016.6902366556308 2 -617.56077692307690 -4033.44576923076900 -4651.00654615384590 -2325.503273076922950000 1707.9424961538462 2415.395441814127
    +253665376 1024 9767.0054054054 -9779.5486486487 -347484.0818378374 -339.33992366976309 5708.9563478862 5711.745967572779 1024 11697.96923076923100 -11712.99230769231000 -416182.64030769233089 -406.428359675480791885 6837.632716002934 6840.973851172274
    +528534767 1024 5831542.2692483780 -9777.1594594595 11646372.8607481068 11373.41099682432305 257528.92988206653 257654.7686043977 1024 6984454.21109769200000 -11710.13076923077100 13948892.79980307629003 13621.965624807691689482 308443.1074570801 308593.82484083984
    +626923679 1024 9723.4027027027 -9778.9513513514 10541.0525297287 10.29399661106318 5742.09145323734 5744.897264034267 1024 11645.74615384615400 -11712.27692307692300 12625.04759999997746 12.329148046874977988 6877.318722794877 6880.679250101603
    +6981 3 5831542.2692483780 -515.6210729730 5830511.0271024320 1943503.67570081066667 2749258.455012492 3367140.1929065133 3 6984454.21109769200000 -617.56077692307690 6983219.08954384584620 2327739.696514615282066667 3292794.4113115156 4032833.0678006653
    +762 2 5831542.2692483780 1531.2194054054 5833073.4886537834 2916536.74432689170000 2915005.5249214866 4122440.3477364695 2 6984454.21109769200000 1833.94569230769250 6986288.15678999969250 3493144.078394999846250000 3491310.1327026924 4937458.140118758
    +NULL 3072 9318.4351351351 -4298.1513513514 5018444.1081079808 1633.60810810806667 5695.483082135364 5696.4103077145055 3072 11160.71538461538500 -5147.90769230769300 6010604.30769230735360 1956.576923076922966667 6821.495748565159 6822.606289190924

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_cast.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_cast.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_cast.q.out
    index 59b80f2..35b7e87 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_cast.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_cast.q.out
    @@ -29,13 +29,13 @@ POSTHOOK: query: SELECT cdouble, cint, cboolean1, ctimestamp1, CAST(cdouble AS D
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alltypesorc
      #### A masked pattern was here ####
    --13326.0 528534767 true 1969-12-31 15:59:46.674 -13326 528534767 1 -13
    --15813.0 528534767 true 1969-12-31 15:59:55.787 -15813 528534767 1 -4
    --9566.0 528534767 true 1969-12-31 15:59:44.187 -9566 528534767 1 -16
    -15007.0 528534767 true 1969-12-31 15:59:50.434 15007 528534767 1 -10
    -7021.0 528534767 true 1969-12-31 16:00:15.007 7021 528534767 1 15
    -4963.0 528534767 true 1969-12-31 16:00:07.021 4963 528534767 1 7
    --7824.0 528534767 true 1969-12-31 16:00:04.963 -7824 528534767 1 5
    --15431.0 528534767 true 1969-12-31 15:59:52.176 -15431 528534767 1 -8
    --15549.0 528534767 true 1969-12-31 15:59:44.569 -15549 528534767 1 -15
    -5780.0 528534767 true 1969-12-31 15:59:44.451 5780 528534767 1 -16
    +-13326.0 528534767 true 1969-12-31 15:59:46.674 -13326.0000000000 528534767.00000000000000 1.00 -13
    +-15813.0 528534767 true 1969-12-31 15:59:55.787 -15813.0000000000 528534767.00000000000000 1.00 -4
    +-9566.0 528534767 true 1969-12-31 15:59:44.187 -9566.0000000000 528534767.00000000000000 1.00 -16
    +15007.0 528534767 true 1969-12-31 15:59:50.434 15007.0000000000 528534767.00000000000000 1.00 -10
    +7021.0 528534767 true 1969-12-31 16:00:15.007 7021.0000000000 528534767.00000000000000 1.00 15
    +4963.0 528534767 true 1969-12-31 16:00:07.021 4963.0000000000 528534767.00000000000000 1.00 7
    +-7824.0 528534767 true 1969-12-31 16:00:04.963 -7824.0000000000 528534767.00000000000000 1.00 5
    +-15431.0 528534767 true 1969-12-31 15:59:52.176 -15431.0000000000 528534767.00000000000000 1.00 -8
    +-15549.0 528534767 true 1969-12-31 15:59:44.569 -15549.0000000000 528534767.00000000000000 1.00 -15
    +5780.0 528534767 true 1969-12-31 15:59:44.451 5780.0000000000 528534767.00000000000000 1.00 -16

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_expressions.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_expressions.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_expressions.q.out
    index 366d883..08c3ae9 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_expressions.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_expressions.q.out
    @@ -84,13 +84,13 @@ LIMIT 10
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_test
      #### A masked pattern was here ####
    -1836.441995841977 -1166.027234927254 0.8372697814833714 245972.55810810256 5.6189189189 835 1000 -24 835 true 1000.823076923077 835.6189 1000.823076923077 1969-12-31 16:13:55.618918918
    -1856.1322245322462 -1178.5293139292924 0.8372449787014038 251275.4432432497 4.5783783784 844 1011 -13 844 true 1011.5538461538462 844.57837 1011.5538461538462 1969-12-31 16:14:04.578378378
    -1858.7575883576155 -1180.196257796231 0.837241711366943 251986.76756757565 5.772972973 845 1012 -12 845 true 1012.9846153846155 845.77295 1012.9846153846155 1969-12-31 16:14:05.772972973
    -1862.6956340956693 -1182.6966735966386 0.8372368276344616 253055.6391891997 7.5648648649 847 1015 -9 847 true 1015.1307692307693 847.5649 1015.1307692307693 1969-12-31 16:14:07.564864864
    -1883.6985446985233 -1196.0322245322466 0.8372111259286499 258794.49324323673 7.1216216216 857 1026 2 857 true 1026.5769230769233 857.12164 1026.5769230769233 1969-12-31 16:14:17.121621621
    -1886.3239085238924 -1197.6991683991848 0.8372079534581902 259516.37432431948 8.3162162162 858 1028 4 858 true 1028.0076923076924 858.3162 1028.0076923076924 1969-12-31 16:14:18.316216216
    -1887.636590436577 -1198.532640332654 0.8372063705322131 259877.69189188787 8.9135135135 858 1028 4 858 true 1028.723076923077 858.9135 1028.723076923077 1969-12-31 16:14:18.913513513
    -1895.5126819126846 -1203.5334719334692 0.8371969190171343 262050.87567567648 2.4972972973 862 1033 9 862 true 1033.0153846153846 862.4973 1033.0153846153846 1969-12-31 16:14:22.497297297
    -1909.9521829522155 -1212.701663201631 0.8371797936946236 266058.54729730723 9.0675675676 869 1040 16 869 true 1040.8846153846155 869.06757 1040.8846153846155 1969-12-31 16:14:29.067567567
    -1913.8902286902692 -1215.2020790020384 0.8371751679995797 267156.8270270395 0.8594594595 870 1043 19 870 true 1043.0307692307692 870.85944 1043.0307692307692 1969-12-31 16:14:30.859459459
    +1836.44199584197700 -1166.02723492725400 0.8372697814833714 245972.55810810256 5.6189189189 835 1000 -24 835 true 1000.823076923077 835.6189 1000.823076923077 1969-12-31 16:13:55.618918918
    +1856.13222453224620 -1178.52931392929240 0.8372449787014038 251275.4432432497 4.5783783784 844 1011 -13 844 true 1011.5538461538462 844.57837 1011.5538461538462 1969-12-31 16:14:04.578378378
    +1858.75758835761550 -1180.19625779623100 0.837241711366943 251986.76756757565 5.7729729730 845 1012 -12 845 true 1012.9846153846155 845.77295 1012.9846153846155 1969-12-31 16:14:05.772972973
    +1862.69563409566930 -1182.69667359663860 0.8372368276344616 253055.6391891997 7.5648648649 847 1015 -9 847 true 1015.1307692307693 847.5649 1015.1307692307693 1969-12-31 16:14:07.564864864
    +1883.69854469852330 -1196.03222453224660 0.8372111259286499 258794.49324323673 7.1216216216 857 1026 2 857 true 1026.5769230769233 857.12164 1026.5769230769233 1969-12-31 16:14:17.121621621
    +1886.32390852389240 -1197.69916839918480 0.8372079534581902 259516.37432431948 8.3162162162 858 1028 4 858 true 1028.0076923076924 858.3162 1028.0076923076924 1969-12-31 16:14:18.316216216
    +1887.63659043657700 -1198.53264033265400 0.8372063705322131 259877.69189188787 8.9135135135 858 1028 4 858 true 1028.723076923077 858.9135 1028.723076923077 1969-12-31 16:14:18.913513513
    +1895.51268191268460 -1203.53347193346920 0.8371969190171343 262050.87567567648 2.4972972973 862 1033 9 862 true 1033.0153846153846 862.4973 1033.0153846153846 1969-12-31 16:14:22.497297297
    +1909.95218295221550 -1212.70166320163100 0.8371797936946236 266058.54729730723 9.0675675676 869 1040 16 869 true 1040.8846153846155 869.06757 1040.8846153846155 1969-12-31 16:14:29.067567567
    +1913.89022869026920 -1215.20207900203840 0.8371751679995797 267156.8270270395 0.8594594595 870 1043 19 870 true 1043.0307692307692 870.85944 1043.0307692307692 1969-12-31 16:14:30.859459459

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_mapjoin.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_mapjoin.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_mapjoin.q.out
    index 240b875..3712549 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_mapjoin.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_mapjoin.q.out
    @@ -156,109 +156,109 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
  • Xuefu at Nov 4, 2015 at 3:41 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_precision.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_precision.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_precision.q.out
    index 8b6614e..0b14304 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_precision.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_precision.q.out
    @@ -99,13 +99,13 @@ NULL
      NULL
      NULL
      NULL
    -0
    -0
    -0
    -0
    -0
    -0.123456789
    -0.123456789
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.1234567890
    +0.1234567890
      1.2345678901
      1.2345678901
      1.2345678901
    @@ -122,14 +122,14 @@ NULL
      12345.6789012346
      123456.7890123456
      123456.7890123457
    -1234567.890123456
    +1234567.8901234560
      1234567.8901234568
    -12345678.90123456
    +12345678.9012345600
      12345678.9012345679
    -123456789.0123456
    +123456789.0123456000
      123456789.0123456789
    -1234567890.123456
    -1234567890.123456789
    +1234567890.1234560000
    +1234567890.1234567890
      PREHOOK: query: SELECT dec, dec + 1, dec - 1 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -182,13 +182,13 @@ NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0.123456789 1.123456789 -0.876543211
    -0.123456789 1.123456789 -0.876543211
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.1234567890 1.1234567890 -0.8765432110
    +0.1234567890 1.1234567890 -0.8765432110
      1.2345678901 2.2345678901 0.2345678901
      1.2345678901 2.2345678901 0.2345678901
      1.2345678901 2.2345678901 0.2345678901
    @@ -205,14 +205,14 @@ NULL NULL NULL
      12345.6789012346 12346.6789012346 12344.6789012346
      123456.7890123456 123457.7890123456 123455.7890123456
      123456.7890123457 123457.7890123457 123455.7890123457
    -1234567.890123456 1234568.890123456 1234566.890123456
    +1234567.8901234560 1234568.8901234560 1234566.8901234560
      1234567.8901234568 1234568.8901234568 1234566.8901234568
    -12345678.90123456 12345679.90123456 12345677.90123456
    +12345678.9012345600 12345679.9012345600 12345677.9012345600
      12345678.9012345679 12345679.9012345679 12345677.9012345679
    -123456789.0123456 123456790.0123456 123456788.0123456
    +123456789.0123456000 123456790.0123456000 123456788.0123456000
      123456789.0123456789 123456790.0123456789 123456788.0123456789
    -1234567890.123456 1234567891.123456 1234567889.123456
    -1234567890.123456789 1234567891.123456789 1234567889.123456789
    +1234567890.1234560000 1234567891.1234560000 1234567889.1234560000
    +1234567890.1234567890 1234567891.1234567890 1234567889.1234567890
      PREHOOK: query: SELECT dec, dec * 2, dec / 3 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -265,37 +265,37 @@ NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
    -0 0 0
    -0 0 0
    -0 0 0
    -0 0 0
    -0 0 0
    -0.123456789 0.246913578 0.041152263
    -0.123456789 0.246913578 0.041152263
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.1234567890 0.2469135780 0.041152263000
    +0.1234567890 0.2469135780 0.041152263000
      1.2345678901 2.4691357802 0.411522630033
      1.2345678901 2.4691357802 0.411522630033
      1.2345678901 2.4691357802 0.411522630033
    -12.3456789012 24.6913578024 4.1152263004
    -12.3456789012 24.6913578024 4.1152263004
    -12.3456789012 24.6913578024 4.1152263004
    -123.4567890123 246.9135780246 41.1522630041
    -123.4567890123 246.9135780246 41.1522630041
    -123.4567890123 246.9135780246 41.1522630041
    -1234.5678901235 2469.135780247 411.522630041167
    -1234.5678901235 2469.135780247 411.522630041167
    -1234.5678901235 2469.135780247 411.522630041167
    +12.3456789012 24.6913578024 4.115226300400
    +12.3456789012 24.6913578024 4.115226300400
    +12.3456789012 24.6913578024 4.115226300400
    +123.4567890123 246.9135780246 41.152263004100
    +123.4567890123 246.9135780246 41.152263004100
    +123.4567890123 246.9135780246 41.152263004100
    +1234.5678901235 2469.1357802470 411.522630041167
    +1234.5678901235 2469.1357802470 411.522630041167
    +1234.5678901235 2469.1357802470 411.522630041167
      12345.6789012346 24691.3578024692 4115.226300411533
      12345.6789012346 24691.3578024692 4115.226300411533
    -123456.7890123456 246913.5780246912 41152.2630041152
    +123456.7890123456 246913.5780246912 41152.263004115200
      123456.7890123457 246913.5780246914 41152.263004115233
    -1234567.890123456 2469135.780246912 411522.630041152
    +1234567.8901234560 2469135.7802469120 411522.630041152000
      1234567.8901234568 2469135.7802469136 411522.630041152267
    -12345678.90123456 24691357.80246912 4115226.30041152
    +12345678.9012345600 24691357.8024691200 4115226.300411520000
      12345678.9012345679 24691357.8024691358 4115226.300411522633
    -123456789.0123456 246913578.0246912 41152263.0041152
    -123456789.0123456789 246913578.0246913578 41152263.0041152263
    -1234567890.123456 2469135780.246912 411522630.041152
    -1234567890.123456789 2469135780.246913578 411522630.041152263
    +123456789.0123456000 246913578.0246912000 41152263.004115200000
    +123456789.0123456789 246913578.0246913578 41152263.004115226300
    +1234567890.1234560000 2469135780.2469120000 411522630.041152000000
    +1234567890.1234567890 2469135780.2469135780 411522630.041152263000
      PREHOOK: query: SELECT dec, dec / 9 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -348,13 +348,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.013717421
    -0.123456789 0.013717421
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.1234567890 0.013717421000
    +0.1234567890 0.013717421000
      1.2345678901 0.137174210011
      1.2345678901 0.137174210011
      1.2345678901 0.137174210011
    @@ -371,14 +371,14 @@ NULL NULL
      12345.6789012346 1371.742100137178
      123456.7890123456 13717.421001371733
      123456.7890123457 13717.421001371744
    -1234567.890123456 137174.210013717333
    +1234567.8901234560 137174.210013717333
      1234567.8901234568 137174.210013717422
    -12345678.90123456 1371742.100137173333
    +12345678.9012345600 1371742.100137173333
      12345678.9012345679 1371742.100137174211
    -123456789.0123456 13717421.001371733333
    -123456789.0123456789 13717421.0013717421
    -1234567890.123456 137174210.013717333333
    -1234567890.123456789 137174210.013717421
    +123456789.0123456000 13717421.001371733333
    +123456789.0123456789 13717421.001371742100
    +1234567890.1234560000 137174210.013717333333
    +1234567890.1234567890 137174210.013717421000
      PREHOOK: query: SELECT dec, dec / 27 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -431,13 +431,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.0045724736667
    -0.123456789 0.0045724736667
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.1234567890 0.0045724736667
    +0.1234567890 0.0045724736667
      1.2345678901 0.0457247366704
      1.2345678901 0.0457247366704
      1.2345678901 0.0457247366704
    @@ -454,14 +454,14 @@ NULL NULL
      12345.6789012346 457.2473667123926
      123456.7890123456 4572.4736671239111
      123456.7890123457 4572.4736671239148
    -1234567.890123456 45724.7366712391111
    +1234567.8901234560 45724.7366712391111
      1234567.8901234568 45724.7366712391407
    -12345678.90123456 457247.3667123911111
    +12345678.9012345600 457247.3667123911111
      12345678.9012345679 457247.3667123914037
    -123456789.0123456 4572473.6671239111111
    +123456789.0123456000 4572473.6671239111111
      123456789.0123456789 4572473.6671239140333
    -1234567890.123456 45724736.6712391111111
    -1234567890.123456789 45724736.6712391403333
    +1234567890.1234560000 45724736.6712391111111
    +1234567890.1234567890 45724736.6712391403333
      PREHOOK: query: SELECT dec, dec * dec FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -514,13 +514,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.015241578750190521
    -0.123456789 0.015241578750190521
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.1234567890 0.01524157875019052100
    +0.1234567890 0.01524157875019052100
      1.2345678901 1.52415787526596567801
      1.2345678901 1.52415787526596567801
      1.2345678901 1.52415787526596567801
    @@ -537,14 +537,14 @@ NULL NULL
      12345.6789012346 152415787.53238916034140423716
      123456.7890123456 15241578753.23881726870921383936
      123456.7890123457 15241578753.23884196006701630849
    -1234567.890123456 1524157875323.881726870921383936
    +1234567.8901234560 1524157875323.88172687092138393600
      1234567.8901234568 1524157875323.88370217954558146624
    -12345678.90123456 152415787532388.1726870921383936
    +12345678.9012345600 152415787532388.17268709213839360000
      12345678.9012345679 152415787532388.36774881877789971041
    -123456789.0123456 15241578753238817.26870921383936
    +123456789.0123456000 15241578753238817.26870921383936000000
      123456789.0123456789 15241578753238836.75019051998750190521
    -1234567890.123456 NULL
    -1234567890.123456789 NULL
    +1234567890.1234560000 NULL
    +1234567890.1234567890 NULL
      PREHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
    @@ -643,7 +643,7 @@ POSTHOOK: query: SELECT MIN(cast('12345678901234567890.12345678' as decimal(38,1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_precision
      #### A masked pattern was here ####
    -12345678901234567890.12345678
    +12345678901234567890.123456780000000000
      PREHOOK: query: SELECT COUNT(cast('12345678901234567890.12345678' as decimal(38,18))) FROM DECIMAL_PRECISION
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_round_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_round_2.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_round_2.q.out
    index edde023..8336999 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_round_2.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_round_2.q.out
    @@ -25,7 +25,7 @@ POSTHOOK: query: select * from decimal_tbl_1_orc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_1_orc
      #### A masked pattern was here ####
    -55555
    +55555.000000000000000000
      PREHOOK: query: -- EXPLAIN
      -- SELECT dec, round(null), round(null, 0), round(125, null),
      -- round(1.0/0.0, 0), round(power(-1.0,0.5), 0)
    @@ -121,7 +121,7 @@ FROM decimal_tbl_1_orc ORDER BY d
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_1_orc
      #### A masked pattern was here ####
    -55555 55555 55555 55555 55555 55560 55600 56000 60000 100000 0 0 0
    +55555 55555 55555.0 55555.00 55555.000 55560 55600 56000 60000 100000 0 0 0
      PREHOOK: query: create table decimal_tbl_2_orc (pos decimal(38,18), neg decimal(38,18))
      STORED AS ORC
      PREHOOK: type: CREATETABLE
    @@ -150,7 +150,7 @@ POSTHOOK: query: select * from decimal_tbl_2_orc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_2_orc
      #### A masked pattern was here ####
    -125.315 -125.315
    +125.315000000000000000 -125.315000000000000000
      PREHOOK: query: EXPLAIN
      SELECT
        round(pos) as p, round(pos, 0),
    @@ -240,7 +240,7 @@ FROM decimal_tbl_2_orc ORDER BY p
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_2_orc
      #### A masked pattern was here ####
    -125 125 125.3 125.32 125.315 125.315 130 100 0 0 -125 -125 -125.3 -125.32 -125.315 -125.315 -130 -100 0 0
    +125 125 125.3 125.32 125.315 125.3150 130 100 0 0 -125 -125 -125.3 -125.32 -125.315 -125.3150 -130 -100 0 0
      PREHOOK: query: create table decimal_tbl_3_orc (dec decimal(38,18))
      STORED AS ORC
      PREHOOK: type: CREATETABLE
    @@ -268,7 +268,7 @@ POSTHOOK: query: select * from decimal_tbl_3_orc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_3_orc
      #### A masked pattern was here ####
    -3.141592653589793
    +3.141592653589793000
      PREHOOK: query: EXPLAIN
      SELECT
        round(dec, -15) as d, round(dec, -16),
    @@ -402,7 +402,7 @@ FROM decimal_tbl_3_orc ORDER BY d
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_3_orc
      #### A masked pattern was here ####
    -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3.1 3.14 3.142 3.1416 3.14159 3.141593 3.1415927 3.14159265 3.141592654 3.1415926536 3.14159265359 3.14159265359 3.1415926535898 3.1415926535898 3.14159265358979 3.141592653589793 3.141592653589793
    +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 3.1 3.14 3.142 3.1416 3.14159 3.141593 3.1415927 3.14159265 3.141592654 3.1415926536 3.14159265359 3.141592653590 3.1415926535898 3.1415926535898 3.14159265358979 3.141592653589793 3.1415926535897930
      PREHOOK: query: create table decimal_tbl_4_orc (pos decimal(38,18), neg decimal(38,18))
      STORED AS ORC
      PREHOOK: type: CREATETABLE
    @@ -431,7 +431,7 @@ POSTHOOK: query: select * from decimal_tbl_4_orc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_tbl_4_orc
      #### A masked pattern was here ####
    -1809242.3151111344 -1809242.3151111344
    +1809242.315111134400000000 -1809242.315111134400000000
      PREHOOK: query: EXPLAIN
      SELECT round(pos, 9) as p, round(neg, 9), round(1809242.3151111344BD, 9), round(-1809242.3151111344BD, 9)
      FROM decimal_tbl_4_orc ORDER BY p

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_trailing.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_trailing.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_trailing.q.out
    index ffdb1c9..7dea1a2 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_trailing.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_trailing.q.out
    @@ -73,16 +73,16 @@ POSTHOOK: query: SELECT * FROM DECIMAL_TRAILING ORDER BY id
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_trailing
      #### A masked pattern was here ####
    -0 0 0
    -1 0 0
    +0 0.0000 0.00000000
    +1 0.0000 0.00000000
      2 NULL NULL
    -3 1 1
    -4 10 10
    -5 100 100
    -6 1000 1000
    -7 10000 10000
    -8 100000 100000
    -9 NULL 1000000
    +3 1.0000 1.00000000
    +4 10.0000 10.00000000
    +5 100.0000 100.00000000
    +6 1000.0000 1000.00000000
    +7 10000.0000 10000.00000000
    +8 100000.0000 100000.00000000
    +9 NULL 1000000.00000000
      10 NULL NULL
      11 NULL NULL
      12 NULL NULL
    @@ -91,18 +91,18 @@ POSTHOOK: Input: default@decimal_trailing
      15 NULL NULL
      16 NULL NULL
      17 NULL NULL
    -18 1 1
    -19 10 10
    -20 100 100
    -21 1000 1000
    -22 100000 10000
    -23 0 0
    -24 0 0
    -25 0 0
    -26 0 0
    -27 0 0
    -28 12313.2 134134.312525
    -29 99999.999 134134.31242553
    +18 1.0000 1.00000000
    +19 10.0000 10.00000000
    +20 100.0000 100.00000000
    +21 1000.0000 1000.00000000
    +22 100000.0000 10000.00000000
    +23 0.0000 0.00000000
    +24 0.0000 0.00000000
    +25 0.0000 0.00000000
    +26 0.0000 0.00000000
    +27 0.0000 0.00000000
    +28 12313.2000 134134.31252500
    +29 99999.9990 134134.31242553
      PREHOOK: query: DROP TABLE DECIMAL_TRAILING_txt
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_trailing_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_decimal_udf.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_decimal_udf.q.out b/ql/src/test/results/clientpositive/tez/vector_decimal_udf.q.out
    index cc22a56..6df956d 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_decimal_udf.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_decimal_udf.q.out
    @@ -95,44 +95,44 @@ POSTHOOK: query: SELECT key + key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --8800
    +-8800.0000000000
      NULL
    -0
    -0
    -200
    -20
    -2
    -0.2
    -0.02
    -400
    -40
    -4
    -0
    -0.4
    -0.04
    -0.6
    -0.66
    -0.666
    --0.6
    --0.66
    --0.666
    -2
    -4
    -6.28
    --2.24
    --2.24
    --2.244
    -2.24
    -2.244
    -248
    -250.4
    --2510.98
    -6.28
    -6.28
    -6.28
    -2
    --2469135780.246913578
    -2469135780.24691356
    +0.0000000000
    +0.0000000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.2000000000
    +0.0200000000
    +400.0000000000
    +40.0000000000
    +4.0000000000
    +0.0000000000
    +0.4000000000
    +0.0400000000
    +0.6000000000
    +0.6600000000
    +0.6660000000
    +-0.6000000000
    +-0.6600000000
    +-0.6660000000
    +2.0000000000
    +4.0000000000
    +6.2800000000
    +-2.2400000000
    +-2.2400000000
    +-2.2440000000
    +2.2400000000
    +2.2440000000
    +248.0000000000
    +250.4000000000
    +-2510.9800000000
    +6.2800000000
    +6.2800000000
    +6.2800000000
    +2.0000000000
    +-2469135780.2469135780
    +2469135780.2469135600
      PREHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
    @@ -178,44 +178,44 @@ POSTHOOK: query: SELECT key + value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -0
    +0.0000000000
      NULL
    -0
    -0
    -200
    -20
    -2
    -0.1
    -0.01
    -400
    -40
    -4
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -2
    -4
    -6.14
    --2.12
    --2.12
    --12.122
    -2.12
    -2.122
    -248
    -250.2
    --2510.49
    -6.14
    -6.14
    -7.14
    -2
    --2469135780.123456789
    -2469135780.12345678
    +0.0000000000
    +0.0000000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.1000000000
    +0.0100000000
    +400.0000000000
    +40.0000000000
    +4.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +2.0000000000
    +4.0000000000
    +6.1400000000
    +-2.1200000000
    +-2.1200000000
    +-12.1220000000
    +2.1200000000
    +2.1220000000
    +248.0000000000
    +250.2000000000
    +-2510.4900000000
    +6.1400000000
    +6.1400000000
    +7.1400000000
    +2.0000000000
    +-2469135780.1234567890
    +2469135780.1234567800
      PREHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
    @@ -429,44 +429,44 @@ POSTHOOK: query: SELECT key - key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -0
    +0.0000000000
      NULL
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
      PREHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
    @@ -512,44 +512,44 @@ POSTHOOK: query: SELECT key - value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --8800
    +-8800.0000000000
      NULL
    -0
    -0
    -0
    -0
    -0
    -0.1
    -0.01
    -0
    -0
    -0
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -0
    -0
    -0.14
    --0.12
    --0.12
    -9.878
    -0.12
    -0.122
    -0
    -0.2
    --0.49
    -0.14
    -0.14
    --0.86
    -0
    --0.123456789
    -0.12345678
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.1000000000
    +0.0100000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +0.0000000000
    +0.0000000000
    +0.1400000000
    +-0.1200000000
    +-0.1200000000
    +9.8780000000
    +0.1200000000
    +0.1220000000
    +0.0000000000
    +0.2000000000
    +-0.4900000000
    +0.1400000000
    +0.1400000000
    +-0.8600000000
    +0.0000000000
    +-0.1234567890
    +0.1234567800
      PREHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
    @@ -763,42 +763,42 @@ POSTHOOK: query: SELECT key * key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -19360000
    +19360000.00000000000000000000
      NULL
    -0
    -0
    -10000
    -100
    -1
    -0.01
    -0.0001
    -40000
    -400
    -4
    -0
    -0.04
    -0.0004
    -0.09
    -0.1089
    -0.110889
    -0.09
    -0.1089
    -0.110889
    -1
    -4
    -9.8596
    -1.2544
    -1.2544
    -1.258884
    -1.2544
    -1.258884
    -15376
    -15675.04
    -1576255.1401
    -9.8596
    -9.8596
    -9.8596
    -1
    +0.00000000000000000000
    +0.00000000000000000000
    +10000.00000000000000000000
    +100.00000000000000000000
    +1.00000000000000000000
    +0.01000000000000000000
    +0.00010000000000000000
    +40000.00000000000000000000
    +400.00000000000000000000
    +4.00000000000000000000
    +0.00000000000000000000
    +0.04000000000000000000
    +0.00040000000000000000
    +0.09000000000000000000
    +0.10890000000000000000
    +0.11088900000000000000
    +0.09000000000000000000
    +0.10890000000000000000
    +0.11088900000000000000
    +1.00000000000000000000
    +4.00000000000000000000
    +9.85960000000000000000
    +1.25440000000000000000
    +1.25440000000000000000
    +1.25888400000000000000
    +1.25440000000000000000
    +1.25888400000000000000
    +15376.00000000000000000000
    +15675.04000000000000000000
    +1576255.14010000000000000000
    +9.85960000000000000000
    +9.85960000000000000000
    +9.85960000000000000000
    +1.00000000000000000000
      NULL
      NULL
      PREHOOK: query: EXPLAIN SELECT key, value FROM DECIMAL_UDF where key * value > 0
    @@ -849,29 +849,29 @@ POSTHOOK: query: SELECT key, value FROM DECIMAL_UDF where key * value > 0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -100 100
    -10 10
    -1 1
    -200 200
    -20 20
    -2 2
    -1 1
    -2 2
    -3.14 3
    --1.12 -1
    --1.12 -1
    --1.122 -11
    -1.12 1
    -1.122 1
    -124 124
    -125.2 125
    --1255.49 -1255
    -3.14 3
    -3.14 3
    -3.14 4
    -1 1
    --1234567890.123456789 -1234567890
    -1234567890.12345678 1234567890
    +100.0000000000 100
    +10.0000000000 10
    +1.0000000000 1
    +200.0000000000 200
    +20.0000000000 20
    +2.0000000000 2
    +1.0000000000 1
    +2.0000000000 2
    +3.1400000000 3
    +-1.1200000000 -1
    +-1.1200000000 -1
    +-1.1220000000 -11
    +1.1200000000 1
    +1.1220000000 1
    +124.0000000000 124
    +125.2000000000 125
    +-1255.4900000000 -1255
    +3.1400000000 3
    +3.1400000000 3
    +3.1400000000 4
    +1.0000000000 1
    +-1234567890.1234567890 -1234567890
    +1234567890.1234567800 1234567890
      PREHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
    @@ -917,44 +917,44 @@ POSTHOOK: query: SELECT key * value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --19360000
    +-19360000.0000000000
      NULL
    -0
    -0
    -10000
    -100
    -1
    -0
    -0
    -40000
    -400
    -4
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -1
    -4
    -9.42
    -1.12
    -1.12
    -12.342
    -1.12
    -1.122
    -15376
    -15650
    -1575639.95
    -9.42
    -9.42
    -12.56
    -1
    -1524157875171467887.50190521
    -1524157875171467876.3907942
    +0.0000000000
    +0.0000000000
    +10000.0000000000
    +100.0000000000
    +1.0000000000
    +0.0000000000
    +0.0000000000
    +40000.0000000000
    +400.0000000000
    +4.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +1.0000000000
    +4.0000000000
    +9.4200000000
    +1.1200000000
    +1.1200000000
    +12.3420000000
    +1.1200000000
    +1.1220000000
    +15376.0000000000
    +15650.0000000000
    +1575639.9500000000
    +9.4200000000
    +9.4200000000
    +12.5600000000
    +1.0000000000
    +1524157875171467887.5019052100
    +1524157875171467876.3907942000
      PREHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
    @@ -1268,40 +1268,40 @@ POSTHOOK: query: SELECT key / key FROM DECIMAL_UDF WHERE key is not null and key
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
      PREHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
    @@ -1350,30 +1350,30 @@ POSTHOOK: query: SELECT key / value FROM DECIMAL_UDF WHERE value is not null and
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    +-1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
      1.046666666666666666667
    -1.12
    -1.12
    -0.102
    -1.12
    -1.122
    -1
    -1.0016
    +1.120000000000000000000
    +1.120000000000000000000
    +0.102000000000000000000
    +1.120000000000000000000
    +1.122000000000000000000
    +1.000000000000000000000
    +1.001600000000000000000
      1.000390438247011952191
      1.046666666666666666667
      1.046666666666666666667
    -0.785
    -1
    -1.0000000001
    -1.00000000009999999271
    +0.785000000000000000000
    +1.000000000000000000000
    +1.000000000100000000000
    +1.000000000099999992710
      PREHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
    @@ -1576,44 +1576,44 @@ POSTHOOK: query: SELECT abs(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -4400
    +4400.0000000000
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    -0.3
    -0.33
    -0.333
    -1
    -2
    -3.14
    -1.12
    -1.12
    -1.122
    -1.12
    -1.122
    -124
    -125.2
    -1255.49
    -3.14
    -3.14
    -3.14
    -1
    -1234567890.123456789
    -1234567890.12345678
    +0.0000000000
    +0.0000000000
    +100.0000000000
    +10.0000000000
    +1.0000000000
    +0.1000000000
    +0.0100000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +1.0000000000
    +2.0000000000
    +3.1400000000
    +1.1200000000
    +1.1200000000
    +1.1220000000
    +1.1200000000
    +1.1220000000
    +124.0000000000
    +125.2000000000
    +1255.4900000000
    +3.1400000000
    +3.1400000000
    +3.1400000000
    +1.0000000000
    +1234567890.1234567890
    +1234567890.1234567800
      PREHOOK: query: -- avg
      EXPLAIN SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DECIMAL_UDF GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
    @@ -1700,23 +1700,23 @@ POSTHOOK: query: SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DE
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1234567890 -1234567890.123456789 -1234567890.123456789 -1234567890.123456789
    --1255 -1255.49 -1255.49 -1255.49
    --11 -1.122 -1.122 -1.122
    --1 -1.12 -1.12 -2.24
    -0 0.02538461538461538461538 0.02538461538462 0.33
    -1 1.0484 1.0484 5.242
    -2 2 2 4
    -3 3.14 3.14 9.42
    -4 3.14 3.14 3.14
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125 125.2 125.2 125.2
    -200 200 200 200
    -4400 -4400 -4400 -4400
    -1234567890 1234567890.12345678 1234567890.12345678 1234567890.12345678
    +-1234567890 -1234567890.12345678900000000000000 -1234567890.12345678900000 -1234567890.1234567890
    +-1255 -1255.49000000000000000000000 -1255.49000000000000 -1255.4900000000
    +-11 -1.12200000000000000000000 -1.12200000000000 -1.1220000000
    +-1 -1.12000000000000000000000 -1.12000000000000 -2.2400000000
    +0 0.02538461538461538461538 0.02538461538462 0.3300000000
    +1 1.04840000000000000000000 1.04840000000000 5.2420000000
    +2 2.00000000000000000000000 2.00000000000000 4.0000000000
    +3 3.14000000000000000000000 3.14000000000000 9.4200000000
    +4 3.14000000000000000000000 3.14000000000000 3.1400000000
    +10 10.00000000000000000000000 10.00000000000000 10.0000000000
    +20 20.00000000000000000000000 20.00000000000000 20.0000000000
    +100 100.00000000000000000000000 100.00000000000000 100.0000000000
    +124 124.00000000000000000000000 124.00000000000000 124.0000000000
    +125 125.20000000000000000000000 125.20000000000000 125.2000000000
    +200 200.00000000000000000000000 200.00000000000000 200.0000000000
    +4400 -4400.00000000000000000000000 -4400.00000000000000 -4400.0000000000
    +1234567890 1234567890.12345678000000000000000 1234567890.12345678000000 1234567890.1234567800
      PREHOOK: query: -- negative
      EXPLAIN SELECT -key FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -1764,44 +1764,44 @@ POSTHOOK: query: SELECT -key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -4400
    +4400.0000000000
      NULL
    -0
    -0
    --100
    --10
    --1
    --0.1
    --0.01
    --200
    --20
    --2
    -0
    --0.2
    --0.02
    --0.3
    --0.33
    --0.333
    -0.3
    -0.33
    -0.333
    --1
    --2
    --3.14
    -1.12
    -1.12
    -1.122
    --1.12
    --1.122
    --124
    --125.2
    -1255.49
    --3.14
    --3.14
    --3.14
    --1
    -1234567890.123456789
    --1234567890.12345678
    +0.0000000000
    +0.0000000000
    +-100.0000000000
    +-10.0000000000
    +-1.0000000000
    +-0.1000000000
    +-0.0100000000
    +-200.0000000000
    +-20.0000000000
    +-2.0000000000
    +0.0000000000
    +-0.2000000000
    +-0.0200000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-1.0000000000
    +-2.0000000000
    +-3.1400000000
    +1.1200000000
    +1.1200000000
    +1.1220000000
    +-1.1200000000
    +-1.1220000000
    +-124.0000000000
    +-125.2000000000
    +1255.4900000000
    +-3.1400000000
    +-3.1400000000
    +-3.1400000000
    +-1.0000000000
    +1234567890.1234567890
    +-1234567890.1234567800
      PREHOOK: query: -- positive
      EXPLAIN SELECT +key FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -1831,44 +1831,44 @@ POSTHOOK: query: SELECT +key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --4400
    +-4400.0000000000
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -1
    -2
    -3.14
    --1.12
    --1.12
    --1.122
    -1.12
    -1.122
    -124
    -125.2
    --1255.49
    -3.14
    -3.14
    -3.14
    -1
    --1234567890.123456789
    -1234567890.12345678
    +0.0000000000
    +0.0000000000
    +100.0000000000
    +10.0000000000
    +1.0000000000
    +0.1000000000
    +0.0100000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +1.0000000000
    +2.0000000000
    +3.1400000000
    +-1.1200000000
    +-1.1200000000
    +-1.1220000000
    +1.1200000000
    +1.1220000000
    +124.0000000000
    +125.2000000000
    +-1255.4900000000
    +3.1400000000
    +3.1400000000
    +3.1400000000
    +1.0000000000
    +-1234567890.1234567890
    +1234567890.1234567800
      PREHOOK: query: -- ceiling
      EXPlAIN SELECT CEIL(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -2086,42 +2086,42 @@ POSTHOOK: query: SELECT ROUND(key, 2) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --4400
    +-4400.00
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    +0.00
    +0.00
    +100.00
    +10.00
    +1.00
    +0.10
      0.01
    -200
    -20
    -2
    -0
    -0.2
    +200.00
    +20.00
    +2.00
    +0.00
    +0.20
      0.02
    -0.3
    +0.30
      0.33
      0.33
    --0.3
    +-0.30
      -0.33
      -0.33
    -1
    -2
    +1.00
    +2.00
      3.14
      -1.12
      -1.12
      -1.12
      1.12
      1.12
    -124
    -125.2
    +124.00
    +125.20
      -1255.49
      3.14
      3.14
      3.14
    -1
    +1.00
      -1234567890.12
      1234567890.12
      PREHOOK: query: -- power
    @@ -2255,44 +2255,44 @@ POSTHOOK: query: SELECT (key + 1) % (key / 2) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --2199
    +-2199.000000000000
      NULL
      NULL
      NULL
    -1
    -1
    -0
    -0
    -0
    -1
    -1
    -0
    +1.000000000000
    +1.000000000000
    +0.000000000000
    +0.000000000000
    +0.000000000000
    +1.000000000000
    +1.000000000000
    +0.000000000000
      NULL
    -0
    -0
    -0.1
    -0.01
    -0.001
    -0.1
    -0.01
    -0.001
    -0
    -0
    -1
    --0.12
    --0.12
    --0.122
    -0.44
    -0.439
    -1
    -1
    --626.745
    -1
    -1
    -1
    -0
    --617283944.0617283945
    -1
    +0.000000000000
    +0.000000000000
    +0.100000000000
    +0.010000000000
    +0.001000000000
    +0.100000000000
    +0.010000000000
    +0.001000000000
    +0.000000000000
    +0.000000000000
    +1.000000000000
    +-0.120000000000
    +-0.120000000000
    +-0.122000000000
    +0.440000000000
    +0.439000000000
    +1.000000000000
    +1.000000000000
    +-626.745000000000
    +1.000000000000
    +1.000000000000
    +1.000000000000
    +0.000000000000
    +-617283944.061728394500
    +1.000000000000
      PREHOOK: query: -- stddev, var
      EXPLAIN SELECT value, stddev(key), variance(key) FROM DECIMAL_UDF GROUP BY value
      PREHOOK: type: QUERY
    @@ -2596,7 +2596,7 @@ POSTHOOK: query: SELECT MIN(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1234567890.123456789
    +-1234567890.1234567890
      PREHOOK: query: -- max
      EXPLAIN SELECT MAX(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -2663,7 +2663,7 @@ POSTHOOK: query: SELECT MAX(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -1234567890.12345678
    +1234567890.1234567800
      PREHOOK: query: -- count
      EXPLAIN SELECT COUNT(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/tez/vector_reduce_groupby_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/tez/vector_reduce_groupby_decimal.q.out b/ql/src/test/results/clientpositive/tez/vector_reduce_groupby_decimal.q.out
    index 1cd5959..337d83f 100644
    --- a/ql/src/test/results/clientpositive/tez/vector_reduce_groupby_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/tez/vector_reduce_groupby_decimal.q.out
    @@ -111,56 +111,56 @@ LIMIT 50
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_test
      #### A masked pattern was here ####
    --1073051226 -7382.0 -4409.2486486486 -5280.969230769231 -4409.2486486486
    --1072081801 8373.0 5001.1702702703 5989.915384615385 5001.1702702703
    --1072076362 -5470.0 -3267.2162162162 -3913.1538461538466 -3267.2162162162
    --1070883071 -741.0 -442.5972972973 -530.1 -442.5972972973
    --1070551679 -947.0 -565.6405405405 -677.4692307692308 -565.6405405405
    --1069512165 11417.0 6819.3432432432 8167.546153846154 6819.3432432432
    --1069109166 8390.0 5011.3243243243 6002.076923076923 5011.3243243243
    --1068623584 -14005.0 -8365.1486486486 -10018.961538461539 -8365.1486486486
    --1067386090 -3977.0 -2375.4513513514 -2845.084615384616 -2375.4513513514
    --1066922682 -9987.0 -5965.2081081081 -7144.546153846154 -5965.2081081081
    --1066226047 -9439.0 -5637.8891891892 -6752.515384615385 -5637.8891891892
    --1065117869 2538.0 1515.9405405405 1815.646153846154 1515.9405405405
    --1064949302 6454.0 3854.9567567568 4617.092307692308 3854.9567567568
    --1063498122 -11480.0 -6856.972972973 -8212.615384615387 -6856.972972973
    --1062973443 10541.0 6296.1108108108 7540.869230769231 6296.1108108108
    --1061614989 -4234.0 -2528.9567567568 -3028.938461538462 -2528.9567567568
    --1061057428 -1085.0 -648.0675675676 -776.1923076923077 -648.0675675676
    --1059941909 8782.0 5245.4648648649 6282.507692307693 5245.4648648649
    --1059338191 7322.0 4373.4108108108 5238.046153846154 4373.4108108108
    --1059047258 12452.0 7437.5459459459 8907.969230769231 7437.5459459459
    --1056684111 13991.0 8356.7864864865 10008.946153846155 8356.7864864865
    --1055945837 13690.0 8177 9793.615384615387 8177
    --1055669248 2570.0 1535.0540540541 1838.538461538462 1535.0540540541
    --1055316250 -14990.0 -8953.4864864865 -10723.615384615385 -8953.4864864865
    --1053385587 14504.0 8663.2 10375.938461538462 8663.2
    --1053238077 -3704.0 -2212.3891891892 -2649.784615384616 -2212.3891891892
    --1052745800 -12404.0 -7408.8756756757 -8873.630769230771 -7408.8756756757
    --1052322972 -7433.0 -4439.7108108108 -5317.453846153847 -4439.7108108108
    --1050684541 -8261.0 -4934.272972973 -5909.792307692308 -4934.272972973
    --1050657303 -6999.0 -4180.4837837838 -5006.976923076923 -4180.4837837838
    --1050165799 8634.0 5157.0648648649 6176.63076923077 5157.0648648649
    +-1073051226 -7382.0 -4409.2486486486 -5280.96923076923100 -4409.2486486486
    +-1072081801 8373.0 5001.1702702703 5989.91538461538500 5001.1702702703
    +-1072076362 -5470.0 -3267.2162162162 -3913.15384615384660 -3267.2162162162
    +-1070883071 -741.0 -442.5972972973 -530.10000000000000 -442.5972972973
    +-1070551679 -947.0 -565.6405405405 -677.46923076923080 -565.6405405405
    +-1069512165 11417.0 6819.3432432432 8167.54615384615400 6819.3432432432
    +-1069109166 8390.0 5011.3243243243 6002.07692307692300 5011.3243243243
    +-1068623584 -14005.0 -8365.1486486486 -10018.96153846153900 -8365.1486486486
    +-1067386090 -3977.0 -2375.4513513514 -2845.08461538461600 -2375.4513513514
    +-1066922682 -9987.0 -5965.2081081081 -7144.54615384615400 -5965.2081081081
    +-1066226047 -9439.0 -5637.8891891892 -6752.51538461538500 -5637.8891891892
    +-1065117869 2538.0 1515.9405405405 1815.64615384615400 1515.9405405405
    +-1064949302 6454.0 3854.9567567568 4617.09230769230800 3854.9567567568
    +-1063498122 -11480.0 -6856.9729729730 -8212.61538461538700 -6856.9729729730
    +-1062973443 10541.0 6296.1108108108 7540.86923076923100 6296.1108108108
    +-1061614989 -4234.0 -2528.9567567568 -3028.93846153846200 -2528.9567567568
    +-1061057428 -1085.0 -648.0675675676 -776.19230769230770 -648.0675675676
    +-1059941909 8782.0 5245.4648648649 6282.50769230769300 5245.4648648649
    +-1059338191 7322.0 4373.4108108108 5238.04615384615400 4373.4108108108
    +-1059047258 12452.0 7437.5459459459 8907.96923076923100 7437.5459459459
    +-1056684111 13991.0 8356.7864864865 10008.94615384615500 8356.7864864865
    +-1055945837 13690.0 8177.0000000000 9793.61538461538700 8177.0000000000
    +-1055669248 2570.0 1535.0540540541 1838.53846153846200 1535.0540540541
    +-1055316250 -14990.0 -8953.4864864865 -10723.61538461538500 -8953.4864864865
    +-1053385587 14504.0 8663.2000000000 10375.93846153846200 8663.2000000000
    +-1053238077 -3704.0 -2212.3891891892 -2649.78461538461600 -2212.3891891892
    +-1052745800 -12404.0 -7408.8756756757 -8873.63076923077100 -7408.8756756757
    +-1052322972 -7433.0 -4439.7108108108 -5317.45384615384700 -4439.7108108108
    +-1050684541 -8261.0 -4934.2729729730 -5909.79230769230800 -4934.2729729730
    +-1050657303 -6999.0 -4180.4837837838 -5006.97692307692300 -4180.4837837838
    +-1050165799 8634.0 5157.0648648649 6176.63076923077000 5157.0648648649
      -1048934049 -524.0 -312.9837837838 -374.86153846153854 -312.9837837838
    --1046399794 4130.0 2466.8378378378 2954.5384615384614 2466.8378378378
    --1045867222 -8034.0 -4798.6864864865 -5747.400000000001 -4798.6864864865
    --1045196363 -5039.0 -3009.7810810811 -3604.823076923077 -3009.7810810811
    --1045181724 -5706.0 -3408.1783783784 -4081.9846153846156 -3408.1783783784
    --1045087657 -5865.0 -3503.1486486486 -4195.7307692307695 -3503.1486486486
    --1044207190 5381.0 3214.0567567568 3849.4846153846156 3214.0567567568
    --1044093617 -3422.0 -2043.9513513514 -2448.046153846154 -2043.9513513514
    --1043573508 16216.0 9685.772972973 11600.676923076924 9685.772972973
    --1043132597 12302.0 7347.9513513514 8800.66153846154 7347.9513513514
    --1043082182 9180.0 5483.1891891892 6567.2307692307695 5483.1891891892
    --1042805968 5133.0 3065.927027027 3672.0692307692307 3065.927027027
    --1042712895 9296.0 5552.4756756757 6650.215384615385 5552.4756756757
    --1042396242 9583.0 5723.9 6855.53076923077 5723.9
    --1041734429 -836.0 -499.3405405405 -598.0615384615385 -499.3405405405
    --1041391389 -12970.0 -7746.9459459459 -9278.538461538463 -7746.9459459459
    --1041252354 756.0 451.5567567568 540.8307692307692 451.5567567568
    --1039776293 13704.0 8185.3621621622 9803.630769230771 8185.3621621622
    --1039762548 -3802.0 -2270.9243243243 -2719.8923076923083 -2270.9243243243
    +-1046399794 4130.0 2466.8378378378 2954.53846153846140 2466.8378378378
    +-1045867222 -8034.0 -4798.6864864865 -5747.40000000000100 -4798.6864864865
    +-1045196363 -5039.0 -3009.7810810811 -3604.82307692307700 -3009.7810810811
    +-1045181724 -5706.0 -3408.1783783784 -4081.98461538461560 -3408.1783783784
    +-1045087657 -5865.0 -3503.1486486486 -4195.73076923076950 -3503.1486486486
    +-1044207190 5381.0 3214.0567567568 3849.48461538461560 3214.0567567568
    +-1044093617 -3422.0 -2043.9513513514 -2448.04615384615400 -2043.9513513514
    +-1043573508 16216.0 9685.7729729730 11600.67692307692400 9685.7729729730
    +-1043132597 12302.0 7347.9513513514 8800.66153846154000 7347.9513513514
    +-1043082182 9180.0 5483.1891891892 6567.23076923076950 5483.1891891892
    +-1042805968 5133.0 3065.9270270270 3672.06923076923070 3065.9270270270
    +-1042712895 9296.0 5552.4756756757 6650.21538461538500 5552.4756756757
    +-1042396242 9583.0 5723.9000000000 6855.53076923077000 5723.9000000000
    +-1041734429 -836.0 -499.3405405405 -598.06153846153850 -499.3405405405
    +-1041391389 -12970.0 -7746.9459459459 -9278.53846153846300 -7746.9459459459
    +-1041252354 756.0 451.5567567568 540.83076923076920 451.5567567568
    +-1039776293 13704.0 8185.3621621622 9803.63076923077100 8185.3621621622
    +-1039762548 -3802.0 -2270.9243243243 -2719.89230769230830 -2270.9243243243
      PREHOOK: query: SELECT sum(hash(*))
        FROM (SELECT cint, cdouble, cdecimal1, cdecimal2, min(cdecimal1) as min_decimal1 FROM decimal_test
              WHERE cdecimal1 is not null and cdecimal2 is not null

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/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 1cfa088..c5c1abb 100644
    --- a/ql/src/test/results/clientpositive/update_all_types.q.out
    +++ b/ql/src/test/results/clientpositive/update_all_types.q.out
    @@ -96,11 +96,11 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --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
    +-51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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
    @@ -150,12 +150,12 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +-51 NULL -1071480828 -1071480828 -1401575336 -51.0 NULL -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA 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
    -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
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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
    @@ -184,12 +184,12 @@ POSTHOOK: query: select * from acid_uat order by i
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acid_uat
      #### A masked pattern was here ####
    --102 -51 -1071480828 -1071480828 -1401575336 -51.0 -51.0 -51 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA true
    +-102 -51 -1071480828 -1071480828 -1401575336 -51.0 -51.0 -51.00 1969-12-31 16:00:08.451 NULL aw724t8c5558x2xneC624 aw724t8c5558x2xneC624 4uE7l74tESBiKfu7c8wM7GA 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
    -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
    +11 NULL -1069736047 -1069736047 -453772520 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL k17Am8uPHWk02cEf1jet k17Am8uPHWk02cEf1jet qrXLLNX1 true
    +11 NULL -1072910839 -1072910839 2048385991 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL 0iqrc5 0iqrc5 KbaDXiN85adbHRx58v false
    +11 NULL -1073279343 -1073279343 -1595604468 11.0 NULL 11.00 1969-12-31 16:00:02.351 NULL oj1YrV5Wa oj1YrV5Wa P76636jJ6qM17d7DIy true
    +8 NULL -1071363017 -1071363017 1349676361 8.0 NULL 8.00 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

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_aggregate_9.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_aggregate_9.q.out b/ql/src/test/results/clientpositive/vector_aggregate_9.q.out
    index 72dc004..e0cf903 100644
    --- a/ql/src/test/results/clientpositive/vector_aggregate_9.q.out
    +++ b/ql/src/test/results/clientpositive/vector_aggregate_9.q.out
    @@ -164,4 +164,4 @@ select min(dc), max(dc), sum(dc), avg(dc) from vectortab2korc
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@vectortab2korc
      #### A masked pattern was here ####
    --4997414117561.546875 4994550248722.298828 -10252745435816.02441 -5399023399.587163986308583465
    +-4997414117561.546875000000000000 4994550248722.298828000000000000 -10252745435816.024410000000000000 -5399023399.587163986308583465

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_between_in.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_between_in.q.out b/ql/src/test/results/clientpositive/vector_between_in.q.out
    index a9b9a4b..b80da1b 100644
    --- a/ql/src/test/results/clientpositive/vector_between_in.q.out
    +++ b/ql/src/test/results/clientpositive/vector_between_in.q.out
    @@ -594,34 +594,34 @@ POSTHOOK: Input: default@decimal_date_test
      -18.5162162162
      -17.3216216216
      -16.7243243243
    --16.127027027
    +-16.1270270270
      -15.5297297297
      -10.7513513514
      -9.5567567568
      -8.3621621622
    --5.972972973
    +-5.9729729730
      -3.5837837838
      4.1810810811
      4.7783783784
      4.7783783784
      5.3756756757
    -5.972972973
    -5.972972973
    +5.9729729730
    +5.9729729730
      11.3486486486
      11.3486486486
      11.9459459459
      14.9324324324
      19.1135135135
      20.3081081081
    -22.1
    +22.1000000000
      24.4891891892
      33.4486486486
      34.6432432432
      40.0189189189
      42.4081081081
      43.0054054054
    -44.2
    -44.2
    +44.2000000000
    +44.2000000000
      44.7972972973
      45.9918918919
      PREHOOK: query: SELECT COUNT(*) FROM decimal_date_test WHERE cdecimal1 NOT BETWEEN -2000 AND 4390.1351351351

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_cast_constant.q.java1.7.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_cast_constant.q.java1.7.out b/ql/src/test/results/clientpositive/vector_cast_constant.q.java1.7.out
    index 9edd6f1..e5d56ec 100644
    --- a/ql/src/test/results/clientpositive/vector_cast_constant.q.java1.7.out
    +++ b/ql/src/test/results/clientpositive/vector_cast_constant.q.java1.7.out
    @@ -207,13 +207,13 @@ POSTHOOK: query: SELECT
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
    -65536 50.0 50.0 50
    -65537 50.0 50.0 50
    -65538 50.0 50.0 50
    -65539 50.0 50.0 50
    -65540 50.0 50.0 50
    -65541 50.0 50.0 50
    -65542 50.0 50.0 50
    -65543 50.0 50.0 50
    -65544 50.0 50.0 50
    -65545 50.0 50.0 50
    +65536 50.0 50.0 50.0000
    +65537 50.0 50.0 50.0000
    +65538 50.0 50.0 50.0000
    +65539 50.0 50.0 50.0000
    +65540 50.0 50.0 50.0000
    +65541 50.0 50.0 50.0000
    +65542 50.0 50.0 50.0000
    +65543 50.0 50.0 50.0000
    +65544 50.0 50.0 50.0000
    +65545 50.0 50.0 50.0000

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_data_types.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_data_types.q.out b/ql/src/test/results/clientpositive/vector_data_types.q.out
    index 3ed833b..86f1677 100644
    --- a/ql/src/test/results/clientpositive/vector_data_types.q.out
    +++ b/ql/src/test/results/clientpositive/vector_data_types.q.out
    @@ -153,7 +153,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education
    @@ -239,7 +239,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_decimal_2.q.out b/ql/src/test/results/clientpositive/vector_decimal_2.q.out
    index 8a4d53a..ff82f38 100644
    --- a/ql/src/test/results/clientpositive/vector_decimal_2.q.out
    +++ b/ql/src/test/results/clientpositive/vector_decimal_2.q.out
    @@ -1051,7 +1051,7 @@ POSTHOOK: query: select cast(cast('2012-12-19 11:12:19.1234567' as timestamp) as
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_2
      #### A masked pattern was here ####
    -1355944339.1234567
    +1355944339.12345670
      PREHOOK: query: explain
      select cast(true as decimal) as c from decimal_2 order by c
      PREHOOK: type: QUERY
    @@ -1406,7 +1406,7 @@ POSTHOOK: query: select cast(0.99999999999999999999 as decimal(20,19)) as c from
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_2
      #### A masked pattern was here ####
    -1
    +1.0000000000000000000
      PREHOOK: query: explain
      select cast('0.99999999999999999999' as decimal(20,20)) as c from decimal_2 order by c
      PREHOOK: type: QUERY

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_decimal_3.q.out b/ql/src/test/results/clientpositive/vector_decimal_3.q.out
    index 75f872e..eea91bb 100644
    --- a/ql/src/test/results/clientpositive/vector_decimal_3.q.out
    +++ b/ql/src/test/results/clientpositive/vector_decimal_3.q.out
    @@ -47,43 +47,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -92,43 +92,43 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -1234567890.12345678 1234567890
    -200 200
    -125.2 125
    -124 124
    -100 100
    -20 20
    -10 10
    -3.14 4
    -3.14 3
    -3.14 3
    -3.14 3
    -2 2
    -2 2
    -1.122 1
    -1.12 1
    -1 1
    -1 1
    -1 1
    -0.333 0
    -0.33 0
    -0.3 0
    -0.2 0
    -0.1 0
    -0.02 0
    -0.01 0
    -0 0
    -0 0
    -0 0
    --0.3 0
    --0.33 0
    --0.333 0
    --1.12 -1
    --1.12 -1
    --1.122 -11
    --1255.49 -1255
    --4400 4400
    --1234567890.123456789 -1234567890
    +1234567890.123456780000000000 1234567890
    +200.000000000000000000 200
    +125.200000000000000000 125
    +124.000000000000000000 124
    +100.000000000000000000 100
    +20.000000000000000000 20
    +10.000000000000000000 10
    +3.140000000000000000 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +2.000000000000000000 2
    +2.000000000000000000 2
    +1.122000000000000000 1
    +1.120000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +0.333000000000000000 0
    +0.330000000000000000 0
    +0.300000000000000000 0
    +0.200000000000000000 0
    +0.100000000000000000 0
    +0.020000000000000000 0
    +0.010000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +-0.300000000000000000 0
    +-0.330000000000000000 0
    +-0.333000000000000000 0
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-1.122000000000000000 -11
    +-1255.490000000000000000 -1255
    +-4400.000000000000000000 4400
    +-1234567890.123456789000000000 -1234567890
      NULL 0
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key, value
      PREHOOK: type: QUERY
    @@ -139,43 +139,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_3 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -185,34 +185,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL
    --1234567890.123456789
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    -1234567890.12345678
    +-1234567890.123456789000000000
    +-4400.000000000000000000
    +-1255.490000000000000000
    +-1.122000000000000000
    +-1.120000000000000000
    +-0.333000000000000000
    +-0.330000000000000000
    +-0.300000000000000000
    +0.000000000000000000
    +0.010000000000000000
    +0.020000000000000000
    +0.100000000000000000
    +0.200000000000000000
    +0.300000000000000000
    +0.330000000000000000
    +0.333000000000000000
    +1.000000000000000000
    +1.120000000000000000
    +1.122000000000000000
    +2.000000000000000000
    +3.140000000000000000
    +10.000000000000000000
    +20.000000000000000000
    +100.000000000000000000
    +124.000000000000000000
    +125.200000000000000000
    +200.000000000000000000
    +1234567890.123456780000000000
      PREHOOK: query: SELECT key, sum(value) FROM DECIMAL_3 GROUP BY key ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -222,34 +222,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -2
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 3
    -1.12 1
    -1.122 1
    -2 4
    -3.14 13
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -2
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 3
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 4
    +3.140000000000000000 13
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -258,23 +258,23 @@ POSTHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY v
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890 -1234567890.123456789
    --1255 -1255.49
    --11 -1.122
    --1 -2.24
    -0 0.33
    -1 5.242
    -2 4
    -3 9.42
    -4 3.14
    -10 10
    -20 20
    -100 100
    -124 124
    -125 125.2
    -200 200
    -4400 -4400
    -1234567890 1234567890.12345678
    +-1234567890 -1234567890.123456789000000000
    +-1255 -1255.490000000000000000
    +-11 -1.122000000000000000
    +-1 -2.240000000000000000
    +0 0.330000000000000000
    +1 5.242000000000000000
    +2 4.000000000000000000
    +3 9.420000000000000000
    +4 3.140000000000000000
    +10 10.000000000000000000
    +20 20.000000000000000000
    +100 100.000000000000000000
    +124 124.000000000000000000
    +125 125.200000000000000000
    +200 200.000000000000000000
    +4400 -4400.000000000000000000
    +1234567890 1234567890.123456780000000000
      PREHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) ORDER BY a.key, a.value, b.value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -283,71 +283,71 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) O
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890.123456789 -1234567890 -1234567890.123456789 -1234567890
    --4400 4400 -4400 4400
    --1255.49 -1255 -1255.49 -1255
    --1.122 -11 -1.122 -11
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --0.333 0 -0.333 0
    --0.33 0 -0.33 0
    --0.3 0 -0.3 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0.01 0 0.01 0
    -0.02 0 0.02 0
    -0.1 0 0.1 0
    -0.2 0 0.2 0
    -0.3 0 0.3 0
    -0.33 0 0.33 0
    -0.333 0 0.333 0
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1.12 1 1.12 1
    -1.122 1 1.122 1
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 4
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125.2 125 125.2 125
    -200 200 200 200
    -1234567890.12345678 1234567890 1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890 -1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400 -4400.000000000000000000 4400
    +-1255.490000000000000000 -1255 -1255.490000000000000000 -1255
    +-1.122000000000000000 -11 -1.122000000000000000 -11
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-0.333000000000000000 0 -0.333000000000000000 0
    +-0.330000000000000000 0 -0.330000000000000000 0
    +-0.300000000000000000 0 -0.300000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.010000000000000000 0 0.010000000000000000 0
    +0.020000000000000000 0 0.020000000000000000 0
    +0.100000000000000000 0 0.100000000000000000 0
    +0.200000000000000000 0 0.200000000000000000 0
    +0.300000000000000000 0 0.300000000000000000 0
    +0.330000000000000000 0 0.330000000000000000 0
    +0.333000000000000000 0 0.333000000000000000 0
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.120000000000000000 1 1.120000000000000000 1
    +1.122000000000000000 1 1.122000000000000000 1
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 4
    +10.000000000000000000 10 10.000000000000000000 10
    +20.000000000000000000 20 20.000000000000000000 20
    +100.000000000000000000 100 100.000000000000000000 100
    +124.000000000000000000 124 124.000000000000000000 124
    +125.200000000000000000 125 125.200000000000000000 125
    +200.000000000000000000 200 200.000000000000000000 200
    +1234567890.123456780000000000 1234567890 1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -356,10 +356,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -368,10 +368,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: DROP TABLE DECIMAL_3_txt
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_3_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_decimal_4.q.out b/ql/src/test/results/clientpositive/vector_decimal_4.q.out
    index 613f5a8..c7d3d9e 100644
    --- a/ql/src/test/results/clientpositive/vector_decimal_4.q.out
    +++ b/ql/src/test/results/clientpositive/vector_decimal_4.q.out
    @@ -57,43 +57,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_1
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    +-1234567890.1234567890000000000000000 -1234567890
    +-4400.0000000000000000000000000 4400
    +-1255.4900000000000000000000000 -1255
    +-1.1220000000000000000000000 -11
    +-1.1200000000000000000000000 -1
    +-1.1200000000000000000000000 -1
    +-0.3330000000000000000000000 0
    +-0.3300000000000000000000000 0
    +-0.3000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0100000000000000000000000 0
    +0.0200000000000000000000000 0
    +0.1000000000000000000000000 0
    +0.2000000000000000000000000 0
    +0.3000000000000000000000000 0
    +0.3300000000000000000000000 0
    +0.3330000000000000000000000 0
      0.9999999999999999999999999 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +1.0000000000000000000000000 1
    +1.0000000000000000000000000 1
    +1.1200000000000000000000000 1
    +1.1220000000000000000000000 1
    +2.0000000000000000000000000 2
    +2.0000000000000000000000000 2
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 4
    +10.0000000000000000000000000 10
    +20.0000000000000000000000000 20
    +100.0000000000000000000000000 100
    +124.0000000000000000000000000 124
    +125.2000000000000000000000000 125
    +200.0000000000000000000000000 200
    +1234567890.1234567800000000000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -103,43 +103,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -149,43 +149,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -195,43 +195,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: DROP TABLE DECIMAL_4_1
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_4_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_5.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_decimal_5.q.out b/ql/src/test/results/clientpositive/vector_decimal_5.q.out
    index 34c3351..0bfd12e 100644
    --- a/ql/src/test/results/clientpositive/vector_decimal_5.q.out
    +++ b/ql/src/test/results/clientpositive/vector_decimal_5.q.out
    @@ -59,41 +59,41 @@ POSTHOOK: Input: default@decimal_5
      NULL
      NULL
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1
    -1
    -1.12
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_5 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -103,32 +103,32 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT cast(key as decimal) FROM DECIMAL_5
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -185,40 +185,40 @@ POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    +0.000
    +0.000
    +100.000
    +10.000
    +1.000
    +0.100
    +0.010
    +200.000
    +20.000
    +2.000
    +0.000
    +0.200
    +0.020
    +0.300
    +0.330
      0.333
    --0.3
    --0.33
    +-0.300
    +-0.330
      -0.333
    -1
    -2
    -3.14
    --1.12
    --1.12
    +1.000
    +2.000
    +3.140
    +-1.120
    +-1.120
      -1.122
    -1.12
    +1.120
      1.122
    -124
    -125.2
    +124.000
    +125.200
      NULL
    -3.14
    -3.14
    -3.14
    -1
    +3.140
    +3.140
    +3.140
    +1.000
      NULL
      NULL
      PREHOOK: query: DROP TABLE DECIMAL_5_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/vector_decimal_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/vector_decimal_6.q.out b/ql/src/test/results/clientpositive/vector_decimal_6.q.out
    index 9cdd7fc..e0ccbc6 100644
    --- a/ql/src/test/results/clientpositive/vector_decimal_6.q.out
    +++ b/ql/src/test/results/clientpositive/vector_decimal_6.q.out
    @@ -119,27 +119,27 @@ NULL 0
      NULL 3
      NULL 4
      NULL 1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --0.333 0
    --0.3 0
    -0 0
    -0 0
    -0.333 0
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    +-4400.00000 4400
    +-1255.49000 -1255
    +-1.12200 -11
    +-1.12000 -1
    +-0.33300 0
    +-0.30000 0
    +0.00000 0
    +0.00000 0
    +0.33300 0
    +1.00000 1
    +1.00000 1
    +1.12000 1
    +1.12200 1
    +2.00000 2
    +3.14000 3
    +3.14000 3
    +3.14000 4
    +10.00000 10
      10.73433 5
    -124 124
    -125.2 125
    +124.00000 124
    +125.20000 125
      23232.23435 2
      PREHOOK: query: SELECT * FROM DECIMAL_6_2 ORDER BY key, value
      PREHOOK: type: QUERY
    @@ -151,27 +151,27 @@ POSTHOOK: Input: default@decimal_6_2
      #### A masked pattern was here ####
      NULL 0
      -1234567890.1235 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --0.333 0
    --0.3 0
    -0 0
    -0 0
    -0.333 0
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    +-4400.0000 4400
    +-1255.4900 -1255
    +-1.1220 -11
    +-1.1200 -1
    +-0.3330 0
    +-0.3000 0
    +0.0000 0
    +0.0000 0
    +0.3330 0
    +1.0000 1
    +1.0000 1
    +1.1200 1
    +1.1220 1
    +2.0000 2
    +3.1400 3
    +3.1400 3
    +3.1400 4
    +10.0000 10
      10.7343 5
    -124 124
    -125.2 125
    +124.0000 124
    +125.2000 125
      23232.2344 2
      2389432.2375 3
      2389432.2375 4
    @@ -200,54 +200,54 @@ NULL
      NULL
      NULL
      NULL
    --1234567890.1235
    --4400
    --4400
    --1255.49
    --1255.49
    --1.122
    --1.122
    --1.12
    --1.12
    --0.333
    --0.333
    --0.3
    --0.3
    -0
    -0
    -0
    -0
    -0.333
    -0.333
    -1
    -1
    -1
    -1
    -1.12
    -1.12
    -1.122
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -10
    -10.7343
    +-1234567890.12350
    +-4400.00000
    +-4400.00000
    +-1255.49000
    +-1255.49000
    +-1.12200
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33300
    +-0.30000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.00000
    +0.33300
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12000
    +1.12200
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +10.00000
    +10.73430
      10.73433
    -124
    -124
    -125.2
    -125.2
    +124.00000
    +124.00000
    +125.20000
    +125.20000
      23232.23435
    -23232.2344
    -2389432.2375
    -2389432.2375
    -1234567890.1235
    +23232.23440
    +2389432.23750
    +2389432.23750
    +1234567890.12350
      PREHOOK: query: CREATE TABLE DECIMAL_6_3 STORED AS ORC AS SELECT key + 5.5 AS k, value * 11 AS v from DECIMAL_6_1 ORDER BY v
      PREHOOK: type: CREATETABLE_AS_SELECT
      PREHOOK: Input: default@decimal_6_1
  • Xuefu at Nov 4, 2015 at 3:41 am
    HIVE-12063: Pad Decimal numbers with trailing zeros to the scale of the column (reviewed by Szehon)


    Project: http://git-wip-us.apache.org/repos/asf/hive/repo
    Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/13f8cfec
    Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/13f8cfec
    Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/13f8cfec

    Branch: refs/heads/master
    Commit: 13f8cfece819bec7ea045db92c18c6d7fc3784d0
    Parents: 318c2ef
    Author: Xuefu Zhang <xzhang@cloudera.com>
    Authored: Tue Nov 3 19:41:17 2015 -0800
    Committer: Xuefu Zhang <xzhang@cloudera.com>
    Committed: Tue Nov 3 19:41:17 2015 -0800

    ----------------------------------------------------------------------
      .../hive/ql/exec/vector/VectorSerializeRow.java | 4 +-
      .../expressions/FilterStructColumnInList.java | 3 +-
      .../vector/expressions/StructColumnInList.java | 3 +-
      .../hive/ql/exec/vector/TestVectorSerDeRow.java | 19 +-
      .../test/results/clientpositive/acid_join.q.out | 2 +-
      .../alter_partition_change_col.q.out | 240 ++---
      .../clientpositive/alter_table_cascade.q.out | 40 +-
      .../clientpositive/ansi_sql_arithmetic.q.out | 2 +-
      .../results/clientpositive/avro_decimal.q.out | 10 +-
      .../clientpositive/avro_decimal_native.q.out | 10 +-
      .../clientpositive/cast_qualified_types.q.out | 2 +-
      .../results/clientpositive/decimal_1_1.q.out | 48 +-
      .../test/results/clientpositive/decimal_3.q.out | 514 +++++-----
      .../test/results/clientpositive/decimal_4.q.out | 144 +--
      .../test/results/clientpositive/decimal_5.q.out | 180 ++--
      .../test/results/clientpositive/decimal_6.q.out | 92 +-
      .../results/clientpositive/decimal_join2.q.out | 260 ++---
      .../clientpositive/decimal_precision.q.out | 170 ++--
      .../clientpositive/decimal_trailing.q.out | 42 +-
      .../results/clientpositive/decimal_udf.q.out | 960 +++++++++----------
      .../insert_nonacid_from_acid.q.out | 20 +-
      .../llap/hybridgrace_hashjoin_1.q.out | 204 ++--
      .../clientpositive/llap/mapjoin_decimal.q.out | 424 ++++----
      .../results/clientpositive/orc_file_dump.q.out | 6 +-
      .../clientpositive/orc_predicate_pushdown.q.out | 4 +-
      .../clientpositive/parquet_decimal.q.out | 16 +-
      .../clientpositive/parquet_ppd_boolean.q.out | 180 ++--
      .../clientpositive/parquet_ppd_char.q.out | 220 ++---
      .../clientpositive/parquet_ppd_date.q.out | 330 +++----
      .../clientpositive/parquet_ppd_decimal.q.out | 660 ++++++-------
      .../clientpositive/parquet_ppd_timestamp.q.out | 320 +++----
      .../clientpositive/parquet_ppd_varchar.q.out | 220 ++---
      .../parquet_predicate_pushdown.q.out | 4 +-
      .../results/clientpositive/serde_regex.q.out | 74 +-
      .../spark/avro_decimal_native.q.out | 10 +-
      .../clientpositive/spark/decimal_1_1.q.out | 48 +-
      .../clientpositive/spark/mapjoin_decimal.q.out | 424 ++++----
      .../spark/vector_between_in.q.out | 14 +-
      .../spark/vector_cast_constant.q.java1.7.out | 20 +-
      .../spark/vector_data_types.q.out | 4 +-
      .../spark/vector_decimal_aggregate.q.out | 32 +-
      .../spark/vector_decimal_mapjoin.q.out | 212 ++--
      .../clientpositive/sum_expr_with_order.q.out | 2 +-
      .../tez/hybridgrace_hashjoin_1.q.out | 204 ++--
      .../clientpositive/tez/mapjoin_decimal.q.out | 424 ++++----
      .../clientpositive/tez/update_all_types.q.out | 30 +-
      .../clientpositive/tez/vector_aggregate_9.q.out | 2 +-
      .../clientpositive/tez/vector_between_in.q.out | 14 +-
      .../tez/vector_cast_constant.q.java1.7.out | 20 +-
      .../clientpositive/tez/vector_data_types.q.out | 4 +-
      .../clientpositive/tez/vector_decimal_2.q.out | 4 +-
      .../clientpositive/tez/vector_decimal_3.q.out | 514 +++++-----
      .../clientpositive/tez/vector_decimal_4.q.out | 288 +++---
      .../clientpositive/tez/vector_decimal_5.q.out | 180 ++--
      .../clientpositive/tez/vector_decimal_6.q.out | 172 ++--
      .../tez/vector_decimal_aggregate.q.out | 32 +-
      .../tez/vector_decimal_cast.q.out | 20 +-
      .../tez/vector_decimal_expressions.q.out | 20 +-
      .../tez/vector_decimal_mapjoin.q.out | 212 ++--
      .../tez/vector_decimal_precision.q.out | 170 ++--
      .../tez/vector_decimal_round_2.q.out | 14 +-
      .../tez/vector_decimal_trailing.q.out | 42 +-
      .../clientpositive/tez/vector_decimal_udf.q.out | 960 +++++++++----------
      .../tez/vector_reduce_groupby_decimal.q.out | 98 +-
      .../clientpositive/update_all_types.q.out | 30 +-
      .../clientpositive/vector_aggregate_9.q.out | 2 +-
      .../clientpositive/vector_between_in.q.out | 14 +-
      .../vector_cast_constant.q.java1.7.out | 20 +-
      .../clientpositive/vector_data_types.q.out | 4 +-
      .../clientpositive/vector_decimal_2.q.out | 4 +-
      .../clientpositive/vector_decimal_3.q.out | 514 +++++-----
      .../clientpositive/vector_decimal_4.q.out | 288 +++---
      .../clientpositive/vector_decimal_5.q.out | 180 ++--
      .../clientpositive/vector_decimal_6.q.out | 172 ++--
      .../vector_decimal_aggregate.q.out | 32 +-
      .../clientpositive/vector_decimal_cast.q.out | 20 +-
      .../vector_decimal_expressions.q.out | 20 +-
      .../clientpositive/vector_decimal_mapjoin.q.out | 212 ++--
      .../vector_decimal_precision.q.out | 170 ++--
      .../clientpositive/vector_decimal_round_2.q.out | 14 +-
      .../vector_decimal_trailing.q.out | 42 +-
      .../clientpositive/vector_decimal_udf.q.out | 960 +++++++++----------
      .../vector_reduce_groupby_decimal.q.out | 98 +-
      .../clientpositive/windowing_decimal.q.out | 104 +-
      .../clientpositive/windowing_navfn.q.out | 20 +-
      .../results/clientpositive/windowing_rank.q.out | 60 +-
      .../clientpositive/windowing_windowspec3.q.out | 18 +-
      .../fast/BinarySortableSerializeWrite.java | 2 +-
      .../hadoop/hive/serde2/fast/SerializeWrite.java | 2 +-
      .../hive/serde2/lazy/LazyHiveDecimal.java | 4 +-
      .../hadoop/hive/serde2/lazy/LazyUtils.java | 3 +-
      .../lazy/fast/LazySimpleSerializeWrite.java | 14 +-
      .../fast/LazyBinarySerializeWrite.java | 2 +-
      .../apache/hadoop/hive/serde2/VerifyFast.java | 9 +-
      .../binarysortable/TestBinarySortableFast.java | 3 +-
      .../hive/serde2/lazy/TestLazySimpleFast.java | 3 +-
      .../serde2/lazybinary/TestLazyBinaryFast.java | 3 +-
      .../hadoop/hive/common/type/HiveDecimal.java | 11 +
      .../ql/exec/vector/DecimalColumnVector.java | 2 -
      99 files changed, 6331 insertions(+), 6342 deletions(-)
    ----------------------------------------------------------------------


    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorSerializeRow.java
    ----------------------------------------------------------------------
    diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorSerializeRow.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorSerializeRow.java
    index fe889b5..c98c260 100644
    --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorSerializeRow.java
    +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/VectorSerializeRow.java
    @@ -491,7 +491,7 @@ public final class VectorSerializeRow<T extends SerializeWrite> {

            if (colVector.isRepeating) {
              if (colVector.noNulls || !colVector.isNull[0]) {
    - serializeWrite.writeHiveDecimal(colVector.vector[0].getHiveDecimal());
    + serializeWrite.writeHiveDecimal(colVector.vector[0].getHiveDecimal(), colVector.scale);
                return true;
              } else {
                serializeWrite.writeNull();
    @@ -499,7 +499,7 @@ public final class VectorSerializeRow<T extends SerializeWrite> {
              }
            } else {
              if (colVector.noNulls || !colVector.isNull[batchIndex]) {
    - serializeWrite.writeHiveDecimal(colVector.vector[batchIndex].getHiveDecimal());
    + serializeWrite.writeHiveDecimal(colVector.vector[batchIndex].getHiveDecimal(), colVector.scale);
                return true;
              } else {
                serializeWrite.writeNull();

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FilterStructColumnInList.java
    ----------------------------------------------------------------------
    diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FilterStructColumnInList.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FilterStructColumnInList.java
    index 00f22bb..70b393c 100644
    --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FilterStructColumnInList.java
    +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/FilterStructColumnInList.java
    @@ -110,8 +110,9 @@ public class FilterStructColumnInList extends FilterStringColumnInList implement
                  break;

                case DECIMAL:
    + DecimalColumnVector decColVector = ((DecimalColumnVector) colVec);
                  binarySortableSerializeWrite.writeHiveDecimal(
    - ((DecimalColumnVector) colVec).vector[adjustedIndex].getHiveDecimal());
    + decColVector.vector[adjustedIndex].getHiveDecimal(), decColVector.scale);
                  break;

                default:

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/StructColumnInList.java
    ----------------------------------------------------------------------
    diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/StructColumnInList.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/StructColumnInList.java
    index 724497a..769c70a 100644
    --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/StructColumnInList.java
    +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/vector/expressions/StructColumnInList.java
    @@ -111,8 +111,9 @@ public class StructColumnInList extends StringColumnInList implements IStructInE
                  break;

                case DECIMAL:
    + DecimalColumnVector decColVector = ((DecimalColumnVector) colVec);
                  binarySortableSerializeWrite.writeHiveDecimal(
    - ((DecimalColumnVector) colVec).vector[adjustedIndex].getHiveDecimal());
    + decColVector.vector[adjustedIndex].getHiveDecimal(), decColVector.scale);
                  break;

                default:

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorSerDeRow.java
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorSerDeRow.java b/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorSerDeRow.java
    index 23e44f0..eaff732 100644
    --- a/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorSerDeRow.java
    +++ b/ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorSerDeRow.java
    @@ -57,21 +57,10 @@ import org.apache.hadoop.hive.serde2.lazy.fast.LazySimpleSerializeWrite;
      import org.apache.hadoop.hive.serde2.lazybinary.fast.LazyBinaryDeserializeRead;
      import org.apache.hadoop.hive.serde2.lazybinary.fast.LazyBinarySerializeWrite;
      import org.apache.hadoop.hive.serde2.objectinspector.PrimitiveObjectInspector.PrimitiveCategory;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableByteObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDateObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableDoubleObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableFloatObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableIntObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableLongObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableShortObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.primitive.WritableStringObjectInspector;
    -import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector;
      import org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils;
      import org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector;
    -import org.apache.hadoop.hive.serde2.typeinfo.CharTypeInfo;
      import org.apache.hadoop.hive.serde2.typeinfo.DecimalTypeInfo;
      import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo;
    -import org.apache.hadoop.hive.serde2.typeinfo.VarcharTypeInfo;
      import org.apache.hadoop.hive.serde2.fast.SerializeWrite;
      import org.apache.hadoop.io.BooleanWritable;
      import org.apache.hadoop.io.BytesWritable;
    @@ -415,10 +404,10 @@ public class TestVectorSerDeRow extends TestCase {
        private Output serializeRow(Object[] row, RandomRowObjectSource source, SerializeWrite serializeWrite) throws HiveException, IOException {
          Output output = new Output();
          serializeWrite.set(output);
    - PrimitiveCategory[] primitiveCategories = source.primitiveCategories();
    - for (int i = 0; i < primitiveCategories.length; i++) {
    + PrimitiveTypeInfo[] primitiveTypeInfos = source.primitiveTypeInfos();
    + for (int i = 0; i < primitiveTypeInfos.length; i++) {
            Object object = row[i];
    - PrimitiveCategory primitiveCategory = primitiveCategories[i];
    + PrimitiveCategory primitiveCategory = primitiveTypeInfos[i].getPrimitiveCategory();
            switch (primitiveCategory) {
            case BOOLEAN:
              {
    @@ -529,7 +518,7 @@ public class TestVectorSerDeRow extends TestCase {
              {
                HiveDecimalWritable expectedWritable = (HiveDecimalWritable) object;
                HiveDecimal value = expectedWritable.getHiveDecimal();
    - serializeWrite.writeHiveDecimal(value);
    + serializeWrite.writeHiveDecimal(value, ((DecimalTypeInfo)primitiveTypeInfos[i]).scale());
              }
              break;
            default:

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/acid_join.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/acid_join.q.out b/ql/src/test/results/clientpositive/acid_join.q.out
    index a1edb89..fcc7d75 100644
    --- a/ql/src/test/results/clientpositive/acid_join.q.out
    +++ b/ql/src/test/results/clientpositive/acid_join.q.out
    @@ -65,7 +65,7 @@ POSTHOOK: query: select * from acidjoin3 order by name
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@acidjoin3
      #### A masked pattern was here ####
    -aaa 35 3
    +aaa 35 3.00
      bbb 32 3.01
      ccc 32 3.02
      ddd 35 3.03

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/alter_partition_change_col.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/alter_partition_change_col.q.out b/ql/src/test/results/clientpositive/alter_partition_change_col.q.out
    index 50520aa..9e397c1 100644
    --- a/ql/src/test/results/clientpositive/alter_partition_change_col.q.out
    +++ b/ql/src/test/results/clientpositive/alter_partition_change_col.q.out
    @@ -213,16 +213,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=abc/p2=123
      #### A masked pattern was here ####
    -Beck 0 abc 123
    -Beck 77 abc 123
    -Beck 80 abc 123
    -Cluck 6 abc 123
    -Mary 33 abc 123
    -Mary 4 abc 123
    -Snow 56 abc 123
    -Tom -12 abc 123
    -Tom 19 abc 123
    -Tom 235 abc 123
    +Beck 0.0000 abc 123
    +Beck 77.0000 abc 123
    +Beck 80.0000 abc 123
    +Cluck 6.0000 abc 123
    +Mary 33.0000 abc 123
    +Mary 4.0000 abc 123
    +Snow 56.0000 abc 123
    +Tom -12.0000 abc 123
    +Tom 19.0000 abc 123
    +Tom 235.0000 abc 123
      PREHOOK: query: select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -233,16 +233,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 80 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 6 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 56 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 235 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 80.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 6.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 56.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 235.0000 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: -- now change the column type of the existing partition
      alter table alter_partition_change_col1 partition (p1='abc', p2='123') change c2 c2 decimal(14,4)
      PREHOOK: type: ALTERTABLE_RENAMECOL
    @@ -280,16 +280,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=abc/p2=123
      #### A masked pattern was here ####
    -Beck 0 abc 123
    -Beck 77.341 abc 123
    -Beck 79.9 abc 123
    -Cluck 5.96 abc 123
    -Mary 33.33 abc 123
    -Mary 4.329 abc 123
    -Snow 55.71 abc 123
    -Tom -12.25 abc 123
    -Tom 19 abc 123
    -Tom 234.79 abc 123
    +Beck 0.0000 abc 123
    +Beck 77.3410 abc 123
    +Beck 79.9000 abc 123
    +Cluck 5.9600 abc 123
    +Mary 33.3300 abc 123
    +Mary 4.3290 abc 123
    +Snow 55.7100 abc 123
    +Tom -12.2500 abc 123
    +Tom 19.0000 abc 123
    +Tom 234.7900 abc 123
      PREHOOK: query: select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -300,16 +300,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 80 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 6 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 56 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 235 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 80.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 6.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 56.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 235.0000 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: -- change column for default partition value
      alter table alter_partition_change_col1 partition (p1='__HIVE_DEFAULT_PARTITION__', p2='123') change c2 c2 decimal(14,4)
      PREHOOK: type: ALTERTABLE_RENAMECOL
    @@ -347,16 +347,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=abc/p2=123
      #### A masked pattern was here ####
    -Beck 0 abc 123
    -Beck 77.341 abc 123
    -Beck 79.9 abc 123
    -Cluck 5.96 abc 123
    -Mary 33.33 abc 123
    -Mary 4.329 abc 123
    -Snow 55.71 abc 123
    -Tom -12.25 abc 123
    -Tom 19 abc 123
    -Tom 234.79 abc 123
    +Beck 0.0000 abc 123
    +Beck 77.3410 abc 123
    +Beck 79.9000 abc 123
    +Cluck 5.9600 abc 123
    +Mary 33.3300 abc 123
    +Mary 4.3290 abc 123
    +Snow 55.7100 abc 123
    +Tom -12.2500 abc 123
    +Tom 19.0000 abc 123
    +Tom 234.7900 abc 123
      PREHOOK: query: select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -367,16 +367,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77.341 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 79.9 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 5.96 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33.33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4.329 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 55.71 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12.25 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 234.79 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.3410 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 79.9000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 5.9600 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.3300 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.3290 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 55.7100 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.2500 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 234.7900 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: -- Try out replace columns
      alter table alter_partition_change_col1 partition (p1='abc', p2='123') replace columns (c1 string)
      PREHOOK: type: ALTERTABLE_REPLACECOLS
    @@ -449,16 +449,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77.341 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 79.9 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 5.96 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33.33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4.329 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 55.71 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12.25 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 234.79 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.3410 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 79.9000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 5.9600 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.3300 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.3290 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 55.7100 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.2500 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 234.7900 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: alter table alter_partition_change_col1 replace columns (c1 string)
      PREHOOK: type: ALTERTABLE_REPLACECOLS
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -593,16 +593,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77.341 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 79.9 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 5.96 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33.33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4.329 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 55.71 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12.25 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 234.79 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.3410 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 79.9000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 5.9600 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.3300 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.3290 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 55.7100 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.2500 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 234.7900 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: alter table alter_partition_change_col1 partition (p1='abc', p2='123') add columns (c2 decimal(14,4))
      PREHOOK: type: ALTERTABLE_ADDCOLS
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -638,16 +638,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=abc/p2=123
      #### A masked pattern was here ####
    -Beck 0 abc 123
    -Beck 77.341 abc 123
    -Beck 79.9 abc 123
    -Cluck 5.96 abc 123
    -Mary 33.33 abc 123
    -Mary 4.329 abc 123
    -Snow 55.71 abc 123
    -Tom -12.25 abc 123
    -Tom 19 abc 123
    -Tom 234.79 abc 123
    +Beck 0.0000 abc 123
    +Beck 77.3410 abc 123
    +Beck 79.9000 abc 123
    +Cluck 5.9600 abc 123
    +Mary 33.3300 abc 123
    +Mary 4.3290 abc 123
    +Snow 55.7100 abc 123
    +Tom -12.2500 abc 123
    +Tom 19.0000 abc 123
    +Tom 234.7900 abc 123
      PREHOOK: query: select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -658,16 +658,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77.341 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 79.9 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 5.96 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33.33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4.329 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 55.71 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12.25 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 234.79 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.3410 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 79.9000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 5.9600 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.3300 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.3290 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 55.7100 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.2500 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 234.7900 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: -- Try changing column for all partitions at once
      alter table alter_partition_change_col1 partition (p1, p2='123') change column c2 c2 decimal(10,0)
      PREHOOK: type: ALTERTABLE_RENAMECOL
    @@ -724,16 +724,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=abc/p2=123
      #### A masked pattern was here ####
    -Beck 0 abc 123
    -Beck 77 abc 123
    -Beck 80 abc 123
    -Cluck 6 abc 123
    -Mary 33 abc 123
    -Mary 4 abc 123
    -Snow 56 abc 123
    -Tom -12 abc 123
    -Tom 19 abc 123
    -Tom 235 abc 123
    +Beck 0.0000 abc 123
    +Beck 77.0000 abc 123
    +Beck 80.0000 abc 123
    +Cluck 6.0000 abc 123
    +Mary 33.0000 abc 123
    +Mary 4.0000 abc 123
    +Snow 56.0000 abc 123
    +Tom -12.0000 abc 123
    +Tom 19.0000 abc 123
    +Tom 235.0000 abc 123
      PREHOOK: query: select * from alter_partition_change_col1 where p1='__HIVE_DEFAULT_PARTITION__'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_partition_change_col1
    @@ -744,13 +744,13 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_partition_change_col1
      POSTHOOK: Input: default@alter_partition_change_col1@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 80 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 6 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 56 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 235 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 80.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 6.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 56.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 235.0000 __HIVE_DEFAULT_PARTITION__ 123

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/alter_table_cascade.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/alter_table_cascade.q.out b/ql/src/test/results/clientpositive/alter_table_cascade.q.out
    index 3bf1a43..1d8204c 100644
    --- a/ql/src/test/results/clientpositive/alter_table_cascade.q.out
    +++ b/ql/src/test/results/clientpositive/alter_table_cascade.q.out
    @@ -833,16 +833,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_table_cascade
      POSTHOOK: Input: default@alter_table_cascade@p1=xyz/p2=123
      #### A masked pattern was here ####
    -Beck 0 xyz 123
    -Beck 77.341 xyz 123
    -Beck 79.9 xyz 123
    -Cluck 5.96 xyz 123
    -Mary 33.33 xyz 123
    -Mary 4.329 xyz 123
    -Snow 55.71 xyz 123
    -Tom -12.25 xyz 123
    -Tom 19 xyz 123
    -Tom 234.79 xyz 123
    +Beck 0.0000 xyz 123
    +Beck 77.3410 xyz 123
    +Beck 79.9000 xyz 123
    +Cluck 5.9600 xyz 123
    +Mary 33.3300 xyz 123
    +Mary 4.3290 xyz 123
    +Snow 55.7100 xyz 123
    +Tom -12.2500 xyz 123
    +Tom 19.0000 xyz 123
    +Tom 234.7900 xyz 123
      PREHOOK: query: select * from alter_table_cascade where p1='abc'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@alter_table_cascade
    @@ -873,16 +873,16 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@alter_table_cascade
      POSTHOOK: Input: default@alter_table_cascade@p1=__HIVE_DEFAULT_PARTITION__/p2=123
      #### A masked pattern was here ####
    -Beck 0 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 77.341 __HIVE_DEFAULT_PARTITION__ 123
    -Beck 79.9 __HIVE_DEFAULT_PARTITION__ 123
    -Cluck 5.96 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 33.33 __HIVE_DEFAULT_PARTITION__ 123
    -Mary 4.329 __HIVE_DEFAULT_PARTITION__ 123
    -Snow 55.71 __HIVE_DEFAULT_PARTITION__ 123
    -Tom -12.25 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 19 __HIVE_DEFAULT_PARTITION__ 123
    -Tom 234.79 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 0.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 77.3410 __HIVE_DEFAULT_PARTITION__ 123
    +Beck 79.9000 __HIVE_DEFAULT_PARTITION__ 123
    +Cluck 5.9600 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 33.3300 __HIVE_DEFAULT_PARTITION__ 123
    +Mary 4.3290 __HIVE_DEFAULT_PARTITION__ 123
    +Snow 55.7100 __HIVE_DEFAULT_PARTITION__ 123
    +Tom -12.2500 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 19.0000 __HIVE_DEFAULT_PARTITION__ 123
    +Tom 234.7900 __HIVE_DEFAULT_PARTITION__ 123
      PREHOOK: query: --

      drop table if exists alter_table_restrict

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/ansi_sql_arithmetic.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/ansi_sql_arithmetic.q.out b/ql/src/test/results/clientpositive/ansi_sql_arithmetic.q.out
    index 5e5a2f6..021c4ee 100644
    --- a/ql/src/test/results/clientpositive/ansi_sql_arithmetic.q.out
    +++ b/ql/src/test/results/clientpositive/ansi_sql_arithmetic.q.out
    @@ -44,7 +44,7 @@ POSTHOOK: query: select cast(key as int) / cast(key as int) from src limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@src
      #### A masked pattern was here ####
    -1
    +1.00000000000
      PREHOOK: query: -- With ansi sql arithmetic disabled, int / int => double
      explain select cast(key as int) / cast(key as int) from src limit 1
      PREHOOK: type: QUERY

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/avro_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/avro_decimal.q.out b/ql/src/test/results/clientpositive/avro_decimal.q.out
    index 7ba376e..64e65ca 100644
    --- a/ql/src/test/results/clientpositive/avro_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/avro_decimal.q.out
    @@ -106,9 +106,9 @@ Mary 4.33
      Cluck 5.96
      Tom -12.25
      Mary 33.33
    -Tom 19
    -Beck 0
    -Beck 79.9
    +Tom 19.00
    +Beck 0.00
    +Beck 79.90
      PREHOOK: query: DROP TABLE IF EXISTS avro_dec1
      PREHOOK: type: DROPTABLE
      POSTHOOK: query: DROP TABLE IF EXISTS avro_dec1
    @@ -175,10 +175,10 @@ POSTHOOK: Input: default@avro_dec1
      77.3
      55.7
      4.3
    -6
    +6.0
      12.3
      33.3
    -19
    +19.0
      3.2
      79.9
      PREHOOK: query: DROP TABLE dec

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/avro_decimal_native.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/avro_decimal_native.q.out b/ql/src/test/results/clientpositive/avro_decimal_native.q.out
    index 318be3d..cebc342 100644
    --- a/ql/src/test/results/clientpositive/avro_decimal_native.q.out
    +++ b/ql/src/test/results/clientpositive/avro_decimal_native.q.out
    @@ -92,9 +92,9 @@ Mary 4.33
      Cluck 5.96
      Tom -12.25
      Mary 33.33
    -Tom 19
    -Beck 0
    -Beck 79.9
    +Tom 19.00
    +Beck 0.00
    +Beck 79.90
      PREHOOK: query: DROP TABLE IF EXISTS avro_dec1
      PREHOOK: type: DROPTABLE
      POSTHOOK: query: DROP TABLE IF EXISTS avro_dec1
    @@ -143,10 +143,10 @@ POSTHOOK: Input: default@avro_dec1
      77.3
      55.7
      4.3
    -6
    +6.0
      12.3
      33.3
    -19
    +19.0
      3.2
      79.9
      PREHOOK: query: DROP TABLE dec

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/cast_qualified_types.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/cast_qualified_types.q.out b/ql/src/test/results/clientpositive/cast_qualified_types.q.out
    index 1924c5d..099a199 100644
    --- a/ql/src/test/results/clientpositive/cast_qualified_types.q.out
    +++ b/ql/src/test/results/clientpositive/cast_qualified_types.q.out
    @@ -18,4 +18,4 @@ limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@src
      #### A masked pattern was here ####
    -0 0 0
    +0.00 0 0

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_1_1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_1_1.q.out b/ql/src/test/results/clientpositive/decimal_1_1.q.out
    index b2704c6..46fbeb7 100644
    --- a/ql/src/test/results/clientpositive/decimal_1_1.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_1_1.q.out
    @@ -26,9 +26,9 @@ POSTHOOK: query: select * from decimal_1_1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_1_1
      #### A masked pattern was here ####
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
      0.1
      0.2
      0.9
    @@ -37,13 +37,13 @@ NULL
      0.3
      NULL
      NULL
    -0
    -0
    +0.0
    +0.0
      NULL
    -0
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
    +0.0
      -0.1
      -0.2
      -0.9
    @@ -52,10 +52,10 @@ NULL
      -0.3
      NULL
      NULL
    -0
    -0
    +0.0
    +0.0
      NULL
    -0
    +0.0
      PREHOOK: query: select d from decimal_1_1 order by d desc
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_1_1
    @@ -69,18 +69,18 @@ POSTHOOK: Input: default@decimal_1_1
      0.3
      0.2
      0.1
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
      -0.1
      -0.2
      -0.3

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_3.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_3.q.out b/ql/src/test/results/clientpositive/decimal_3.q.out
    index 8e9a30a..3ded9a7 100644
    --- a/ql/src/test/results/clientpositive/decimal_3.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_3.q.out
    @@ -33,43 +33,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -78,43 +78,43 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key DESC, value DESC
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -1234567890.12345678 1234567890
    -200 200
    -125.2 125
    -124 124
    -100 100
    -20 20
    -10 10
    -3.14 4
    -3.14 3
    -3.14 3
    -3.14 3
    -2 2
    -2 2
    -1.122 1
    -1.12 1
    -1 1
    -1 1
    -1 1
    -0.333 0
    -0.33 0
    -0.3 0
    -0.2 0
    -0.1 0
    -0.02 0
    -0.01 0
    -0 0
    -0 0
    -0 0
    --0.3 0
    --0.33 0
    --0.333 0
    --1.12 -1
    --1.12 -1
    --1.122 -11
    --1255.49 -1255
    --4400 4400
    --1234567890.123456789 -1234567890
    +1234567890.123456780000000000 1234567890
    +200.000000000000000000 200
    +125.200000000000000000 125
    +124.000000000000000000 124
    +100.000000000000000000 100
    +20.000000000000000000 20
    +10.000000000000000000 10
    +3.140000000000000000 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +2.000000000000000000 2
    +2.000000000000000000 2
    +1.122000000000000000 1
    +1.120000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +0.333000000000000000 0
    +0.330000000000000000 0
    +0.300000000000000000 0
    +0.200000000000000000 0
    +0.100000000000000000 0
    +0.020000000000000000 0
    +0.010000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +-0.300000000000000000 0
    +-0.330000000000000000 0
    +-0.333000000000000000 0
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-1.122000000000000000 -11
    +-1255.490000000000000000 -1255
    +-4400.000000000000000000 4400
    +-1234567890.123456789000000000 -1234567890
      NULL 0
      PREHOOK: query: SELECT * FROM DECIMAL_3 ORDER BY key, value
      PREHOOK: type: QUERY
    @@ -125,43 +125,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_3 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -171,34 +171,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL
    --1234567890.123456789
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    -1234567890.12345678
    +-1234567890.123456789000000000
    +-4400.000000000000000000
    +-1255.490000000000000000
    +-1.122000000000000000
    +-1.120000000000000000
    +-0.333000000000000000
    +-0.330000000000000000
    +-0.300000000000000000
    +0.000000000000000000
    +0.010000000000000000
    +0.020000000000000000
    +0.100000000000000000
    +0.200000000000000000
    +0.300000000000000000
    +0.330000000000000000
    +0.333000000000000000
    +1.000000000000000000
    +1.120000000000000000
    +1.122000000000000000
    +2.000000000000000000
    +3.140000000000000000
    +10.000000000000000000
    +20.000000000000000000
    +100.000000000000000000
    +124.000000000000000000
    +125.200000000000000000
    +200.000000000000000000
    +1234567890.123456780000000000
      PREHOOK: query: SELECT key, sum(value) FROM DECIMAL_3 GROUP BY key ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -208,34 +208,34 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -2
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 3
    -1.12 1
    -1.122 1
    -2 4
    -3.14 13
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -2
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 3
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 4
    +3.140000000000000000 13
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -244,23 +244,23 @@ POSTHOOK: query: SELECT value, sum(key) FROM DECIMAL_3 GROUP BY value ORDER BY v
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890 -1234567890.123456789
    --1255 -1255.49
    --11 -1.122
    --1 -2.24
    -0 0.33
    -1 5.242
    -2 4
    -3 9.42
    -4 3.14
    -10 10
    -20 20
    -100 100
    -124 124
    -125 125.2
    -200 200
    -4400 -4400
    -1234567890 1234567890.12345678
    +-1234567890 -1234567890.123456789000000000
    +-1255 -1255.490000000000000000
    +-11 -1.122000000000000000
    +-1 -2.240000000000000000
    +0 0.330000000000000000
    +1 5.242000000000000000
    +2 4.000000000000000000
    +3 9.420000000000000000
    +4 3.140000000000000000
    +10 10.000000000000000000
    +20 20.000000000000000000
    +100 100.000000000000000000
    +124 124.000000000000000000
    +125 125.200000000000000000
    +200 200.000000000000000000
    +4400 -4400.000000000000000000
    +1234567890 1234567890.123456780000000000
      PREHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) ORDER BY a.key, a.value, b.value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -269,71 +269,71 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) O
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890.123456789 -1234567890 -1234567890.123456789 -1234567890
    --4400 4400 -4400 4400
    --1255.49 -1255 -1255.49 -1255
    --1.122 -11 -1.122 -11
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --0.333 0 -0.333 0
    --0.33 0 -0.33 0
    --0.3 0 -0.3 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0.01 0 0.01 0
    -0.02 0 0.02 0
    -0.1 0 0.1 0
    -0.2 0 0.2 0
    -0.3 0 0.3 0
    -0.33 0 0.33 0
    -0.333 0 0.333 0
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1.12 1 1.12 1
    -1.122 1 1.122 1
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 4
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125.2 125 125.2 125
    -200 200 200 200
    -1234567890.12345678 1234567890 1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890 -1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400 -4400.000000000000000000 4400
    +-1255.490000000000000000 -1255 -1255.490000000000000000 -1255
    +-1.122000000000000000 -11 -1.122000000000000000 -11
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-0.333000000000000000 0 -0.333000000000000000 0
    +-0.330000000000000000 0 -0.330000000000000000 0
    +-0.300000000000000000 0 -0.300000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.010000000000000000 0 0.010000000000000000 0
    +0.020000000000000000 0 0.020000000000000000 0
    +0.100000000000000000 0 0.100000000000000000 0
    +0.200000000000000000 0 0.200000000000000000 0
    +0.300000000000000000 0 0.300000000000000000 0
    +0.330000000000000000 0 0.330000000000000000 0
    +0.333000000000000000 0 0.333000000000000000 0
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.120000000000000000 1 1.120000000000000000 1
    +1.122000000000000000 1 1.122000000000000000 1
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 4
    +10.000000000000000000 10 10.000000000000000000 10
    +20.000000000000000000 20 20.000000000000000000 20
    +100.000000000000000000 100 100.000000000000000000 100
    +124.000000000000000000 124 124.000000000000000000 124
    +125.200000000000000000 125 125.200000000000000000 125
    +200.000000000000000000 200 200.000000000000000000 200
    +1234567890.123456780000000000 1234567890 1234567890.123456780000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -342,10 +342,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.14 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_3
    @@ -354,10 +354,10 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 WHERE key=3.140 ORDER BY key, value
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
      PREHOOK: query: DROP TABLE DECIMAL_3
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_3

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_4.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_4.q.out b/ql/src/test/results/clientpositive/decimal_4.q.out
    index 50662af..8eb1de4 100644
    --- a/ql/src/test/results/clientpositive/decimal_4.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_4.q.out
    @@ -57,43 +57,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_1
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    +-1234567890.1234567890000000000000000 -1234567890
    +-4400.0000000000000000000000000 4400
    +-1255.4900000000000000000000000 -1255
    +-1.1220000000000000000000000 -11
    +-1.1200000000000000000000000 -1
    +-1.1200000000000000000000000 -1
    +-0.3330000000000000000000000 0
    +-0.3300000000000000000000000 0
    +-0.3000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0000000000000000000000000 0
    +0.0100000000000000000000000 0
    +0.0200000000000000000000000 0
    +0.1000000000000000000000000 0
    +0.2000000000000000000000000 0
    +0.3000000000000000000000000 0
    +0.3300000000000000000000000 0
    +0.3330000000000000000000000 0
      0.9999999999999999999999999 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +1.0000000000000000000000000 1
    +1.0000000000000000000000000 1
    +1.1200000000000000000000000 1
    +1.1220000000000000000000000 1
    +2.0000000000000000000000000 2
    +2.0000000000000000000000000 2
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 3
    +3.1400000000000000000000000 4
    +10.0000000000000000000000000 10
    +20.0000000000000000000000000 20
    +100.0000000000000000000000000 100
    +124.0000000000000000000000000 124
    +125.2000000000000000000000000 125
    +200.0000000000000000000000000 200
    +1234567890.1234567800000000000000000 1234567890
      PREHOOK: query: SELECT * FROM DECIMAL_4_2 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_4_2
    @@ -103,43 +103,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_4_2
      #### A masked pattern was here ####
      NULL NULL
    --1234567890.123456789 -3703703670.370370367
    --4400 -13200
    --1255.49 -3766.47
    --1.122 -3.366
    --1.12 -3.36
    --1.12 -3.36
    --0.333 -0.999
    --0.33 -0.99
    --0.3 -0.9
    -0 0
    -0 0
    -0 0
    -0.01 0.03
    -0.02 0.06
    -0.1 0.3
    -0.2 0.6
    -0.3 0.9
    -0.33 0.99
    -0.333 0.999
    +-1234567890.1234567890000000000000000 -3703703670.3703703670000000000000000
    +-4400.0000000000000000000000000 -13200.0000000000000000000000000
    +-1255.4900000000000000000000000 -3766.4700000000000000000000000
    +-1.1220000000000000000000000 -3.3660000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-1.1200000000000000000000000 -3.3600000000000000000000000
    +-0.3330000000000000000000000 -0.9990000000000000000000000
    +-0.3300000000000000000000000 -0.9900000000000000000000000
    +-0.3000000000000000000000000 -0.9000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0000000000000000000000000 0.0000000000000000000000000
    +0.0100000000000000000000000 0.0300000000000000000000000
    +0.0200000000000000000000000 0.0600000000000000000000000
    +0.1000000000000000000000000 0.3000000000000000000000000
    +0.2000000000000000000000000 0.6000000000000000000000000
    +0.3000000000000000000000000 0.9000000000000000000000000
    +0.3300000000000000000000000 0.9900000000000000000000000
    +0.3330000000000000000000000 0.9990000000000000000000000
      0.9999999999999999999999999 2.9999999999999999999999997
    -1 3
    -1 3
    -1.12 3.36
    -1.122 3.366
    -2 6
    -2 6
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -3.14 9.42
    -10 30
    -20 60
    -100 300
    -124 372
    -125.2 375.6
    -200 600
    -1234567890.12345678 3703703670.37037034
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.0000000000000000000000000 3.0000000000000000000000000
    +1.1200000000000000000000000 3.3600000000000000000000000
    +1.1220000000000000000000000 3.3660000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +2.0000000000000000000000000 6.0000000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +3.1400000000000000000000000 9.4200000000000000000000000
    +10.0000000000000000000000000 30.0000000000000000000000000
    +20.0000000000000000000000000 60.0000000000000000000000000
    +100.0000000000000000000000000 300.0000000000000000000000000
    +124.0000000000000000000000000 372.0000000000000000000000000
    +125.2000000000000000000000000 375.6000000000000000000000000
    +200.0000000000000000000000000 600.0000000000000000000000000
    +1234567890.1234567800000000000000000 3703703670.3703703400000000000000000
      PREHOOK: query: DROP TABLE DECIMAL_4_1
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_4_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_5.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_5.q.out b/ql/src/test/results/clientpositive/decimal_5.q.out
    index 0f24b8a..0c46538 100644
    --- a/ql/src/test/results/clientpositive/decimal_5.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_5.q.out
    @@ -35,41 +35,41 @@ POSTHOOK: Input: default@decimal_5
      NULL
      NULL
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1
    -1
    -1.12
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT DISTINCT key FROM DECIMAL_5 ORDER BY key
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -79,32 +79,32 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
    --4400
    --1255.49
    --1.122
    --1.12
    --0.333
    --0.33
    --0.3
    -0
    -0.01
    -0.02
    -0.1
    -0.2
    -0.3
    -0.33
    -0.333
    -1
    -1.12
    -1.122
    -2
    -3.14
    -10
    -20
    -100
    -124
    -125.2
    -200
    +-4400.00000
    +-1255.49000
    +-1.12200
    +-1.12000
    +-0.33300
    +-0.33000
    +-0.30000
    +0.00000
    +0.01000
    +0.02000
    +0.10000
    +0.20000
    +0.30000
    +0.33000
    +0.33300
    +1.00000
    +1.12000
    +1.12200
    +2.00000
    +3.14000
    +10.00000
    +20.00000
    +100.00000
    +124.00000
    +125.20000
    +200.00000
      PREHOOK: query: SELECT cast(key as decimal) FROM DECIMAL_5
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_5
    @@ -161,40 +161,40 @@ POSTHOOK: Input: default@decimal_5
      #### A masked pattern was here ####
      NULL
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    +0.000
    +0.000
    +100.000
    +10.000
    +1.000
    +0.100
    +0.010
    +200.000
    +20.000
    +2.000
    +0.000
    +0.200
    +0.020
    +0.300
    +0.330
      0.333
    --0.3
    --0.33
    +-0.300
    +-0.330
      -0.333
    -1
    -2
    -3.14
    --1.12
    --1.12
    +1.000
    +2.000
    +3.140
    +-1.120
    +-1.120
      -1.122
    -1.12
    +1.120
      1.122
    -124
    -125.2
    +124.000
    +125.200
      NULL
    -3.14
    -3.14
    -3.14
    -1
    +3.140
    +3.140
    +3.140
    +1.000
      NULL
      NULL
      PREHOOK: query: DROP TABLE DECIMAL_5

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_6.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_6.q.out b/ql/src/test/results/clientpositive/decimal_6.q.out
    index 0344fa9..e1ce600 100644
    --- a/ql/src/test/results/clientpositive/decimal_6.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_6.q.out
    @@ -78,54 +78,54 @@ NULL
      NULL
      NULL
      NULL
    --1234567890.1235
    --4400
    --4400
    --1255.49
    --1255.49
    --1.122
    --1.122
    --1.12
    --1.12
    --0.333
    --0.333
    --0.3
    --0.3
    -0
    -0
    -0
    -0
    -0.333
    -0.333
    -1
    -1
    -1
    -1
    -1.12
    -1.12
    -1.122
    -1.122
    -2
    -2
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -3.14
    -10
    -10
    -10.7343
    +-1234567890.12350
    +-4400.00000
    +-4400.00000
    +-1255.49000
    +-1255.49000
    +-1.12200
    +-1.12200
    +-1.12000
    +-1.12000
    +-0.33300
    +-0.33300
    +-0.30000
    +-0.30000
    +0.00000
    +0.00000
    +0.00000
    +0.00000
    +0.33300
    +0.33300
    +1.00000
    +1.00000
    +1.00000
    +1.00000
    +1.12000
    +1.12000
    +1.12200
    +1.12200
    +2.00000
    +2.00000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +3.14000
    +10.00000
    +10.00000
    +10.73430
      10.73433
    -124
    -124
    -125.2
    -125.2
    +124.00000
    +124.00000
    +125.20000
    +125.20000
      23232.23435
    -23232.2344
    -2389432.2375
    -2389432.2375
    -1234567890.1235
    +23232.23440
    +2389432.23750
    +2389432.23750
    +1234567890.12350
      PREHOOK: query: CREATE TABLE DECIMAL_6_3 AS SELECT key + 5.5 AS k, value * 11 AS v from DECIMAL_6_1 ORDER BY v
      PREHOOK: type: CREATETABLE_AS_SELECT
      PREHOOK: Input: default@decimal_6_1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_join2.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_join2.q.out b/ql/src/test/results/clientpositive/decimal_join2.q.out
    index 604f99b..a3ca231 100644
    --- a/ql/src/test/results/clientpositive/decimal_join2.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_join2.q.out
    @@ -132,71 +132,71 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) O
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890.123456789 -1234567890 -1234567890.123456789 -1234567890
    --4400 4400 -4400 4400
    --1255.49 -1255 -1255.49 -1255
    --1.122 -11 -1.122 -11
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --0.333 0 -0.333 0
    --0.33 0 -0.33 0
    --0.3 0 -0.3 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0.01 0 0.01 0
    -0.02 0 0.02 0
    -0.1 0 0.1 0
    -0.2 0 0.2 0
    -0.3 0 0.3 0
    -0.33 0 0.33 0
    -0.333 0 0.333 0
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1.12 1 1.12 1
    -1.122 1 1.122 1
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 4
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125.2 125 125.2 125
    -200 200 200 200
    -1234567890.12345678 1234567890 1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890 -1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400 -4400.000000000000000000 4400
    +-1255.490000000000000000 -1255 -1255.490000000000000000 -1255
    +-1.122000000000000000 -11 -1.122000000000000000 -11
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-0.333000000000000000 0 -0.333000000000000000 0
    +-0.330000000000000000 0 -0.330000000000000000 0
    +-0.300000000000000000 0 -0.300000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.010000000000000000 0 0.010000000000000000 0
    +0.020000000000000000 0 0.020000000000000000 0
    +0.100000000000000000 0 0.100000000000000000 0
    +0.200000000000000000 0 0.200000000000000000 0
    +0.300000000000000000 0 0.300000000000000000 0
    +0.330000000000000000 0 0.330000000000000000 0
    +0.333000000000000000 0 0.333000000000000000 0
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.120000000000000000 1 1.120000000000000000 1
    +1.122000000000000000 1 1.122000000000000000 1
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 4
    +10.000000000000000000 10 10.000000000000000000 10
    +20.000000000000000000 20 20.000000000000000000 20
    +100.000000000000000000 100 100.000000000000000000 100
    +124.000000000000000000 124 124.000000000000000000 124
    +125.200000000000000000 125 125.200000000000000000 125
    +200.000000000000000000 200 200.000000000000000000 200
    +1234567890.123456780000000000 1234567890 1234567890.123456780000000000 1234567890
      PREHOOK: query: EXPLAIN
      SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) ORDER BY a.key, a.value, b.key, b.value
      PREHOOK: type: QUERY
    @@ -282,71 +282,71 @@ POSTHOOK: query: SELECT * FROM DECIMAL_3 a JOIN DECIMAL_3 b ON (a.key = b.key) O
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_3
      #### A masked pattern was here ####
    --1234567890.123456789 -1234567890 -1234567890.123456789 -1234567890
    --4400 4400 -4400 4400
    --1255.49 -1255 -1255.49 -1255
    --1.122 -11 -1.122 -11
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --1.12 -1 -1.12 -1
    --0.333 0 -0.333 0
    --0.33 0 -0.33 0
    --0.3 0 -0.3 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0 0 0 0
    -0.01 0 0.01 0
    -0.02 0 0.02 0
    -0.1 0 0.1 0
    -0.2 0 0.2 0
    -0.3 0 0.3 0
    -0.33 0 0.33 0
    -0.333 0 0.333 0
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1 1 1 1
    -1.12 1 1.12 1
    -1.122 1 1.122 1
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -2 2 2 2
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 3
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 3 3.14 4
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 3
    -3.14 4 3.14 4
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125.2 125 125.2 125
    -200 200 200 200
    -1234567890.12345678 1234567890 1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890 -1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400 -4400.000000000000000000 4400
    +-1255.490000000000000000 -1255 -1255.490000000000000000 -1255
    +-1.122000000000000000 -11 -1.122000000000000000 -11
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-1.120000000000000000 -1 -1.120000000000000000 -1
    +-0.333000000000000000 0 -0.333000000000000000 0
    +-0.330000000000000000 0 -0.330000000000000000 0
    +-0.300000000000000000 0 -0.300000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.000000000000000000 0 0.000000000000000000 0
    +0.010000000000000000 0 0.010000000000000000 0
    +0.020000000000000000 0 0.020000000000000000 0
    +0.100000000000000000 0 0.100000000000000000 0
    +0.200000000000000000 0 0.200000000000000000 0
    +0.300000000000000000 0 0.300000000000000000 0
    +0.330000000000000000 0 0.330000000000000000 0
    +0.333000000000000000 0 0.333000000000000000 0
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.000000000000000000 1 1.000000000000000000 1
    +1.120000000000000000 1 1.120000000000000000 1
    +1.122000000000000000 1 1.122000000000000000 1
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +2.000000000000000000 2 2.000000000000000000 2
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 3
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 3 3.140000000000000000 4
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 3
    +3.140000000000000000 4 3.140000000000000000 4
    +10.000000000000000000 10 10.000000000000000000 10
    +20.000000000000000000 20 20.000000000000000000 20
    +100.000000000000000000 100 100.000000000000000000 100
    +124.000000000000000000 124 124.000000000000000000 124
    +125.200000000000000000 125 125.200000000000000000 125
    +200.000000000000000000 200 200.000000000000000000 200
    +1234567890.123456780000000000 1234567890 1234567890.123456780000000000 1234567890
      PREHOOK: query: DROP TABLE DECIMAL_3_txt
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_3_txt

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_precision.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_precision.q.out b/ql/src/test/results/clientpositive/decimal_precision.q.out
    index 69a6045..5542b40 100644
    --- a/ql/src/test/results/clientpositive/decimal_precision.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_precision.q.out
    @@ -76,13 +76,13 @@ NULL
      NULL
      NULL
      NULL
    -0
    -0
    -0
    -0
    -0
    -0.123456789
    -0.123456789
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.1234567890
    +0.1234567890
      1.2345678901
      1.2345678901
      1.2345678901
    @@ -99,14 +99,14 @@ NULL
      12345.6789012346
      123456.7890123456
      123456.7890123457
    -1234567.890123456
    +1234567.8901234560
      1234567.8901234568
    -12345678.90123456
    +12345678.9012345600
      12345678.9012345679
    -123456789.0123456
    +123456789.0123456000
      123456789.0123456789
    -1234567890.123456
    -1234567890.123456789
    +1234567890.1234560000
    +1234567890.1234567890
      PREHOOK: query: SELECT dec, dec + 1, dec - 1 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -159,13 +159,13 @@ NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0 1 -1
    -0.123456789 1.123456789 -0.876543211
    -0.123456789 1.123456789 -0.876543211
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.0000000000 1.0000000000 -1.0000000000
    +0.1234567890 1.1234567890 -0.8765432110
    +0.1234567890 1.1234567890 -0.8765432110
      1.2345678901 2.2345678901 0.2345678901
      1.2345678901 2.2345678901 0.2345678901
      1.2345678901 2.2345678901 0.2345678901
    @@ -182,14 +182,14 @@ NULL NULL NULL
      12345.6789012346 12346.6789012346 12344.6789012346
      123456.7890123456 123457.7890123456 123455.7890123456
      123456.7890123457 123457.7890123457 123455.7890123457
    -1234567.890123456 1234568.890123456 1234566.890123456
    +1234567.8901234560 1234568.8901234560 1234566.8901234560
      1234567.8901234568 1234568.8901234568 1234566.8901234568
    -12345678.90123456 12345679.90123456 12345677.90123456
    +12345678.9012345600 12345679.9012345600 12345677.9012345600
      12345678.9012345679 12345679.9012345679 12345677.9012345679
    -123456789.0123456 123456790.0123456 123456788.0123456
    +123456789.0123456000 123456790.0123456000 123456788.0123456000
      123456789.0123456789 123456790.0123456789 123456788.0123456789
    -1234567890.123456 1234567891.123456 1234567889.123456
    -1234567890.123456789 1234567891.123456789 1234567889.123456789
    +1234567890.1234560000 1234567891.1234560000 1234567889.1234560000
    +1234567890.1234567890 1234567891.1234567890 1234567889.1234567890
      PREHOOK: query: SELECT dec, dec * 2, dec / 3 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -242,37 +242,37 @@ NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
      NULL NULL NULL
    -0 0 0
    -0 0 0
    -0 0 0
    -0 0 0
    -0 0 0
    -0.123456789 0.246913578 0.041152263
    -0.123456789 0.246913578 0.041152263
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.0000000000 0.0000000000 0.000000000000
    +0.1234567890 0.2469135780 0.041152263000
    +0.1234567890 0.2469135780 0.041152263000
      1.2345678901 2.4691357802 0.411522630033
      1.2345678901 2.4691357802 0.411522630033
      1.2345678901 2.4691357802 0.411522630033
    -12.3456789012 24.6913578024 4.1152263004
    -12.3456789012 24.6913578024 4.1152263004
    -12.3456789012 24.6913578024 4.1152263004
    -123.4567890123 246.9135780246 41.1522630041
    -123.4567890123 246.9135780246 41.1522630041
    -123.4567890123 246.9135780246 41.1522630041
    -1234.5678901235 2469.135780247 411.522630041167
    -1234.5678901235 2469.135780247 411.522630041167
    -1234.5678901235 2469.135780247 411.522630041167
    +12.3456789012 24.6913578024 4.115226300400
    +12.3456789012 24.6913578024 4.115226300400
    +12.3456789012 24.6913578024 4.115226300400
    +123.4567890123 246.9135780246 41.152263004100
    +123.4567890123 246.9135780246 41.152263004100
    +123.4567890123 246.9135780246 41.152263004100
    +1234.5678901235 2469.1357802470 411.522630041167
    +1234.5678901235 2469.1357802470 411.522630041167
    +1234.5678901235 2469.1357802470 411.522630041167
      12345.6789012346 24691.3578024692 4115.226300411533
      12345.6789012346 24691.3578024692 4115.226300411533
    -123456.7890123456 246913.5780246912 41152.2630041152
    +123456.7890123456 246913.5780246912 41152.263004115200
      123456.7890123457 246913.5780246914 41152.263004115233
    -1234567.890123456 2469135.780246912 411522.630041152
    +1234567.8901234560 2469135.7802469120 411522.630041152000
      1234567.8901234568 2469135.7802469136 411522.630041152267
    -12345678.90123456 24691357.80246912 4115226.30041152
    +12345678.9012345600 24691357.8024691200 4115226.300411520000
      12345678.9012345679 24691357.8024691358 4115226.300411522633
    -123456789.0123456 246913578.0246912 41152263.0041152
    -123456789.0123456789 246913578.0246913578 41152263.0041152263
    -1234567890.123456 2469135780.246912 411522630.041152
    -1234567890.123456789 2469135780.246913578 411522630.041152263
    +123456789.0123456000 246913578.0246912000 41152263.004115200000
    +123456789.0123456789 246913578.0246913578 41152263.004115226300
    +1234567890.1234560000 2469135780.2469120000 411522630.041152000000
    +1234567890.1234567890 2469135780.2469135780 411522630.041152263000
      PREHOOK: query: SELECT dec, dec / 9 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -325,13 +325,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.013717421
    -0.123456789 0.013717421
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.0000000000 0.000000000000
    +0.1234567890 0.013717421000
    +0.1234567890 0.013717421000
      1.2345678901 0.137174210011
      1.2345678901 0.137174210011
      1.2345678901 0.137174210011
    @@ -348,14 +348,14 @@ NULL NULL
      12345.6789012346 1371.742100137178
      123456.7890123456 13717.421001371733
      123456.7890123457 13717.421001371744
    -1234567.890123456 137174.210013717333
    +1234567.8901234560 137174.210013717333
      1234567.8901234568 137174.210013717422
    -12345678.90123456 1371742.100137173333
    +12345678.9012345600 1371742.100137173333
      12345678.9012345679 1371742.100137174211
    -123456789.0123456 13717421.001371733333
    -123456789.0123456789 13717421.0013717421
    -1234567890.123456 137174210.013717333333
    -1234567890.123456789 137174210.013717421
    +123456789.0123456000 13717421.001371733333
    +123456789.0123456789 13717421.001371742100
    +1234567890.1234560000 137174210.013717333333
    +1234567890.1234567890 137174210.013717421000
      PREHOOK: query: SELECT dec, dec / 27 FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -408,13 +408,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.0045724736667
    -0.123456789 0.0045724736667
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.0000000000 0.0000000000000
    +0.1234567890 0.0045724736667
    +0.1234567890 0.0045724736667
      1.2345678901 0.0457247366704
      1.2345678901 0.0457247366704
      1.2345678901 0.0457247366704
    @@ -431,14 +431,14 @@ NULL NULL
      12345.6789012346 457.2473667123926
      123456.7890123456 4572.4736671239111
      123456.7890123457 4572.4736671239148
    -1234567.890123456 45724.7366712391111
    +1234567.8901234560 45724.7366712391111
      1234567.8901234568 45724.7366712391407
    -12345678.90123456 457247.3667123911111
    +12345678.9012345600 457247.3667123911111
      12345678.9012345679 457247.3667123914037
    -123456789.0123456 4572473.6671239111111
    +123456789.0123456000 4572473.6671239111111
      123456789.0123456789 4572473.6671239140333
    -1234567890.123456 45724736.6712391111111
    -1234567890.123456789 45724736.6712391403333
    +1234567890.1234560000 45724736.6712391111111
    +1234567890.1234567890 45724736.6712391403333
      PREHOOK: query: SELECT dec, dec * dec FROM DECIMAL_PRECISION ORDER BY dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision
    @@ -491,13 +491,13 @@ NULL NULL
      NULL NULL
      NULL NULL
      NULL NULL
    -0 0
    -0 0
    -0 0
    -0 0
    -0 0
    -0.123456789 0.015241578750190521
    -0.123456789 0.015241578750190521
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.0000000000 0.00000000000000000000
    +0.1234567890 0.01524157875019052100
    +0.1234567890 0.01524157875019052100
      1.2345678901 1.52415787526596567801
      1.2345678901 1.52415787526596567801
      1.2345678901 1.52415787526596567801
    @@ -514,14 +514,14 @@ NULL NULL
      12345.6789012346 152415787.53238916034140423716
      123456.7890123456 15241578753.23881726870921383936
      123456.7890123457 15241578753.23884196006701630849
    -1234567.890123456 1524157875323.881726870921383936
    +1234567.8901234560 1524157875323.88172687092138393600
      1234567.8901234568 1524157875323.88370217954558146624
    -12345678.90123456 152415787532388.1726870921383936
    +12345678.9012345600 152415787532388.17268709213839360000
      12345678.9012345679 152415787532388.36774881877789971041
    -123456789.0123456 15241578753238817.26870921383936
    +123456789.0123456000 15241578753238817.26870921383936000000
      123456789.0123456789 15241578753238836.75019051998750190521
    -1234567890.123456 NULL
    -1234567890.123456789 NULL
    +1234567890.1234560000 NULL
    +1234567890.1234567890 NULL
      PREHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT avg(dec), sum(dec) FROM DECIMAL_PRECISION
    @@ -613,7 +613,7 @@ POSTHOOK: query: SELECT MIN(cast('12345678901234567890.12345678' as decimal(38,1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_precision
      #### A masked pattern was here ####
    -12345678901234567890.12345678
    +12345678901234567890.123456780000000000
      PREHOOK: query: SELECT COUNT(cast('12345678901234567890.12345678' as decimal(38,18))) FROM DECIMAL_PRECISION
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_precision

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_trailing.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_trailing.q.out b/ql/src/test/results/clientpositive/decimal_trailing.q.out
    index 6cfe282..1b70737 100644
    --- a/ql/src/test/results/clientpositive/decimal_trailing.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_trailing.q.out
    @@ -40,16 +40,16 @@ POSTHOOK: query: SELECT * FROM DECIMAL_TRAILING ORDER BY id
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_trailing
      #### A masked pattern was here ####
    -0 0 0
    -1 0 0
    +0 0.0000 0.00000000
    +1 0.0000 0.00000000
      2 NULL NULL
    -3 1 1
    -4 10 10
    -5 100 100
    -6 1000 1000
    -7 10000 10000
    -8 100000 100000
    -9 NULL 1000000
    +3 1.0000 1.00000000
    +4 10.0000 10.00000000
    +5 100.0000 100.00000000
    +6 1000.0000 1000.00000000
    +7 10000.0000 10000.00000000
    +8 100000.0000 100000.00000000
    +9 NULL 1000000.00000000
      10 NULL NULL
      11 NULL NULL
      12 NULL NULL
    @@ -58,18 +58,18 @@ POSTHOOK: Input: default@decimal_trailing
      15 NULL NULL
      16 NULL NULL
      17 NULL NULL
    -18 1 1
    -19 10 10
    -20 100 100
    -21 1000 1000
    -22 100000 10000
    -23 0 0
    -24 0 0
    -25 0 0
    -26 0 0
    -27 0 0
    -28 12313.2 134134.312525
    -29 99999.999 134134.31242553
    +18 1.0000 1.00000000
    +19 10.0000 10.00000000
    +20 100.0000 100.00000000
    +21 1000.0000 1000.00000000
    +22 100000.0000 10000.00000000
    +23 0.0000 0.00000000
    +24 0.0000 0.00000000
    +25 0.0000 0.00000000
    +26 0.0000 0.00000000
    +27 0.0000 0.00000000
    +28 12313.2000 134134.31252500
    +29 99999.9990 134134.31242553
      PREHOOK: query: DROP TABLE DECIMAL_TRAILING
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_trailing
  • Xuefu at Nov 4, 2015 at 3:41 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_decimal.q.out b/ql/src/test/results/clientpositive/parquet_ppd_decimal.q.out
    index 7c17733..a30820e 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_decimal.q.out
    @@ -28,11 +28,11 @@ select * from newtypestbl where d=0.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d=0.22
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -41,11 +41,11 @@ POSTHOOK: query: select * from newtypestbl where d=0.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d='0.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -54,11 +54,11 @@ POSTHOOK: query: select * from newtypestbl where d='0.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d='0.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -67,11 +67,11 @@ POSTHOOK: query: select * from newtypestbl where d='0.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d=cast('0.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -80,11 +80,11 @@ POSTHOOK: query: select * from newtypestbl where d=cast('0.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d=cast('0.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -93,11 +93,11 @@ POSTHOOK: query: select * from newtypestbl where d=cast('0.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d!=0.22
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -106,11 +106,11 @@ POSTHOOK: query: select * from newtypestbl where d!=0.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d!=0.22
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -119,11 +119,11 @@ POSTHOOK: query: select * from newtypestbl where d!=0.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d!='0.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -132,11 +132,11 @@ POSTHOOK: query: select * from newtypestbl where d!='0.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d!='0.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -145,11 +145,11 @@ POSTHOOK: query: select * from newtypestbl where d!='0.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d!=cast('0.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -158,11 +158,11 @@ POSTHOOK: query: select * from newtypestbl where d!=cast('0.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d!=cast('0.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -171,11 +171,11 @@ POSTHOOK: query: select * from newtypestbl where d!=cast('0.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<11.22
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -184,11 +184,11 @@ POSTHOOK: query: select * from newtypestbl where d<11.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<11.22
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -197,11 +197,11 @@ POSTHOOK: query: select * from newtypestbl where d<11.22
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<'11.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -210,11 +210,11 @@ POSTHOOK: query: select * from newtypestbl where d<'11.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<'11.22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -223,11 +223,11 @@ POSTHOOK: query: select * from newtypestbl where d<'11.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<cast('11.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -236,11 +236,11 @@ POSTHOOK: query: select * from newtypestbl where d<cast('11.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<cast('11.22' as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -249,11 +249,11 @@ POSTHOOK: query: select * from newtypestbl where d<cast('11.22' as float)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -262,11 +262,11 @@ POSTHOOK: query: select * from newtypestbl where d<1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -275,11 +275,11 @@ POSTHOOK: query: select * from newtypestbl where d<1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<=11.22 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -288,16 +288,16 @@ POSTHOOK: query: select * from newtypestbl where d<=11.22 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=11.22 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -306,16 +306,16 @@ POSTHOOK: query: select * from newtypestbl where d<=11.22 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<='11.22' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -324,16 +324,16 @@ POSTHOOK: query: select * from newtypestbl where d<='11.22' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<='11.22' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -342,16 +342,16 @@ POSTHOOK: query: select * from newtypestbl where d<='11.22' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=cast('11.22' as float) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -360,16 +360,16 @@ POSTHOOK: query: select * from newtypestbl where d<=cast('11.22' as float) sort
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=cast('11.22' as float) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -378,16 +378,16 @@ POSTHOOK: query: select * from newtypestbl where d<=cast('11.22' as float) sort
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=cast('11.22' as decimal)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -396,11 +396,11 @@ POSTHOOK: query: select * from newtypestbl where d<=cast('11.22' as decimal)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<=cast('11.22' as decimal)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -409,11 +409,11 @@ POSTHOOK: query: select * from newtypestbl where d<=cast('11.22' as decimal)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d<=11.22BD sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -422,16 +422,16 @@ POSTHOOK: query: select * from newtypestbl where d<=11.22BD sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=11.22BD sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -440,16 +440,16 @@ POSTHOOK: query: select * from newtypestbl where d<=11.22BD sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=12 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -458,16 +458,16 @@ POSTHOOK: query: select * from newtypestbl where d<=12 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d<=12 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -476,16 +476,16 @@ POSTHOOK: query: select * from newtypestbl where d<=12 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d in ('0.22', '1.0')
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -494,11 +494,11 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.22', '1.0')
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d in ('0.22', '1.0')
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -507,11 +507,11 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.22', '1.0')
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d in ('0.22', '11.22') sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -520,16 +520,16 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.22', '11.22') sort by
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d in ('0.22', '11.22') sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -538,16 +538,16 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.22', '11.22') sort by
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d in ('0.9', '1.0')
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -572,11 +572,11 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.9', 0.22)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d in ('0.9', 0.22)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -585,11 +585,11 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.9', 0.22)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d in ('0.9', 0.22, cast('11.22' as float)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -598,16 +598,16 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.9', 0.22, cast('11.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d in ('0.9', 0.22, cast('11.22' as float)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -616,16 +616,16 @@ POSTHOOK: query: select * from newtypestbl where d in ('0.9', 0.22, cast('11.22'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d between 0 and 1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -634,11 +634,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 0 and 1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -647,11 +647,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 0 and 1000 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -660,16 +660,16 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and 1000 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d between 0 and 1000 sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -678,16 +678,16 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and 1000 sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d between 0 and '2.0'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -696,11 +696,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and '2.0'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 0 and '2.0'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -709,11 +709,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and '2.0'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 0 and cast(3 as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -722,11 +722,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and cast(3 as float
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 0 and cast(3 as float)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -735,11 +735,11 @@ POSTHOOK: query: select * from newtypestbl where d between 0 and cast(3 as float
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where d between 1 and cast(30 as char(10))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -748,11 +748,11 @@ POSTHOOK: query: select * from newtypestbl where d between 1 and cast(30 as char
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where d between 1 and cast(30 as char(10))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -761,8 +761,8 @@ POSTHOOK: query: select * from newtypestbl where d between 1 and cast(30 as char
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_timestamp.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_timestamp.q.out b/ql/src/test/results/clientpositive/parquet_ppd_timestamp.q.out
    index e314c10..3b3e5b7 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_timestamp.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_timestamp.q.out
    @@ -28,11 +28,11 @@ select * from newtypestbl where cast(ts as string)='2011-01-01 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where cast(ts as string)='2011-01-01 01:01:01'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -41,11 +41,11 @@ POSTHOOK: query: select * from newtypestbl where cast(ts as string)='2011-01-01
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -54,11 +54,11 @@ POSTHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -67,11 +67,11 @@ POSTHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' as varchar(20))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -80,11 +80,11 @@ POSTHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' as varchar(20))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -93,11 +93,11 @@ POSTHOOK: query: select * from newtypestbl where ts=cast('2011-01-01 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts!=cast('2011-01-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -106,11 +106,11 @@ POSTHOOK: query: select * from newtypestbl where ts!=cast('2011-01-01 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts!=cast('2011-01-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -119,11 +119,11 @@ POSTHOOK: query: select * from newtypestbl where ts!=cast('2011-01-01 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<cast('2011-01-20 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -132,11 +132,11 @@ POSTHOOK: query: select * from newtypestbl where ts<cast('2011-01-20 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<cast('2011-01-20 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -145,11 +145,11 @@ POSTHOOK: query: select * from newtypestbl where ts<cast('2011-01-20 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<cast('2011-01-22 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -158,16 +158,16 @@ POSTHOOK: query: select * from newtypestbl where ts<cast('2011-01-22 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<cast('2011-01-22 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -176,16 +176,16 @@ POSTHOOK: query: select * from newtypestbl where ts<cast('2011-01-22 01:01:01' a
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<cast('2010-10-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -210,11 +210,11 @@ POSTHOOK: query: select * from newtypestbl where ts<=cast('2011-01-01 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<=cast('2011-01-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -223,11 +223,11 @@ POSTHOOK: query: select * from newtypestbl where ts<=cast('2011-01-01 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<=cast('2011-01-20 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -236,16 +236,16 @@ POSTHOOK: query: select * from newtypestbl where ts<=cast('2011-01-20 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts<=cast('2011-01-20 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -254,16 +254,16 @@ POSTHOOK: query: select * from newtypestbl where ts<=cast('2011-01-20 01:01:01'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts in (cast('2011-01-02 01:01:01' as timestamp), cast('2011-01-20 01:01:01' as timestamp))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -272,11 +272,11 @@ POSTHOOK: query: select * from newtypestbl where ts in (cast('2011-01-02 01:01:0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts in (cast('2011-01-02 01:01:01' as timestamp), cast('2011-01-20 01:01:01' as timestamp))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -285,11 +285,11 @@ POSTHOOK: query: select * from newtypestbl where ts in (cast('2011-01-02 01:01:0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts in (cast('2011-01-01 01:01:01' as timestamp), cast('2011-01-20 01:01:01' as timestamp)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -298,16 +298,16 @@ POSTHOOK: query: select * from newtypestbl where ts in (cast('2011-01-01 01:01:0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts in (cast('2011-01-01 01:01:01' as timestamp), cast('2011-01-20 01:01:01' as timestamp)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -316,16 +316,16 @@ POSTHOOK: query: select * from newtypestbl where ts in (cast('2011-01-01 01:01:0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts in (cast('2011-01-02 01:01:01' as timestamp), cast('2011-01-08 01:01:01' as timestamp))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -350,11 +350,11 @@ POSTHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:01:01' as timestamp) and cast('2011-01-08 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -363,11 +363,11 @@ POSTHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
      PREHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:01:01' as timestamp) and cast('2011-01-25 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -376,16 +376,16 @@ POSTHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:01:01' as timestamp) and cast('2011-01-25 01:01:01' as timestamp) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -394,16 +394,16 @@ POSTHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -apple bee 0.22 2011-01-01 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    -hello world 11.22 2011-01-20 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +apple bee 0.220 2011-01-01 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
    +hello world 11.220 2011-01-20 01:01:01
      PREHOOK: query: select * from newtypestbl where ts between cast('2010-10-01 01:01:01' as timestamp) and cast('2010-11-01 01:01:01' as timestamp)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_varchar.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_varchar.q.out b/ql/src/test/results/clientpositive/parquet_ppd_varchar.q.out
    index 2e9f72f..5a62e80 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_varchar.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_varchar.q.out
    @@ -28,11 +28,11 @@ select * from newtypestbl where v="bee"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v="bee"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -41,11 +41,11 @@ POSTHOOK: query: select * from newtypestbl where v="bee"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v!="bee"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -54,11 +54,11 @@ POSTHOOK: query: select * from newtypestbl where v!="bee"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v!="bee"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -67,11 +67,11 @@ POSTHOOK: query: select * from newtypestbl where v!="bee"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v<"world"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -80,11 +80,11 @@ POSTHOOK: query: select * from newtypestbl where v<"world"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v<"world"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -93,11 +93,11 @@ POSTHOOK: query: select * from newtypestbl where v<"world"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v<="world" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -106,16 +106,16 @@ POSTHOOK: query: select * from newtypestbl where v<="world" sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v<="world" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -124,16 +124,16 @@ POSTHOOK: query: select * from newtypestbl where v<="world" sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v="bee "
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -158,11 +158,11 @@ POSTHOOK: query: select * from newtypestbl where v in ("bee", "orange")
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v in ("bee", "orange")
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -171,11 +171,11 @@ POSTHOOK: query: select * from newtypestbl where v in ("bee", "orange")
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v in ("bee", "world") sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -184,16 +184,16 @@ POSTHOOK: query: select * from newtypestbl where v in ("bee", "world") sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v in ("bee", "world") sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -202,16 +202,16 @@ POSTHOOK: query: select * from newtypestbl where v in ("bee", "world") sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v in ("orange")
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -236,11 +236,11 @@ POSTHOOK: query: select * from newtypestbl where v between "bee" and "orange"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v between "bee" and "orange"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -249,11 +249,11 @@ POSTHOOK: query: select * from newtypestbl where v between "bee" and "orange"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where v between "bee" and "zombie" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -262,16 +262,16 @@ POSTHOOK: query: select * from newtypestbl where v between "bee" and "zombie" so
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v between "bee" and "zombie" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -280,16 +280,16 @@ POSTHOOK: query: select * from newtypestbl where v between "bee" and "zombie" so
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where v between "orange" and "pine"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_predicate_pushdown.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_predicate_pushdown.q.out b/ql/src/test/results/clientpositive/parquet_predicate_pushdown.q.out
    index aa3b272..980b65b 100644
    --- a/ql/src/test/results/clientpositive/parquet_predicate_pushdown.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_predicate_pushdown.q.out
    @@ -241,7 +241,7 @@ POSTHOOK: query: SELECT * FROM tbl_pred WHERE t>2 limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@tbl_pred
      #### A masked pattern was here ####
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: SELECT * FROM tbl_pred WHERE t>2 limit 1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@tbl_pred
    @@ -250,7 +250,7 @@ POSTHOOK: query: SELECT * FROM tbl_pred WHERE t>2 limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@tbl_pred
      #### A masked pattern was here ####
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: SELECT * FROM tbl_pred
        WHERE t IS NOT NULL
        AND t < 0

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/serde_regex.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/serde_regex.q.out b/ql/src/test/results/clientpositive/serde_regex.q.out
    index ad3af57..7bebb0c 100644
    --- a/ql/src/test/results/clientpositive/serde_regex.q.out
    +++ b/ql/src/test/results/clientpositive/serde_regex.q.out
    @@ -201,43 +201,43 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@serde_regex1
      #### A masked pattern was here ####
      NULL 0
    --1234567890.123456789 -1234567890
    --4400 4400
    --1255.49 -1255
    --1.122 -11
    --1.12 -1
    --1.12 -1
    --0.333 0
    --0.33 0
    --0.3 0
    -0 0
    -0 0
    -0 0
    -0.01 0
    -0.02 0
    -0.1 0
    -0.2 0
    -0.3 0
    -0.33 0
    -0.333 0
    -1 1
    -1 1
    -1 1
    -1.12 1
    -1.122 1
    -2 2
    -2 2
    -3.14 3
    -3.14 3
    -3.14 3
    -3.14 4
    -10 10
    -20 20
    -100 100
    -124 124
    -125.2 125
    -200 200
    -1234567890.12345678 1234567890
    +-1234567890.123456789000000000 -1234567890
    +-4400.000000000000000000 4400
    +-1255.490000000000000000 -1255
    +-1.122000000000000000 -11
    +-1.120000000000000000 -1
    +-1.120000000000000000 -1
    +-0.333000000000000000 0
    +-0.330000000000000000 0
    +-0.300000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.000000000000000000 0
    +0.010000000000000000 0
    +0.020000000000000000 0
    +0.100000000000000000 0
    +0.200000000000000000 0
    +0.300000000000000000 0
    +0.330000000000000000 0
    +0.333000000000000000 0
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.000000000000000000 1
    +1.120000000000000000 1
    +1.122000000000000000 1
    +2.000000000000000000 2
    +2.000000000000000000 2
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 3
    +3.140000000000000000 4
    +10.000000000000000000 10
    +20.000000000000000000 20
    +100.000000000000000000 100
    +124.000000000000000000 124
    +125.200000000000000000 125
    +200.000000000000000000 200
    +1234567890.123456780000000000 1234567890
      PREHOOK: query: DROP TABLE serde_regex1
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@serde_regex1

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/avro_decimal_native.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/avro_decimal_native.q.out b/ql/src/test/results/clientpositive/spark/avro_decimal_native.q.out
    index 318be3d..cebc342 100644
    --- a/ql/src/test/results/clientpositive/spark/avro_decimal_native.q.out
    +++ b/ql/src/test/results/clientpositive/spark/avro_decimal_native.q.out
    @@ -92,9 +92,9 @@ Mary 4.33
      Cluck 5.96
      Tom -12.25
      Mary 33.33
    -Tom 19
    -Beck 0
    -Beck 79.9
    +Tom 19.00
    +Beck 0.00
    +Beck 79.90
      PREHOOK: query: DROP TABLE IF EXISTS avro_dec1
      PREHOOK: type: DROPTABLE
      POSTHOOK: query: DROP TABLE IF EXISTS avro_dec1
    @@ -143,10 +143,10 @@ POSTHOOK: Input: default@avro_dec1
      77.3
      55.7
      4.3
    -6
    +6.0
      12.3
      33.3
    -19
    +19.0
      3.2
      79.9
      PREHOOK: query: DROP TABLE dec

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/decimal_1_1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/decimal_1_1.q.out b/ql/src/test/results/clientpositive/spark/decimal_1_1.q.out
    index b2704c6..46fbeb7 100644
    --- a/ql/src/test/results/clientpositive/spark/decimal_1_1.q.out
    +++ b/ql/src/test/results/clientpositive/spark/decimal_1_1.q.out
    @@ -26,9 +26,9 @@ POSTHOOK: query: select * from decimal_1_1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_1_1
      #### A masked pattern was here ####
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
      0.1
      0.2
      0.9
    @@ -37,13 +37,13 @@ NULL
      0.3
      NULL
      NULL
    -0
    -0
    +0.0
    +0.0
      NULL
    -0
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
    +0.0
      -0.1
      -0.2
      -0.9
    @@ -52,10 +52,10 @@ NULL
      -0.3
      NULL
      NULL
    -0
    -0
    +0.0
    +0.0
      NULL
    -0
    +0.0
      PREHOOK: query: select d from decimal_1_1 order by d desc
      PREHOOK: type: QUERY
      PREHOOK: Input: default@decimal_1_1
    @@ -69,18 +69,18 @@ POSTHOOK: Input: default@decimal_1_1
      0.3
      0.2
      0.1
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
    +0.0
      -0.1
      -0.2
      -0.3

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/mapjoin_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/mapjoin_decimal.q.out b/ql/src/test/results/clientpositive/spark/mapjoin_decimal.q.out
    index 20b188b..bc785f9 100644
    --- a/ql/src/test/results/clientpositive/spark/mapjoin_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/spark/mapjoin_decimal.q.out
    @@ -172,112 +172,112 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
      PREHOOK: query: select t1.dec, t2.dec from t1 join t2 on (t1.dec=t2.dec) order by t1.dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@t1
    @@ -288,109 +288,109 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/vector_between_in.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/vector_between_in.q.out b/ql/src/test/results/clientpositive/spark/vector_between_in.q.out
    index 133769a..f1ff784 100644
    --- a/ql/src/test/results/clientpositive/spark/vector_between_in.q.out
    +++ b/ql/src/test/results/clientpositive/spark/vector_between_in.q.out
    @@ -650,34 +650,34 @@ POSTHOOK: Input: default@decimal_date_test
      -18.5162162162
      -17.3216216216
      -16.7243243243
    --16.127027027
    +-16.1270270270
      -15.5297297297
      -10.7513513514
      -9.5567567568
      -8.3621621622
    --5.972972973
    +-5.9729729730
      -3.5837837838
      4.1810810811
      4.7783783784
      4.7783783784
      5.3756756757
    -5.972972973
    -5.972972973
    +5.9729729730
    +5.9729729730
      11.3486486486
      11.3486486486
      11.9459459459
      14.9324324324
      19.1135135135
      20.3081081081
    -22.1
    +22.1000000000
      24.4891891892
      33.4486486486
      34.6432432432
      40.0189189189
      42.4081081081
      43.0054054054
    -44.2
    -44.2
    +44.2000000000
    +44.2000000000
      44.7972972973
      45.9918918919
      PREHOOK: query: SELECT COUNT(*) FROM decimal_date_test WHERE cdecimal1 NOT BETWEEN -2000 AND 4390.1351351351

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.java1.7.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.java1.7.out b/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.java1.7.out
    index e1acab1..c3e7779 100644
    --- a/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.java1.7.out
    +++ b/ql/src/test/results/clientpositive/spark/vector_cast_constant.q.java1.7.out
    @@ -204,13 +204,13 @@ POSTHOOK: query: SELECT
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
    -65536 50.0 50.0 50
    -65537 50.0 50.0 50
    -65538 50.0 50.0 50
    -65539 50.0 50.0 50
    -65540 50.0 50.0 50
    -65541 50.0 50.0 50
    -65542 50.0 50.0 50
    -65543 50.0 50.0 50
    -65544 50.0 50.0 50
    -65545 50.0 50.0 50
    +65536 50.0 50.0 50.0000
    +65537 50.0 50.0 50.0000
    +65538 50.0 50.0 50.0000
    +65539 50.0 50.0 50.0000
    +65540 50.0 50.0 50.0000
    +65541 50.0 50.0 50.0000
    +65542 50.0 50.0 50.0000
    +65543 50.0 50.0 50.0000
    +65544 50.0 50.0 50.0000
    +65545 50.0 50.0 50.0000

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/spark/vector_data_types.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/spark/vector_data_types.q.out b/ql/src/test/results/clientpositive/spark/vector_data_types.q.out
    index f6b2920..bcabc98 100644
    --- a/ql/src/test/results/clientpositive/spark/vector_data_types.q.out
    +++ b/ql/src/test/results/clientpositive/spark/vector_data_types.q.out
    @@ -159,7 +159,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education
    @@ -252,7 +252,7 @@ POSTHOOK: Input: default@over1korc
      #### A masked pattern was here ####
      NULL 374 65560 4294967516 65.43 22.48 true oscar quirinius 2013-03-01 09:11:58.703316 16.86 mathematics
      NULL 409 65536 4294967490 46.97 25.92 false fred miller 2013-03-01 09:11:58.703116 33.45 history
    -NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.8 mathematics
    +NULL 473 65720 4294967324 80.74 40.6 false holly falkner 2013-03-01 09:11:58.703111 18.80 mathematics
      -3 275 65622 4294967302 71.78 8.49 false wendy robinson 2013-03-01 09:11:58.703294 95.39 undecided
      -3 344 65733 4294967363 0.56 11.96 true rachel thompson 2013-03-01 09:11:58.703276 88.46 wind surfing
      -3 376 65548 4294967431 96.78 43.23 false fred ellison 2013-03-01 09:11:58.703233 75.39 education
  • Xuefu at Nov 4, 2015 at 3:41 am
    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/decimal_udf.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/decimal_udf.q.out b/ql/src/test/results/clientpositive/decimal_udf.q.out
    index ce1fe3f..abbfc50 100644
    --- a/ql/src/test/results/clientpositive/decimal_udf.q.out
    +++ b/ql/src/test/results/clientpositive/decimal_udf.q.out
    @@ -55,44 +55,44 @@ POSTHOOK: query: SELECT key + key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --8800
    +-8800.0000000000
      NULL
    -0
    -0
    -200
    -20
    -2
    -0.2
    -0.02
    -400
    -40
    -4
    -0
    -0.4
    -0.04
    -0.6
    -0.66
    -0.666
    --0.6
    --0.66
    --0.666
    -2
    -4
    -6.28
    --2.24
    --2.24
    --2.244
    -2.24
    -2.244
    -248
    -250.4
    --2510.98
    -6.28
    -6.28
    -6.28
    -2
    --2469135780.246913578
    -2469135780.24691356
    +0.0000000000
    +0.0000000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.2000000000
    +0.0200000000
    +400.0000000000
    +40.0000000000
    +4.0000000000
    +0.0000000000
    +0.4000000000
    +0.0400000000
    +0.6000000000
    +0.6600000000
    +0.6660000000
    +-0.6000000000
    +-0.6600000000
    +-0.6660000000
    +2.0000000000
    +4.0000000000
    +6.2800000000
    +-2.2400000000
    +-2.2400000000
    +-2.2440000000
    +2.2400000000
    +2.2440000000
    +248.0000000000
    +250.4000000000
    +-2510.9800000000
    +6.2800000000
    +6.2800000000
    +6.2800000000
    +2.0000000000
    +-2469135780.2469135780
    +2469135780.2469135600
      PREHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key + value FROM DECIMAL_UDF
    @@ -122,44 +122,44 @@ POSTHOOK: query: SELECT key + value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -0
    +0.0000000000
      NULL
    -0
    -0
    -200
    -20
    -2
    -0.1
    -0.01
    -400
    -40
    -4
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -2
    -4
    -6.14
    --2.12
    --2.12
    --12.122
    -2.12
    -2.122
    -248
    -250.2
    --2510.49
    -6.14
    -6.14
    -7.14
    -2
    --2469135780.123456789
    -2469135780.12345678
    +0.0000000000
    +0.0000000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.1000000000
    +0.0100000000
    +400.0000000000
    +40.0000000000
    +4.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +2.0000000000
    +4.0000000000
    +6.1400000000
    +-2.1200000000
    +-2.1200000000
    +-12.1220000000
    +2.1200000000
    +2.1220000000
    +248.0000000000
    +250.2000000000
    +-2510.4900000000
    +6.1400000000
    +6.1400000000
    +7.1400000000
    +2.0000000000
    +-2469135780.1234567890
    +2469135780.1234567800
      PREHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key + (value/2) FROM DECIMAL_UDF
    @@ -325,44 +325,44 @@ POSTHOOK: query: SELECT key - key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -0
    +0.0000000000
      NULL
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
      PREHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key - value FROM DECIMAL_UDF
    @@ -392,44 +392,44 @@ POSTHOOK: query: SELECT key - value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --8800
    +-8800.0000000000
      NULL
    -0
    -0
    -0
    -0
    -0
    -0.1
    -0.01
    -0
    -0
    -0
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -0
    -0
    -0.14
    --0.12
    --0.12
    -9.878
    -0.12
    -0.122
    -0
    -0.2
    --0.49
    -0.14
    -0.14
    --0.86
    -0
    --0.123456789
    -0.12345678
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.1000000000
    +0.0100000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +0.0000000000
    +0.0000000000
    +0.1400000000
    +-0.1200000000
    +-0.1200000000
    +9.8780000000
    +0.1200000000
    +0.1220000000
    +0.0000000000
    +0.2000000000
    +-0.4900000000
    +0.1400000000
    +0.1400000000
    +-0.8600000000
    +0.0000000000
    +-0.1234567890
    +0.1234567800
      PREHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key - (value/2) FROM DECIMAL_UDF
    @@ -595,42 +595,42 @@ POSTHOOK: query: SELECT key * key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -19360000
    +19360000.00000000000000000000
      NULL
    -0
    -0
    -10000
    -100
    -1
    -0.01
    -0.0001
    -40000
    -400
    -4
    -0
    -0.04
    -0.0004
    -0.09
    -0.1089
    -0.110889
    -0.09
    -0.1089
    -0.110889
    -1
    -4
    -9.8596
    -1.2544
    -1.2544
    -1.258884
    -1.2544
    -1.258884
    -15376
    -15675.04
    -1576255.1401
    -9.8596
    -9.8596
    -9.8596
    -1
    +0.00000000000000000000
    +0.00000000000000000000
    +10000.00000000000000000000
    +100.00000000000000000000
    +1.00000000000000000000
    +0.01000000000000000000
    +0.00010000000000000000
    +40000.00000000000000000000
    +400.00000000000000000000
    +4.00000000000000000000
    +0.00000000000000000000
    +0.04000000000000000000
    +0.00040000000000000000
    +0.09000000000000000000
    +0.10890000000000000000
    +0.11088900000000000000
    +0.09000000000000000000
    +0.10890000000000000000
    +0.11088900000000000000
    +1.00000000000000000000
    +4.00000000000000000000
    +9.85960000000000000000
    +1.25440000000000000000
    +1.25440000000000000000
    +1.25888400000000000000
    +1.25440000000000000000
    +1.25888400000000000000
    +15376.00000000000000000000
    +15675.04000000000000000000
    +1576255.14010000000000000000
    +9.85960000000000000000
    +9.85960000000000000000
    +9.85960000000000000000
    +1.00000000000000000000
      NULL
      NULL
      PREHOOK: query: EXPLAIN SELECT key, value FROM DECIMAL_UDF where key * value > 0
    @@ -665,29 +665,29 @@ POSTHOOK: query: SELECT key, value FROM DECIMAL_UDF where key * value > 0
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -100 100
    -10 10
    -1 1
    -200 200
    -20 20
    -2 2
    -1 1
    -2 2
    -3.14 3
    --1.12 -1
    --1.12 -1
    --1.122 -11
    -1.12 1
    -1.122 1
    -124 124
    -125.2 125
    --1255.49 -1255
    -3.14 3
    -3.14 3
    -3.14 4
    -1 1
    --1234567890.123456789 -1234567890
    -1234567890.12345678 1234567890
    +100.0000000000 100
    +10.0000000000 10
    +1.0000000000 1
    +200.0000000000 200
    +20.0000000000 20
    +2.0000000000 2
    +1.0000000000 1
    +2.0000000000 2
    +3.1400000000 3
    +-1.1200000000 -1
    +-1.1200000000 -1
    +-1.1220000000 -11
    +1.1200000000 1
    +1.1220000000 1
    +124.0000000000 124
    +125.2000000000 125
    +-1255.4900000000 -1255
    +3.1400000000 3
    +3.1400000000 3
    +3.1400000000 4
    +1.0000000000 1
    +-1234567890.1234567890 -1234567890
    +1234567890.1234567800 1234567890
      PREHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key * value FROM DECIMAL_UDF
    @@ -717,44 +717,44 @@ POSTHOOK: query: SELECT key * value FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --19360000
    +-19360000.0000000000
      NULL
    -0
    -0
    -10000
    -100
    -1
    -0
    -0
    -40000
    -400
    -4
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -0
    -1
    -4
    -9.42
    -1.12
    -1.12
    -12.342
    -1.12
    -1.122
    -15376
    -15650
    -1575639.95
    -9.42
    -9.42
    -12.56
    -1
    -1524157875171467887.50190521
    -1524157875171467876.3907942
    +0.0000000000
    +0.0000000000
    +10000.0000000000
    +100.0000000000
    +1.0000000000
    +0.0000000000
    +0.0000000000
    +40000.0000000000
    +400.0000000000
    +4.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +0.0000000000
    +1.0000000000
    +4.0000000000
    +9.4200000000
    +1.1200000000
    +1.1200000000
    +12.3420000000
    +1.1200000000
    +1.1220000000
    +15376.0000000000
    +15650.0000000000
    +1575639.9500000000
    +9.4200000000
    +9.4200000000
    +12.5600000000
    +1.0000000000
    +1524157875171467887.5019052100
    +1524157875171467876.3907942000
      PREHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key * (value/2) FROM DECIMAL_UDF
    @@ -989,40 +989,40 @@ POSTHOOK: query: SELECT key / key FROM DECIMAL_UDF WHERE key is not null and key
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
    +1.000000000000000000000000
      PREHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key / value FROM DECIMAL_UDF WHERE value is not null and value <> 0
    @@ -1055,30 +1055,30 @@ POSTHOOK: query: SELECT key / value FROM DECIMAL_UDF WHERE value is not null and
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    -1
    +-1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
    +1.000000000000000000000
      1.046666666666666666667
    -1.12
    -1.12
    -0.102
    -1.12
    -1.122
    -1
    -1.0016
    +1.120000000000000000000
    +1.120000000000000000000
    +0.102000000000000000000
    +1.120000000000000000000
    +1.122000000000000000000
    +1.000000000000000000000
    +1.001600000000000000000
      1.000390438247011952191
      1.046666666666666666667
      1.046666666666666666667
    -0.785
    -1
    -1.0000000001
    -1.00000000009999999271
    +0.785000000000000000000
    +1.000000000000000000000
    +1.000000000100000000000
    +1.000000000099999992710
      PREHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
      PREHOOK: type: QUERY
      POSTHOOK: query: EXPLAIN SELECT key / (value/2) FROM DECIMAL_UDF WHERE value is not null and value <> 0
    @@ -1233,44 +1233,44 @@ POSTHOOK: query: SELECT abs(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -4400
    +4400.0000000000
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    -0.3
    -0.33
    -0.333
    -1
    -2
    -3.14
    -1.12
    -1.12
    -1.122
    -1.12
    -1.122
    -124
    -125.2
    -1255.49
    -3.14
    -3.14
    -3.14
    -1
    -1234567890.123456789
    -1234567890.12345678
    +0.0000000000
    +0.0000000000
    +100.0000000000
    +10.0000000000
    +1.0000000000
    +0.1000000000
    +0.0100000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +1.0000000000
    +2.0000000000
    +3.1400000000
    +1.1200000000
    +1.1200000000
    +1.1220000000
    +1.1200000000
    +1.1220000000
    +124.0000000000
    +125.2000000000
    +1255.4900000000
    +3.1400000000
    +3.1400000000
    +3.1400000000
    +1.0000000000
    +1234567890.1234567890
    +1234567890.1234567800
      PREHOOK: query: -- avg
      EXPLAIN SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DECIMAL_UDF GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
    @@ -1359,23 +1359,23 @@ POSTHOOK: query: SELECT value, sum(key) / count(key), avg(key), sum(key) FROM DE
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1234567890 -1234567890.123456789 -1234567890.123456789 -1234567890.123456789
    --1255 -1255.49 -1255.49 -1255.49
    --11 -1.122 -1.122 -1.122
    --1 -1.12 -1.12 -2.24
    -0 0.02538461538461538461538 0.02538461538462 0.33
    -1 1.0484 1.0484 5.242
    -2 2 2 4
    -3 3.14 3.14 9.42
    -4 3.14 3.14 3.14
    -10 10 10 10
    -20 20 20 20
    -100 100 100 100
    -124 124 124 124
    -125 125.2 125.2 125.2
    -200 200 200 200
    -4400 -4400 -4400 -4400
    -1234567890 1234567890.12345678 1234567890.12345678 1234567890.12345678
    +-1234567890 -1234567890.12345678900000000000000 -1234567890.12345678900000 -1234567890.1234567890
    +-1255 -1255.49000000000000000000000 -1255.49000000000000 -1255.4900000000
    +-11 -1.12200000000000000000000 -1.12200000000000 -1.1220000000
    +-1 -1.12000000000000000000000 -1.12000000000000 -2.2400000000
    +0 0.02538461538461538461538 0.02538461538462 0.3300000000
    +1 1.04840000000000000000000 1.04840000000000 5.2420000000
    +2 2.00000000000000000000000 2.00000000000000 4.0000000000
    +3 3.14000000000000000000000 3.14000000000000 9.4200000000
    +4 3.14000000000000000000000 3.14000000000000 3.1400000000
    +10 10.00000000000000000000000 10.00000000000000 10.0000000000
    +20 20.00000000000000000000000 20.00000000000000 20.0000000000
    +100 100.00000000000000000000000 100.00000000000000 100.0000000000
    +124 124.00000000000000000000000 124.00000000000000 124.0000000000
    +125 125.20000000000000000000000 125.20000000000000 125.2000000000
    +200 200.00000000000000000000000 200.00000000000000 200.0000000000
    +4400 -4400.00000000000000000000000 -4400.00000000000000 -4400.0000000000
    +1234567890 1234567890.12345678000000000000000 1234567890.12345678000000 1234567890.1234567800
      PREHOOK: query: -- negative
      EXPLAIN SELECT -key FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -1407,44 +1407,44 @@ POSTHOOK: query: SELECT -key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -4400
    +4400.0000000000
      NULL
    -0
    -0
    --100
    --10
    --1
    --0.1
    --0.01
    --200
    --20
    --2
    -0
    --0.2
    --0.02
    --0.3
    --0.33
    --0.333
    -0.3
    -0.33
    -0.333
    --1
    --2
    --3.14
    -1.12
    -1.12
    -1.122
    --1.12
    --1.122
    --124
    --125.2
    -1255.49
    --3.14
    --3.14
    --3.14
    --1
    -1234567890.123456789
    --1234567890.12345678
    +0.0000000000
    +0.0000000000
    +-100.0000000000
    +-10.0000000000
    +-1.0000000000
    +-0.1000000000
    +-0.0100000000
    +-200.0000000000
    +-20.0000000000
    +-2.0000000000
    +0.0000000000
    +-0.2000000000
    +-0.0200000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-1.0000000000
    +-2.0000000000
    +-3.1400000000
    +1.1200000000
    +1.1200000000
    +1.1220000000
    +-1.1200000000
    +-1.1220000000
    +-124.0000000000
    +-125.2000000000
    +1255.4900000000
    +-3.1400000000
    +-3.1400000000
    +-3.1400000000
    +-1.0000000000
    +1234567890.1234567890
    +-1234567890.1234567800
      PREHOOK: query: -- positive
      EXPLAIN SELECT +key FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -1476,44 +1476,44 @@ POSTHOOK: query: SELECT +key FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --4400
    +-4400.0000000000
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    -0.01
    -200
    -20
    -2
    -0
    -0.2
    -0.02
    -0.3
    -0.33
    -0.333
    --0.3
    --0.33
    --0.333
    -1
    -2
    -3.14
    --1.12
    --1.12
    --1.122
    -1.12
    -1.122
    -124
    -125.2
    --1255.49
    -3.14
    -3.14
    -3.14
    -1
    --1234567890.123456789
    -1234567890.12345678
    +0.0000000000
    +0.0000000000
    +100.0000000000
    +10.0000000000
    +1.0000000000
    +0.1000000000
    +0.0100000000
    +200.0000000000
    +20.0000000000
    +2.0000000000
    +0.0000000000
    +0.2000000000
    +0.0200000000
    +0.3000000000
    +0.3300000000
    +0.3330000000
    +-0.3000000000
    +-0.3300000000
    +-0.3330000000
    +1.0000000000
    +2.0000000000
    +3.1400000000
    +-1.1200000000
    +-1.1200000000
    +-1.1220000000
    +1.1200000000
    +1.1220000000
    +124.0000000000
    +125.2000000000
    +-1255.4900000000
    +3.1400000000
    +3.1400000000
    +3.1400000000
    +1.0000000000
    +-1234567890.1234567890
    +1234567890.1234567800
      PREHOOK: query: -- ceiling
      EXPlAIN SELECT CEIL(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -1683,42 +1683,42 @@ POSTHOOK: query: SELECT ROUND(key, 2) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --4400
    +-4400.00
      NULL
    -0
    -0
    -100
    -10
    -1
    -0.1
    +0.00
    +0.00
    +100.00
    +10.00
    +1.00
    +0.10
      0.01
    -200
    -20
    -2
    -0
    -0.2
    +200.00
    +20.00
    +2.00
    +0.00
    +0.20
      0.02
    -0.3
    +0.30
      0.33
      0.33
    --0.3
    +-0.30
      -0.33
      -0.33
    -1
    -2
    +1.00
    +2.00
      3.14
      -1.12
      -1.12
      -1.12
      1.12
      1.12
    -124
    -125.2
    +124.00
    +125.20
      -1255.49
      3.14
      3.14
      3.14
    -1
    +1.00
      -1234567890.12
      1234567890.12
      PREHOOK: query: -- power
    @@ -1821,44 +1821,44 @@ POSTHOOK: query: SELECT (key + 1) % (key / 2) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --2199
    +-2199.000000000000
      NULL
      NULL
      NULL
    -1
    -1
    -0
    -0
    -0
    -1
    -1
    -0
    +1.000000000000
    +1.000000000000
    +0.000000000000
    +0.000000000000
    +0.000000000000
    +1.000000000000
    +1.000000000000
    +0.000000000000
      NULL
    -0
    -0
    -0.1
    -0.01
    -0.001
    -0.1
    -0.01
    -0.001
    -0
    -0
    -1
    --0.12
    --0.12
    --0.122
    -0.44
    -0.439
    -1
    -1
    --626.745
    -1
    -1
    -1
    -0
    --617283944.0617283945
    -1
    +0.000000000000
    +0.000000000000
    +0.100000000000
    +0.010000000000
    +0.001000000000
    +0.100000000000
    +0.010000000000
    +0.001000000000
    +0.000000000000
    +0.000000000000
    +1.000000000000
    +-0.120000000000
    +-0.120000000000
    +-0.122000000000
    +0.440000000000
    +0.439000000000
    +1.000000000000
    +1.000000000000
    +-626.745000000000
    +1.000000000000
    +1.000000000000
    +1.000000000000
    +0.000000000000
    +-617283944.061728394500
    +1.000000000000
      PREHOOK: query: -- stddev, var
      EXPLAIN SELECT value, stddev(key), variance(key) FROM DECIMAL_UDF GROUP BY value
      PREHOOK: type: QUERY
    @@ -2134,7 +2134,7 @@ POSTHOOK: query: SELECT MIN(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    --1234567890.123456789
    +-1234567890.1234567890
      PREHOOK: query: -- max
      EXPLAIN SELECT MAX(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY
    @@ -2193,7 +2193,7 @@ POSTHOOK: query: SELECT MAX(key) FROM DECIMAL_UDF
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_udf
      #### A masked pattern was here ####
    -1234567890.12345678
    +1234567890.1234567800
      PREHOOK: query: -- count
      EXPLAIN SELECT COUNT(key) FROM DECIMAL_UDF
      PREHOOK: type: QUERY

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/insert_nonacid_from_acid.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/insert_nonacid_from_acid.q.out b/ql/src/test/results/clientpositive/insert_nonacid_from_acid.q.out
    index 1f613c4..f7a9853 100644
    --- a/ql/src/test/results/clientpositive/insert_nonacid_from_acid.q.out
    +++ b/ql/src/test/results/clientpositive/insert_nonacid_from_acid.q.out
    @@ -31,11 +31,11 @@ POSTHOOK: query: select * from sample_06 where gpa = 3.00
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@sample_06
      #### A masked pattern was here ####
    -aaa 35 3
    -bbb 32 3
    -ccc 32 3
    -ddd 35 3
    -eee 32 3
    +aaa 35 3.00
    +bbb 32 3.00
    +ccc 32 3.00
    +ddd 35 3.00
    +eee 32 3.00
      PREHOOK: query: create table tab1 (name varchar(50), age int, gpa decimal(3, 2))
      PREHOOK: type: CREATETABLE
      PREHOOK: Output: database:default
    @@ -63,8 +63,8 @@ POSTHOOK: query: select * from tab1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@tab1
      #### A masked pattern was here ####
    -aaa 35 3
    -bbb 32 3
    -ccc 32 3
    -ddd 35 3
    -eee 32 3
    +aaa 35 3.00
    +bbb 32 3.00
    +ccc 32 3.00
    +ddd 35 3.00
    +eee 32 3.00

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out b/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out
    index 1586f8a..36a032a 100644
    --- a/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out
    +++ b/ql/src/test/results/clientpositive/llap/hybridgrace_hashjoin_1.q.out
    @@ -1320,105 +1320,105 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_mapjoin
      #### A masked pattern was here ####
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 6984454.211097692
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 6984454.21109769200000
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
      PREHOOK: query: EXPLAIN SELECT l.cint, r.cint, l.cdecimal1, r.cdecimal2
        FROM decimal_mapjoin l
        JOIN decimal_mapjoin r ON l.cint = r.cint
    @@ -1508,105 +1508,105 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@decimal_mapjoin
      #### A masked pattern was here ####
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 -617.5607769230769
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 6984454.211097692
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    -6981 6981 5831542.269248378 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 -617.56077692307690
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 6984454.21109769200000
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
    +6981 6981 5831542.2692483780 NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL -617.5607769230769
    -6981 6981 NULL -617.5607769230769
    +6981 6981 NULL -617.56077692307690
    +6981 6981 NULL -617.56077692307690
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 NULL 6984454.211097692
    +6981 6981 NULL 6984454.21109769200000
      6981 6981 NULL NULL
      6981 6981 NULL NULL
      6981 6981 NULL NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 -617.5607769230769
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 6984454.211097692
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    -6981 6981 -515.621072973 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 -617.56077692307690
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 6984454.21109769200000
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
    +6981 6981 -515.6210729730 NULL
      PREHOOK: query: DROP TABLE decimal_mapjoin
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@decimal_mapjoin

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out b/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out
    index 98d9ceb..4c8b295 100644
    --- a/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/llap/mapjoin_decimal.q.out
    @@ -169,112 +169,112 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
      PREHOOK: query: select t1.dec, t2.dec from t1 join t2 on (t1.dec=t2.dec) order by t1.dec
      PREHOOK: type: QUERY
      PREHOOK: Input: default@t1
    @@ -285,109 +285,109 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@t1
      POSTHOOK: Input: default@t2
      #### A masked pattern was here ####
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -14 14
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -17 17
    -45 45
    -45 45
    -45 45
    -45 45
    -45 45
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -6 6
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -62 62
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -64 64
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -70 70
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -79 79
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -89 89
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    -9 9
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +14.00 14
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +17.00 17
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +45.00 45
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +6.00 6
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +62.00 62
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +64.00 64
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +70.00 70
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +79.00 79
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +89.00 89
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9
    +9.00 9

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/orc_file_dump.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/orc_file_dump.q.out b/ql/src/test/results/clientpositive/orc_file_dump.q.out
    index c494d47..50d5701 100644
    --- a/ql/src/test/results/clientpositive/orc_file_dump.q.out
    +++ b/ql/src/test/results/clientpositive/orc_file_dump.q.out
    @@ -196,7 +196,7 @@ File length: 33458 bytes
      Padding length: 0 bytes
      Padding ratio: 0%
      -- END ORC FILE DUMP --
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: alter table orc_ppd set tblproperties("orc.bloom.filter.fpp"="0.01")
      PREHOOK: type: ALTERTABLE_PROPERTIES
      PREHOOK: Input: default@orc_ppd
    @@ -314,7 +314,7 @@ File length: 38613 bytes
      Padding length: 0 bytes
      Padding ratio: 0%
      -- END ORC FILE DUMP --
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: CREATE TABLE orc_ppd_part(t tinyint,
                 si smallint,
                 i int,
    @@ -444,4 +444,4 @@ File length: 33458 bytes
      Padding length: 0 bytes
      Padding ratio: 0%
      -- END ORC FILE DUMP --
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty 2015 10
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty 2015 10

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/orc_predicate_pushdown.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/orc_predicate_pushdown.q.out b/ql/src/test/results/clientpositive/orc_predicate_pushdown.q.out
    index 0d4cd15..6a528dd 100644
    --- a/ql/src/test/results/clientpositive/orc_predicate_pushdown.q.out
    +++ b/ql/src/test/results/clientpositive/orc_predicate_pushdown.q.out
    @@ -251,7 +251,7 @@ POSTHOOK: query: SELECT * FROM orc_pred WHERE t>2 limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@orc_pred
      #### A masked pattern was here ####
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: SELECT * FROM orc_pred WHERE t>2 limit 1
      PREHOOK: type: QUERY
      PREHOOK: Input: default@orc_pred
    @@ -260,7 +260,7 @@ POSTHOOK: query: SELECT * FROM orc_pred WHERE t>2 limit 1
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@orc_pred
      #### A masked pattern was here ####
    -124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.4 yard duty
    +124 336 65664 4294967435 74.72 42.47 true bob davidson 2013-03-01 09:11:58.703302 45.40 yard duty
      PREHOOK: query: SELECT SUM(HASH(t)) FROM orc_pred
        WHERE t IS NOT NULL
        AND t < 0

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_decimal.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_decimal.q.out b/ql/src/test/results/clientpositive/parquet_decimal.q.out
    index 493bd4f..a19cd6d 100644
    --- a/ql/src/test/results/clientpositive/parquet_decimal.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_decimal.q.out
    @@ -63,9 +63,9 @@ Mary 4.33
      Cluck 5.96
      Tom -12.25
      Mary 33.33
    -Tom 19
    -Beck 0
    -Beck 79.9
    +Tom 19.00
    +Beck 0.00
    +Beck 79.90
      PREHOOK: query: SELECT value, count(*) FROM parq_dec GROUP BY value ORDER BY value
      PREHOOK: type: QUERY
      PREHOOK: Input: default@parq_dec
    @@ -75,14 +75,14 @@ POSTHOOK: type: QUERY
      POSTHOOK: Input: default@parq_dec
      #### A masked pattern was here ####
      -12.25 1
    -0 1
    +0.00 1
      4.33 1
      5.96 1
    -19 1
    +19.00 1
      33.33 1
      55.71 1
      77.34 1
    -79.9 1
    +79.90 1
      234.79 1
      PREHOOK: query: TRUNCATE TABLE parq_dec
      PREHOOK: type: TRUNCATETABLE
    @@ -158,12 +158,12 @@ POSTHOOK: Input: default@parq_dec1
      77.3
      55.7
      4.3
    -6
    +6.0
      12.3
      33.3
      0.2
      3.2
    -8
    +8.0
      PREHOOK: query: DROP TABLE dec
      PREHOOK: type: DROPTABLE
      PREHOOK: Input: default@dec

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_boolean.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_boolean.q.out b/ql/src/test/results/clientpositive/parquet_ppd_boolean.q.out
    index 1355849..6e62ee4 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_boolean.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_boolean.q.out
    @@ -26,11 +26,11 @@ POSTHOOK: query: select * from newtypestbl where b=true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b!=true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -39,11 +39,11 @@ POSTHOOK: query: select * from newtypestbl where b!=true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b<true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -52,11 +52,11 @@ POSTHOOK: query: select * from newtypestbl where b<true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b>true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -73,16 +73,16 @@ POSTHOOK: query: select * from newtypestbl where b<=true sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -91,11 +91,11 @@ POSTHOOK: query: select * from newtypestbl where b=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b!=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -104,11 +104,11 @@ POSTHOOK: query: select * from newtypestbl where b!=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b<false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -125,11 +125,11 @@ POSTHOOK: query: select * from newtypestbl where b>false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b<=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -138,11 +138,11 @@ POSTHOOK: query: select * from newtypestbl where b<=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b=true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -151,11 +151,11 @@ POSTHOOK: query: select * from newtypestbl where b=true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b!=true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -164,11 +164,11 @@ POSTHOOK: query: select * from newtypestbl where b!=true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b<true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -177,11 +177,11 @@ POSTHOOK: query: select * from newtypestbl where b<true
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b>true
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -198,16 +198,16 @@ POSTHOOK: query: select * from newtypestbl where b<=true sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -216,11 +216,11 @@ POSTHOOK: query: select * from newtypestbl where b=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
      PREHOOK: query: select * from newtypestbl where b!=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -229,11 +229,11 @@ POSTHOOK: query: select * from newtypestbl where b!=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b<false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -250,11 +250,11 @@ POSTHOOK: query: select * from newtypestbl where b>false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    -apple bee 0.22 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
    +apple bee 0.220 true
      PREHOOK: query: select * from newtypestbl where b<=false
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -263,8 +263,8 @@ POSTHOOK: query: select * from newtypestbl where b<=false
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    -hello world 11.22 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false
    +hello world 11.220 false

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_char.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_char.q.out b/ql/src/test/results/clientpositive/parquet_ppd_char.q.out
    index f224870..defaa9d 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_char.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_char.q.out
    @@ -28,11 +28,11 @@ select * from newtypestbl where c="apple"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c="apple"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -41,11 +41,11 @@ POSTHOOK: query: select * from newtypestbl where c="apple"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c!="apple"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -54,11 +54,11 @@ POSTHOOK: query: select * from newtypestbl where c!="apple"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c!="apple"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -67,11 +67,11 @@ POSTHOOK: query: select * from newtypestbl where c!="apple"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c<"hello"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -80,11 +80,11 @@ POSTHOOK: query: select * from newtypestbl where c<"hello"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c<"hello"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -93,11 +93,11 @@ POSTHOOK: query: select * from newtypestbl where c<"hello"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c<="hello" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -106,16 +106,16 @@ POSTHOOK: query: select * from newtypestbl where c<="hello" sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c<="hello" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -124,16 +124,16 @@ POSTHOOK: query: select * from newtypestbl where c<="hello" sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c="apple "
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -158,11 +158,11 @@ POSTHOOK: query: select * from newtypestbl where c in ("apple", "carrot")
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c in ("apple", "carrot")
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -171,11 +171,11 @@ POSTHOOK: query: select * from newtypestbl where c in ("apple", "carrot")
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c in ("apple", "hello") sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -184,16 +184,16 @@ POSTHOOK: query: select * from newtypestbl where c in ("apple", "hello") sort by
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c in ("apple", "hello") sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -202,16 +202,16 @@ POSTHOOK: query: select * from newtypestbl where c in ("apple", "hello") sort by
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c in ("carrot")
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -236,11 +236,11 @@ POSTHOOK: query: select * from newtypestbl where c between "apple" and "carrot"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c between "apple" and "carrot"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -249,11 +249,11 @@ POSTHOOK: query: select * from newtypestbl where c between "apple" and "carrot"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where c between "apple" and "zombie" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -262,16 +262,16 @@ POSTHOOK: query: select * from newtypestbl where c between "apple" and "zombie"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c between "apple" and "zombie" sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -280,16 +280,16 @@ POSTHOOK: query: select * from newtypestbl where c between "apple" and "zombie"
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where c between "carrot" and "carrot1"
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl

    http://git-wip-us.apache.org/repos/asf/hive/blob/13f8cfec/ql/src/test/results/clientpositive/parquet_ppd_date.q.out
    ----------------------------------------------------------------------
    diff --git a/ql/src/test/results/clientpositive/parquet_ppd_date.q.out b/ql/src/test/results/clientpositive/parquet_ppd_date.q.out
    index e599014..55231e9 100644
    --- a/ql/src/test/results/clientpositive/parquet_ppd_date.q.out
    +++ b/ql/src/test/results/clientpositive/parquet_ppd_date.q.out
    @@ -28,11 +28,11 @@ select * from newtypestbl where da='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da='1970-02-20'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -41,11 +41,11 @@ POSTHOOK: query: select * from newtypestbl where da='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da= date '1970-02-20'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -54,11 +54,11 @@ POSTHOOK: query: select * from newtypestbl where da= date '1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as date)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -67,11 +67,11 @@ POSTHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as date)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as date)
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -80,11 +80,11 @@ POSTHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as date)
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as varchar(20))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -93,11 +93,11 @@ POSTHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as varchar
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as varchar(20))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -106,11 +106,11 @@ POSTHOOK: query: select * from newtypestbl where da=cast('1970-02-20' as varchar
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da!='1970-02-20'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -119,11 +119,11 @@ POSTHOOK: query: select * from newtypestbl where da!='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da!='1970-02-20'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -132,11 +132,11 @@ POSTHOOK: query: select * from newtypestbl where da!='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da<'1970-02-27'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -145,11 +145,11 @@ POSTHOOK: query: select * from newtypestbl where da<'1970-02-27'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da<'1970-02-27'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -158,11 +158,11 @@ POSTHOOK: query: select * from newtypestbl where da<'1970-02-27'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da<'1970-02-29' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -171,16 +171,16 @@ POSTHOOK: query: select * from newtypestbl where da<'1970-02-29' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da<'1970-02-29' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -189,16 +189,16 @@ POSTHOOK: query: select * from newtypestbl where da<'1970-02-29' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da<'1970-02-15'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -223,11 +223,11 @@ POSTHOOK: query: select * from newtypestbl where da<='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da<='1970-02-20'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -236,11 +236,11 @@ POSTHOOK: query: select * from newtypestbl where da<='1970-02-20'
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da<='1970-02-27' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -249,16 +249,16 @@ POSTHOOK: query: select * from newtypestbl where da<='1970-02-27' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da<='1970-02-27' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -267,16 +267,16 @@ POSTHOOK: query: select * from newtypestbl where da<='1970-02-27' sort by c
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da in (cast('1970-02-21' as date), cast('1970-02-27' as date))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -285,11 +285,11 @@ POSTHOOK: query: select * from newtypestbl where da in (cast('1970-02-21' as dat
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da in (cast('1970-02-21' as date), cast('1970-02-27' as date))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -298,11 +298,11 @@ POSTHOOK: query: select * from newtypestbl where da in (cast('1970-02-21' as dat
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da in (cast('1970-02-20' as date), cast('1970-02-27' as date)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -311,16 +311,16 @@ POSTHOOK: query: select * from newtypestbl where da in (cast('1970-02-20' as dat
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da in (cast('1970-02-20' as date), cast('1970-02-27' as date)) sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -329,16 +329,16 @@ POSTHOOK: query: select * from newtypestbl where da in (cast('1970-02-20' as dat
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da in (cast('1970-02-21' as date), cast('1970-02-22' as date))
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -363,11 +363,11 @@ POSTHOOK: query: select * from newtypestbl where da between '1970-02-19' and '19
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da between '1970-02-19' and '1970-02-22'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -376,11 +376,11 @@ POSTHOOK: query: select * from newtypestbl where da between '1970-02-19' and '19
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
      PREHOOK: query: select * from newtypestbl where da between '1970-02-19' and '1970-02-28' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -389,16 +389,16 @@ POSTHOOK: query: select * from newtypestbl where da between '1970-02-19' and '19
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da between '1970-02-19' and '1970-02-28' sort by c
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl
    @@ -407,16 +407,16 @@ POSTHOOK: query: select * from newtypestbl where da between '1970-02-19' and '19
      POSTHOOK: type: QUERY
      POSTHOOK: Input: default@newtypestbl
      #### A masked pattern was here ####
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -apple bee 0.22 1970-02-20
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    -hello world 11.22 1970-02-27
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +apple bee 0.220 1970-02-20
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
    +hello world 11.220 1970-02-27
      PREHOOK: query: select * from newtypestbl where da between '1970-02-18' and '1970-02-19'
      PREHOOK: type: QUERY
      PREHOOK: Input: default@newtypestbl

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommits @
categorieshive, hadoop
postedNov 4, '15 at 3:41a
activeNov 4, '15 at 3:41a
posts6
users1
websitehive.apache.org

1 user in discussion

Xuefu: 6 posts

People

Translate

site design / logo © 2021 Grokbase