http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/orc_merge_incompat2.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/orc_merge_incompat2.q.out 
b/ql/src/test/results/clientpositive/orc_merge_incompat2.q.out
index 0b76bfb..95fa5ca 100644
--- a/ql/src/test/results/clientpositive/orc_merge_incompat2.q.out
+++ b/ql/src/test/results/clientpositive/orc_merge_incompat2.q.out
@@ -1,16 +1,16 @@
-PREHOOK: query: create table orc_merge5 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5
-POSTHOOK: query: create table orc_merge5 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5
-PREHOOK: query: create table orc_merge5a (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (st double) 
stored as orc
+PREHOOK: query: create table orc_merge5a (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (st 
double) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5a
-POSTHOOK: query: create table orc_merge5a (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (st double) 
stored as orc
+POSTHOOK: query: create table orc_merge5a (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (st 
double) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5a
@@ -39,7 +39,7 @@ STAGE PLANS:
             alias: orc_merge5
             Statistics: Num rows: 1 Data size: 2464020 Basic stats: COMPLETE 
Column stats: NONE
             Select Operator
-              expressions: userid (type: bigint), string1 (type: string), 
subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: timestamp), 
subtype (type: double)
+              expressions: userid (type: bigint), string1 (type: string), 
subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: timestamp), 
subtype (type: double)
               outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
               Statistics: Num rows: 1 Data size: 2464020 Basic stats: COMPLETE 
Column stats: NONE
               File Output Operator
@@ -51,7 +51,7 @@ STAGE PLANS:
                     serde: org.apache.hadoop.hive.ql.io.orc.OrcSerde
                     name: default.orc_merge5a
               Select Operator
-                expressions: _col0 (type: bigint), _col1 (type: string), _col2 
(type: double), _col3 (type: decimal(10,0)), _col4 (type: timestamp), _col5 
(type: double)
+                expressions: _col0 (type: bigint), _col1 (type: string), _col2 
(type: double), _col3 (type: decimal(38,0)), _col4 (type: timestamp), _col5 
(type: double)
                 outputColumnNames: userid, string1, subtype, decimal1, ts, st
                 Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                 Group By Operator
@@ -65,7 +65,7 @@ STAGE PLANS:
                     sort order: +
                     Map-reduce partition columns: _col0 (type: double)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
-                    value expressions: _col1 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,bitvector:binary>),
 _col2 (type: 
struct<columntype:string,maxlength:bigint,sumlength:bigint,count:bigint,countnulls:bigint,bitvector:binary>),
 _col3 (type: 
struct<columntype:string,min:double,max:double,countnulls:bigint,bitvector:binary>),
 _col4 (type: 
struct<columntype:string,min:decimal(10,0),max:decimal(10,0),countnulls:bigint,bitvector:binary>),
 _col5 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,bitvector:binary>)
+                    value expressions: _col1 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,bitvector:binary>),
 _col2 (type: 
struct<columntype:string,maxlength:bigint,sumlength:bigint,count:bigint,countnulls:bigint,bitvector:binary>),
 _col3 (type: 
struct<columntype:string,min:double,max:double,countnulls:bigint,bitvector:binary>),
 _col4 (type: 
struct<columntype:string,min:decimal(38,0),max:decimal(38,0),countnulls:bigint,bitvector:binary>),
 _col5 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,bitvector:binary>)
       Reduce Operator Tree:
         Group By Operator
           aggregations: compute_stats(VALUE._col0), 
compute_stats(VALUE._col1), compute_stats(VALUE._col2), 
compute_stats(VALUE._col3), compute_stats(VALUE._col4)
@@ -74,7 +74,7 @@ STAGE PLANS:
           outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
           Statistics: Num rows: 1 Data size: 2464020 Basic stats: COMPLETE 
Column stats: NONE
           Select Operator
