freemandealer commented on code in PR #34615: URL: https://github.com/apache/doris/pull/34615#discussion_r1601088953
########## fe/fe-core/src/main/java/org/apache/doris/qe/cache/CacheAnalyzer.java: ########## @@ -697,15 +700,29 @@ private CacheTable buildCacheTableForOlapScanNode(OlapScanNode node) { CatalogIf catalog = database.getCatalog(); ScanTable scanTable = new ScanTable( new FullTableName(catalog.getName(), database.getFullName(), olapTable.getName()), - olapTable.getVisibleVersionTime(), olapTable.getVisibleVersion()); + olapTable.getVisibleVersion()); scanTables.add(scanTable); + if (Config.isCloudMode()) { + // get version of related partitions in batch Review Comment: > How about extracting this operation into `OlapTable`, just like `OlapTable.selectNonEmptyPartitionIds`? The one in NereidssqlCacheManager doesn't use OlapTable but ScanTable, I have no handy idea to unify the two. -- 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