orc表
创建具备ACID及Transactions的表
这里的表需要具备下面几个条件: 
1. 必须以 ORC 格式存储 
2. 必须分 bucket,且不能 sort 
3. 必须显式声明transations
--partitioned by (createtime string)
 
create table if not exists user_orc(
id int,
name string,
createdate string,
updatedate date
)
clustered by (id) into 4 buckets
row format delimited fields terminated by ','
stored as orc
tblproperties ('transactional'='true');
 

insert into test_orc values (1,'a');

select * from test_orc;

insert into test_orc values (1,'陈');

 
 

相关文章:

  • 2022-02-01
  • 2022-12-23
  • 2021-06-14
  • 2021-04-03
  • 2021-11-12
  • 2021-11-11
  • 2022-12-23
猜你喜欢
  • 2021-06-06
  • 2021-10-26
  • 2021-09-24
  • 2022-12-23
  • 2022-12-23
  • 2021-07-14
  • 2021-07-08
相关资源
相似解决方案