blob: 91d2599a82ecb9871142ff96e7f1c0f3d3782451 [file] [log] [blame]
--! qt:dataset:alltypesorc
set hive.mapred.mode=nonstrict;
set hive.support.concurrency=true;
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
CREATE TABLE acid_vectorized_n2(a INT, b STRING, c float) CLUSTERED BY(a) INTO 2 BUCKETS STORED AS ORC TBLPROPERTIES ('transactional'='true');
insert into table acid_vectorized_n2 select cint, cstring1, cfloat from alltypesorc where cint is not null order by cint limit 10;
set hive.vectorized.execution.enabled=true;
select a,b from acid_vectorized_n2 order by a;
select a,c from acid_vectorized_n2 order by a;
select b,c from acid_vectorized_n2 order by b;