blob: d23f50a2c73e76a2af1a9316e06862c0ed5493c8 [file] [log] [blame]
set hive.mapred.mode=nonstrict;
set hive.support.concurrency=true;
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
create temporary table acid_ivp_temp(ti tinyint,
si smallint,
i int,
bi bigint,
f float,
d double,
de decimal(5,2),
t timestamp,
dt date,
s string,
vc varchar(128),
ch char(12)) partitioned by (ds string) clustered by (i) into 2 buckets stored as orc TBLPROPERTIES ('transactional'='true');
alter table acid_ivp_temp add partition (ds='today');
insert into table acid_ivp_temp partition (ds='today') values
(1, 257, 65537, 4294967297, 3.14, 3.141592654, 109.23, '2014-08-25 17:21:30.0', '2014-08-25', 'mary had a little lamb', 'ring around the rosie', 'red'),
(3, 25, 6553, 429496729, 0.14, 1923.141592654, 1.2301, '2014-08-24 17:21:30.0', '2014-08-26', 'its fleece was white as snow', 'a pocket full of posies', 'blue');
select * from acid_ivp_temp order by i;