--事务表 能更新的 必须是分桶的(可以分区) 存储为orc 的表并在属性中运行事务才可以
-- 分区分桶表
CREATE TABLE t2 (id INT, name STRING) PARTITIONED BY (country STRING, state STRING)
CLUSTERED BY (id) INTO 8 BUCKETS
STORED AS ORC TBLPROPERTIES ('transactional'='true');
insert into t2 partition(country='cn',state='sd') values(1,'ceshi');