1
我試圖更新蜂巢事務表,但其給出以下錯誤:無法更新蜂巢事務表
FAILED: SemanticException [Error 10290]: Encountered parse error while parsing rewritten merge/update or delete query.
下面是我的表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`;