SWJTU-ZhangLei commented on code in PR #11396: URL: https://github.com/apache/doris/pull/11396#discussion_r934334518
########## fe/fe-core/src/main/java/org/apache/doris/analysis/MVColumnItem.java: ########## @@ -108,6 +108,7 @@ public Column toMVColumn(OlapTable olapTable) throws DdlException { Preconditions.checkNotNull(defineExpr != null); Column result = new Column(name, type, isKey, aggregationType, ColumnDef.DefaultValue.ZERO, ""); result.setDefineExpr(defineExpr); + result.setUniqueId(olapTable.incAndGetMaxColUniqueId()); Review Comment: In the future, this change will cause problem when we want to support mv do light schema change and olapTable.incAndGetMaxColUniqueId() need to write editlog for duration. the commit can justly use temporaryly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org