-            expressions: _col1 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col2 (type: 
struct<columntype:string,maxlength:bigint,avglength:double,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col3 (type: 
struct<columntype:string,min:double,max:double,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col4 (type: 
struct<columntype:string,min:decimal(10,0),max:decimal(10,0),countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col5 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col0 (type: double)
+            expressions: _col1 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col2 (type: 
struct<columntype:string,maxlength:bigint,avglength:double,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col3 (type: 
struct<columntype:string,min:double,max:double,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col4 (type: 
struct<columntype:string,min:decimal(38,0),max:decimal(38,0),countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col5 (type: 
struct<columntype:string,min:bigint,max:bigint,countnulls:bigint,numdistinctvalues:bigint,ndvbitvector:binary>),
 _col0 (type: double)
             outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
             Statistics: Num rows: 1 Data size: 2464020 Basic stats: COMPLETE 
Column stats: NONE
             File Output Operator
@@ -102,7 +102,7 @@ STAGE PLANS:
       Basic Stats Work:
       Column Stats Desc:
           Columns: userid, string1, subtype, decimal1, ts
-          Column Types: bigint, string, double, decimal(10,0), timestamp
+          Column Types: bigint, string, double, decimal(38,0), timestamp
           Table: default.orc_merge5a
 
 PREHOOK: query: insert overwrite table orc_merge5a partition (st) select 
userid,string1,subtype,decimal1,ts,subtype from orc_merge5 order by userid
@@ -116,22 +116,22 @@ POSTHOOK: Output: default@orc_merge5a@st=0.8
 POSTHOOK: Output: default@orc_merge5a@st=1.8
 POSTHOOK: Output: default@orc_merge5a@st=8.0
 POSTHOOK: Output: default@orc_merge5a@st=80.0
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
@@ -147,22 +147,22 @@ POSTHOOK: Output: default@orc_merge5a@st=0.8
 POSTHOOK: Output: default@orc_merge5a@st=1.8
 POSTHOOK: Output: default@orc_merge5a@st=8.0
 POSTHOOK: Output: default@orc_merge5a@st=80.0
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
@@ -178,22 +178,22 @@ POSTHOOK: Output: default@orc_merge5a@st=0.8
 POSTHOOK: Output: default@orc_merge5a@st=1.8
 POSTHOOK: Output: default@orc_merge5a@st=8.0
 POSTHOOK: Output: default@orc_merge5a@st=80.0
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
@@ -209,22 +209,22 @@ POSTHOOK: Output: default@orc_merge5a@st=0.8
 POSTHOOK: Output: default@orc_merge5a@st=1.8
 POSTHOOK: Output: default@orc_merge5a@st=8.0
 POSTHOOK: Output: default@orc_merge5a@st=80.0
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:userid, type:bigint, comment:null), ]
-POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:string1, type:string, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:subtype, type:double, comment:null), ]
 POSTHOOK: Lineage: orc_merge5a PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5)orc_merge5.FieldSchema(name:ts, type:timestamp, comment:null), ]

http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/orc_struct_type_vectorization.q.out
----------------------------------------------------------------------
diff --git 
a/ql/src/test/results/clientpositive/orc_struct_type_vectorization.q.out 
b/ql/src/test/results/clientpositive/orc_struct_type_vectorization.q.out
index c67e8d1..66daa07 100644
--- a/ql/src/test/results/clientpositive/orc_struct_type_vectorization.q.out
+++ b/ql/src/test/results/clientpositive/orc_struct_type_vectorization.q.out
@@ -122,8 +122,8 @@ STAGE PLANS:
       Map Vectorization:
           enabled: true
           enabledConditionsMet: hive.vectorized.use.vectorized.input.format IS 
true
-          inputFormatFeatureSupport: []
-          featureSupportInUse: []
+          inputFormatFeatureSupport: [DECIMAL_64]
+          featureSupportInUse: [DECIMAL_64]
           inputFileFormats: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat
           allNative: false
           usesVectorUDFAdaptor: false
@@ -257,8 +257,8 @@ STAGE PLANS:
       Map Vectorization:
           enabled: true
           enabledConditionsMet: hive.vectorized.use.vectorized.input.format IS 
true
-          inputFormatFeatureSupport: []
-          featureSupportInUse: []
+          inputFormatFeatureSupport: [DECIMAL_64]
+          featureSupportInUse: [DECIMAL_64]
           inputFileFormats: org.apache.hadoop.hive.ql.io.orc.OrcInputFormat
           allNative: false
           usesVectorUDFAdaptor: false

http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/spark/orc_merge5.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/orc_merge5.q.out 
b/ql/src/test/results/clientpositive/spark/orc_merge5.q.out
index e9e24b1..5033c13 100644
--- a/ql/src/test/results/clientpositive/spark/orc_merge5.q.out
+++ b/ql/src/test/results/clientpositive/spark/orc_merge5.q.out
@@ -1,16 +1,16 @@
-PREHOOK: query: create table orc_merge5_n5 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5_n5 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5_n5
-POSTHOOK: query: create table orc_merge5_n5 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5_n5 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5_n5
-PREHOOK: query: create table orc_merge5b_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5b_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5b_n0
-POSTHOOK: query: create table orc_merge5b_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5b_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5b_n0
@@ -46,7 +46,7 @@ STAGE PLANS:
                     predicate: (userid <= 13L) (type: boolean)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp)
+                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
                       Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                       File Output Operator
@@ -80,7 +80,7 @@ POSTHOOK: query: insert overwrite table orc_merge5b_n0 select 
userid,string1,sub
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n5
 POSTHOOK: Output: default@orc_merge5b_n0
-POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.string1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.subtype SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.ts SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -137,7 +137,7 @@ STAGE PLANS:
                     predicate: (userid <= 13L) (type: boolean)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp)
+                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
                       Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                       File Output Operator
@@ -208,7 +208,7 @@ POSTHOOK: query: insert overwrite table orc_merge5b_n0 
select userid,string1,sub
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n5
 POSTHOOK: Output: default@orc_merge5b_n0
-POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.string1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.subtype SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.ts SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -222,7 +222,7 @@ POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5b_n0
 POSTHOOK: Output: default@orc_merge5b_n0
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: select * from orc_merge5b_n0
 PREHOOK: type: QUERY
 PREHOOK: Input: default@orc_merge5b_n0
@@ -242,7 +242,7 @@ POSTHOOK: query: insert overwrite table orc_merge5b_n0 
select userid,string1,sub
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n5
 POSTHOOK: Output: default@orc_merge5b_n0
-POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b_n0.decimal1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.string1 SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.subtype SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b_n0.ts SIMPLE 
[(orc_merge5_n5)orc_merge5_n5.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -313,7 +313,7 @@ POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5b_n0
 POSTHOOK: Output: default@orc_merge5b_n0
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: select * from orc_merge5b_n0
 PREHOOK: type: QUERY
 PREHOOK: Input: default@orc_merge5b_n0

http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/spark/orc_merge6.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/orc_merge6.q.out 
b/ql/src/test/results/clientpositive/spark/orc_merge6.q.out
index 99624bc..e50ab30 100644
--- a/ql/src/test/results/clientpositive/spark/orc_merge6.q.out
+++ b/ql/src/test/results/clientpositive/spark/orc_merge6.q.out
@@ -1,16 +1,16 @@
-PREHOOK: query: create table orc_merge5_n4 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5_n4 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5_n4
-POSTHOOK: query: create table orc_merge5_n4 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5_n4 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5_n4
-PREHOOK: query: create table orc_merge5a_n1 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (year string, 
hour int) stored as orc
+PREHOOK: query: create table orc_merge5a_n1 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (year 
string, hour int) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5a_n1
-POSTHOOK: query: create table orc_merge5a_n1 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (year string, 
hour int) stored as orc
+POSTHOOK: query: create table orc_merge5a_n1 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (year 
string, hour int) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5a_n1
@@ -46,7 +46,7 @@ STAGE PLANS:
                     predicate: (userid <= 13L) (type: boolean)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp)
+                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
                       Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                       File Output Operator
@@ -83,7 +83,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2000",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2000/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -96,7 +96,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2001",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2001/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -184,7 +184,7 @@ STAGE PLANS:
                     predicate: (userid <= 13L) (type: boolean)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp)
+                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
                       Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                       File Output Operator
@@ -258,7 +258,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2000",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2000/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -271,7 +271,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2001",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2001/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -297,9 +297,9 @@ POSTHOOK: Input: default@orc_merge5a_n1
 POSTHOOK: Output: default@orc_merge5a_n1
 POSTHOOK: Output: default@orc_merge5a_n1@year=2001/hour=24
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: show partitions orc_merge5a_n1
 PREHOOK: type: SHOWPARTITIONS
 PREHOOK: Input: default@orc_merge5a_n1
@@ -334,7 +334,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2000",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2000/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2000,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -347,7 +347,7 @@ POSTHOOK: query: insert overwrite table orc_merge5a_n1 
partition (year="2001",ho
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n4
 POSTHOOK: Output: default@orc_merge5a_n1@year=2001/hour=24
-POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).decimal1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).string1 SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).subtype SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n1 PARTITION(year=2001,hour=24).ts SIMPLE 
[(orc_merge5_n4)orc_merge5_n4.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -472,9 +472,9 @@ POSTHOOK: Input: default@orc_merge5a_n1
 POSTHOOK: Output: default@orc_merge5a_n1
 POSTHOOK: Output: default@orc_merge5a_n1@year=2001/hour=24
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###       1051 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###       1054 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: show partitions orc_merge5a_n1
 PREHOOK: type: SHOWPARTITIONS
 PREHOOK: Input: default@orc_merge5a_n1

http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/spark/orc_merge7.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/orc_merge7.q.out 
b/ql/src/test/results/clientpositive/spark/orc_merge7.q.out
index 05177f8..aa2f8bd 100644
--- a/ql/src/test/results/clientpositive/spark/orc_merge7.q.out
+++ b/ql/src/test/results/clientpositive/spark/orc_merge7.q.out
@@ -1,16 +1,16 @@
-PREHOOK: query: create table orc_merge5_n2 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5_n2 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5_n2
-POSTHOOK: query: create table orc_merge5_n2 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5_n2 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5_n2
-PREHOOK: query: create table orc_merge5a_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (st double) 
stored as orc
+PREHOOK: query: create table orc_merge5a_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (st 
double) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5a_n0
-POSTHOOK: query: create table orc_merge5a_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) partitioned by (st double) 
stored as orc
+POSTHOOK: query: create table orc_merge5a_n0 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) partitioned by (st 
double) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5a_n0
@@ -42,7 +42,7 @@ STAGE PLANS:
                   alias: orc_merge5_n2
                   Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp), subtype (type: double)
+                    expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp), subtype (type: double)
                     outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     File Output Operator
@@ -81,22 +81,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -112,22 +112,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -211,7 +211,7 @@ STAGE PLANS:
                   alias: orc_merge5_n2
                   Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                   Select Operator
-                    expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp), subtype (type: double)
+                    expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp), subtype (type: double)
                     outputColumnNames: _col0, _col1, _col2, _col3, _col4, _col5
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     File Output Operator
@@ -287,22 +287,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -318,22 +318,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -361,7 +361,7 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 Found 1 items
 -rw-r--r--   3 ### USER ### ### GROUP ###        614 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###        968 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###        971 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: show partitions orc_merge5a_n0
 PREHOOK: type: SHOWPARTITIONS
 PREHOOK: Input: default@orc_merge5a_n0
