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"
);
2 个回答
青山依旧
青山依旧
这是因为建表的时候配置了单副本compaction。目前单副本compaction不支持unique模型,仅支持DUPLICATE/AGGREGATE表模型。修改下表类型即可。
发布于:4个月前 (12-17) IP属地:四川省
我来回答