Doris中创建物化视图的时候提示报错:The aggregation type of column[user_id] must be same as the aggregate type of ba
今天在doris中为costs表创建物化视图的时候提示报错了,具体报错信息使:
costs表的数据模型是unique的。
create materialized view store_amt as select user_id,sum(costs_total) from costs GROUP BY user_id
> 1105 - errCode = 2, detailMessage = The aggregation type of column[user_id] must be same as the aggregate type of base column in aggregate table
> 时间: 0.049s
costs表的数据模型是unique的。
发布于:3年前 (2022-11-11) IP属地:四川省
1 个回答
Doris的物化视图不能应用于Unique的表里面。建议调整下数据模型。
发布于:3年前 (2022-11-11) IP属地:四川省
我来回答
您需要 登录 后回答此问题!