morrySnow commented on code in PR #37154: URL: https://github.com/apache/doris/pull/37154#discussion_r1663598921
########## fe/fe-core/src/main/java/org/apache/doris/nereids/rules/exploration/mv/InitMaterializationContextHook.java: ########## @@ -145,7 +145,8 @@ private List<SyncMaterializationContext> createSyncMvContexts(OlapTable olapTabl keyCount += column.isKey() ? 1 : 0; } for (Map.Entry<String, Long> entry : olapTable.getIndexNameToId().entrySet()) { - if (entry.getValue() != baseIndexId) { + long indexId = entry.getValue(); + if (indexId != baseIndexId && !olapTable.isShadowIndex(indexId)) { Review Comment: add some comment to explain shadowIndex -- 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