blob: 18a21b05208834ef3be100319abf21b90683f8f7 [file] [log] [blame]
set hive.vectorized.execution.enabled=false;
create table if not exists alltypes_n2 (
bo boolean,
ti tinyint,
si smallint,
i int,
bi bigint,
f float,
d double,
de decimal(10,3),
ts timestamp,
da date,
s string,
c char(5),
vc varchar(5),
m map<string, string>,
l array<int>,
st struct<c1:int, c2:string>
) row format delimited fields terminated by '|'
collection items terminated by ','
map keys terminated by ':' stored as textfile;
create table alltypes_orc_n3 like alltypes_n2;
alter table alltypes_orc_n3 set fileformat orc;
load data local inpath '../../data/files/alltypes2.txt' overwrite into table alltypes_n2;
insert overwrite table alltypes_orc_n3 select * from alltypes_n2;
select min(bo), max(bo), min(ti), max(ti), min(si), max(si), min(i), max(i), min(bi), max(bi), min(f), max(f), min(d), max(d), min(de), max(de), min(ts), max(ts), min(da), max(da), min(s), max(s), min(c), max(c), min(vc), max(vc) from alltypes_n2;
select min(bo), max(bo), min(ti), max(ti), min(si), max(si), min(i), max(i), min(bi), max(bi), min(f), max(f), min(d), max(d), min(de), max(de), min(ts), max(ts), min(da), max(da), min(s), max(s), min(c), max(c), min(vc), max(vc) from alltypes_orc_n3;