@@ -402,22 +402,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -433,22 +433,22 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=1.8
 POSTHOOK: Output: default@orc_merge5a_n0@st=8.0
 POSTHOOK: Output: default@orc_merge5a_n0@st=80.0
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=0.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=1.8).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=8.0).userid SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:userid, type:bigint, 
comment:null), ]
-POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).decimal1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).string1 SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).subtype SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5a_n0 PARTITION(st=80.0).ts SIMPLE 
[(orc_merge5_n2)orc_merge5_n2.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -574,7 +574,7 @@ POSTHOOK: Output: default@orc_merge5a_n0@st=0.8
 Found 1 items
 -rw-r--r--   3 ### USER ### ### GROUP ###        614 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 Found 1 items
--rw-r--r--   3 ### USER ### ### GROUP ###        968 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
+-rw-r--r--   3 ### USER ### ### GROUP ###        971 ### HDFS DATE ### 
hdfs://### HDFS PATH ###
 PREHOOK: query: show partitions orc_merge5a_n0
 PREHOOK: type: SHOWPARTITIONS
 PREHOOK: Input: default@orc_merge5a_n0

http://git-wip-us.apache.org/repos/asf/hive/blob/659e4107/ql/src/test/results/clientpositive/spark/orc_merge_incompat1.q.out
----------------------------------------------------------------------
diff --git a/ql/src/test/results/clientpositive/spark/orc_merge_incompat1.q.out 
b/ql/src/test/results/clientpositive/spark/orc_merge_incompat1.q.out
index 72cccd8..f01c368 100644
--- a/ql/src/test/results/clientpositive/spark/orc_merge_incompat1.q.out
+++ b/ql/src/test/results/clientpositive/spark/orc_merge_incompat1.q.out
@@ -1,16 +1,16 @@
-PREHOOK: query: create table orc_merge5_n3 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5_n3 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5_n3
-POSTHOOK: query: create table orc_merge5_n3 (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5_n3 (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5_n3
-PREHOOK: query: create table orc_merge5b (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+PREHOOK: query: create table orc_merge5b (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 PREHOOK: type: CREATETABLE
 PREHOOK: Output: database:default
 PREHOOK: Output: default@orc_merge5b
-POSTHOOK: query: create table orc_merge5b (userid bigint, string1 string, 
subtype double, decimal1 decimal, ts timestamp) stored as orc
+POSTHOOK: query: create table orc_merge5b (userid bigint, string1 string, 
subtype double, decimal1 decimal(38,0), ts timestamp) stored as orc
 POSTHOOK: type: CREATETABLE
 POSTHOOK: Output: database:default
 POSTHOOK: Output: default@orc_merge5b
@@ -45,7 +45,7 @@ STAGE PLANS:
                     predicate: (userid <= 13L) (type: boolean)
                     Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                     Select Operator
-                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(10,0)), ts (type: 
timestamp)
+                      expressions: userid (type: bigint), string1 (type: 
string), subtype (type: double), decimal1 (type: decimal(38,0)), ts (type: 
timestamp)
                       outputColumnNames: _col0, _col1, _col2, _col3, _col4
                       Statistics: Num rows: 1 Data size: 2464020 Basic stats: 
COMPLETE Column stats: NONE
                       File Output Operator
@@ -79,7 +79,7 @@ POSTHOOK: query: insert overwrite table orc_merge5b select 
userid,string1,subtyp
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -92,7 +92,7 @@ POSTHOOK: query: insert into table orc_merge5b select 
userid,string1,subtype,dec
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -105,7 +105,7 @@ POSTHOOK: query: insert into table orc_merge5b select 
userid,string1,subtype,dec
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -118,7 +118,7 @@ POSTHOOK: query: insert into table orc_merge5b select 
userid,string1,subtype,dec
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -131,7 +131,7 @@ POSTHOOK: query: insert into table orc_merge5b select 
userid,string1,subtype,dec
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]
@@ -144,7 +144,7 @@ POSTHOOK: query: insert into table orc_merge5b select 
userid,string1,subtype,dec
 POSTHOOK: type: QUERY
 POSTHOOK: Input: default@orc_merge5_n3
 POSTHOOK: Output: default@orc_merge5b
-POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(10,0), 
comment:null), ]
+POSTHOOK: Lineage: orc_merge5b.decimal1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:decimal1, type:decimal(38,0), 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.string1 SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:string1, type:string, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.subtype SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:subtype, type:double, 
comment:null), ]
 POSTHOOK: Lineage: orc_merge5b.ts SIMPLE 
[(orc_merge5_n3)orc_merge5_n3.FieldSchema(name:ts, type:timestamp, 
comment:null), ]

Reply via email to