doris创建表的时候报错提示:enable_single_replica_compaction property is not supported for merge-on-write table
doris创建表的时候报错了,提示:
建表语句是:
enable_single_replica_compaction property is not supported for merge-on-write table
建表语句是:
CREATE TABLE `orders2` (
`order_id` int NULL,
`user_id` int NULL
) ENGINE=OLAP
UNIQUE KEY(`order_id`)
DISTRIBUTED BY HASH(`order_id`) BUCKETS 2
PROPERTIES (
"replication_allocation" = "tag.location.default: 1",
"enable_single_replica_compaction" = "true"
);
发布于:4个月前 (12-17) IP属地:四川省
2 个回答
这是因为建表的时候配置了单副本compaction。目前单副本compaction不支持unique模型,仅支持DUPLICATE/AGGREGATE表模型。修改下表类型即可。
发布于:4个月前 (12-17) IP属地:四川省
我来回答
您需要 登录 后回答此问题!