Doris中创建物化视图的时候提示报错:The aggregation type of column[user_id] must be same as the aggregate type of ba

提问者:帅平 问题分类:大数据
今天在doris中为costs表创建物化视图的时候提示报错了,具体报错信息使:
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的。
1 个回答
霸占丶迩德
霸占丶迩德
Doris的物化视图不能应用于Unique的表里面。建议调整下数据模型。
发布于:1年前 (2022-11-11) IP属地:四川省
我来回答