morrySnow commented on code in PR #34768: URL: https://github.com/apache/doris/pull/34768#discussion_r1604587173
########## fe/fe-core/src/main/java/org/apache/doris/nereids/CascadesContext.java: ########## @@ -138,6 +142,10 @@ public class CascadesContext implements ScheduleContext { // into AggregateFunction with distinct, we can not fold constant in this case private int distinctAggLevel; private final boolean isEnableExprTrace; + // Record table id mapping, the key is the hash code of union catalogId, databaseId, tableId + // the value is the auto-increment id in the cascades context + private final Map<Long, Integer> tableIdMapping = new LinkedHashMap<>(); + private final IdGenerator<TableId> talbeIdGenerator = TableId.createGenerator(); Review Comment: put into StatementContext -- 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