xiaokang commented on code in PR #32841: URL: https://github.com/apache/doris/pull/32841#discussion_r1540419359
########## fe/fe-core/src/main/java/org/apache/doris/catalog/MaterializedIndexMeta.java: ########## @@ -361,4 +364,25 @@ public void initColumnNameMap() { definedNameToColumn.put(normalizeName(column.getDefineName()), column); } } + + public boolean initWithExtraSchema() { Review Comment: move to Index class ########## fe/fe-core/src/main/java/org/apache/doris/catalog/OlapTable.java: ########## @@ -1551,6 +1551,9 @@ public void readFields(DataInput in) throws IOException { long indexId = in.readLong(); this.indexNameToId.put(indexName, indexId); MaterializedIndexMeta indexMeta = MaterializedIndexMeta.read(in); + if (indexMeta.initWithExtraSchema()) { Review Comment: do not do it in readFields -- 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