unique 表不能创建物化视图

为了更快的定位您的问题,请提供以下信息,谢谢
【详述】问题详细描述
CREATE TABLE material_participant_hour_report (
Report_Date DATE NOT NULL COMMENT “报表日期,格式:yyyy-mm-dd”,
User_Id BIGINT(20) NULL COMMENT “上传人员ID(素材、脚本、拍摄)”,
Role_Id BIGINT(20) NULL COMMENT “设计角色ID”,
Material_Type INT(11) NULL COMMENT “素材类型 0 - 图片 1 - 视频”,
Agent_Material_Id VARCHAR(200) NULL COMMENT “媒体平台素材ID”,
Platform_Type INT(11) NULL COMMENT “平台类型, 1:头条;2:广点通;3:微信;4:快手 yxt_finance_platform_media.id”,
Account_Id BIGINT(20) NULL COMMENT “账户ID”,
Hour INT(11) NULL COMMENT “小时”,
material_cost DOUBLE NULL COMMENT “素材消耗”
) ENGINE=OLAP
UNIQUE KEY(Report_Date, User_Id, Role_Id, Material_Type, Agent_Material_Id, Platform_Type, Account_Id, Hour)

CREATE MATERIALIZED VIEW material_participant_daily_report2 AS
SELECT Report_Date,User_Id,Role_Id,Material_Type,Agent_Material_Id,Platform_Type,Account_Id,
SUM(material_cost) material_cost
FROM material_participant_hour_report
GROUP BY Report_Date,User_Id,Role_Id,Material_Type,Agent_Material_Id,Platform_Type,Account_Id;

错误代码: 1064
The aggregation type of column[mv_sum_material_cost] must be same as the aggregate type of base column in aggregate table
文档说的 支持 unique key表呢


【背景】做过哪些操作?
【业务影响】
【是否存算分离】
【StarRocks版本】例如:3.3
【集群规模】例如:3fe(1 follower+2observer)+3be(fe与be混部)
【机器信息】CPU虚拟核/内存/网卡,例如:48C/64G/万兆
【联系方式】heming@emar.com
【附件】

只能创建异步物化视图 这样就可以创建了
CREATE MATERIALIZED VIEW mv_material_participant_daily_report
DISTRIBUTED BY HASH(Report_Date)
REFRESH ASYNC START(‘2025-01-16 12:00:00’) EVERY (INTERVAL 1 HOUR)
AS SELECT Report_Date,User_Id,Role_Id,Material_Type,Agent_Material_Id,Platform_Type,Account_Id,
SUM(material_cost) material_cost
FROM material_participant_hour_report
GROUP BY Report_Date,User_Id,Role_Id,Material_Type,Agent_Material_Id,Platform_Type,Account_Id;

更新模型同步物化视图只能调整排序键