Sjwhello commented on code in PR #47066: URL: https://github.com/apache/doris/pull/47066#discussion_r1918119086
########## fe/fe-core/src/main/java/org/apache/doris/nereids/SqlCacheContext.java: ########## @@ -462,10 +463,21 @@ public static class ScanTable { public final FullTableName fullTableName; public final long latestVersion; public final List<Long> scanPartitions = Lists.newArrayList(); + public final List<Column> latestColumns = Lists.newArrayList(); + public final Map<Long, Long> scanPartitionIdToVersion = Maps.newHashMap(); + public void addScanPartition(Long partitionId) { this.scanPartitions.add(partitionId); } + + public void setLatestColumns(List<Column> columns) { + this.latestColumns.addAll(columns); Review Comment: > i think we need deep copy each column here. because column is mutable OK -- 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