【发布时间】:2017-12-24 06:59:18
【问题描述】:
我正在尝试更新 Hive 事务表,但它给出以下错误:
FAILED: SemanticException [Error 10290]: Encountered parse error while 解析重写的合并/更新或删除查询。
下面是我的表格 DDL:
CREATE TABLE bucketed_poc(
Col1 Int,
Col2 Int
)
CLUSTERED BY (Col2) INTO 10 BUCKETS
STORED AS ORC TBLPROPERTIES("transactional"="true","orc.compress"="ZLIB");
以下是我为 ACID 表设置的属性:
set hive.enforce.bucketing = true;
set hive.support.concurrency = true;
set hive.exec.dynamic.partition.mode = nonstrict;
set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
set hive.compactor.initiator.on = true;
set hive.compactor.worker.threads = 1;
我可以删除数据,但更新不起作用。我正在运行下面提到的更新查询:
Update bucketed_poc set col2 = 1 where `col1=877639`;
【问题讨论】: