zhoulii commented on code in PR #9321:
URL: https://github.com/apache/paimon/pull/9321#discussion_r4488300938


##########
paimon-core/src/main/java/org/apache/paimon/operation/AbstractFileStoreScan.java:
##########
@@ -365,16 +365,19 @@ public List<SimpleFileEntry> readSimpleEntries() {
     @Override
     public List<PartitionEntry> readPartitionEntries() {
         List<ManifestFileMeta> manifests = readManifests().filteredManifests;
-        Map<BinaryRow, PartitionEntry> partitions = new ConcurrentHashMap<>();
-        Consumer<ManifestFileMeta> processor =
-                m ->
-                        PartitionEntry.merge(
-                                readManifest(m, 
PartitionEntry::fromManifestEntry, null, null),
-                                partitions);
-        randomlyOnlyExecute(getExecutorService(parallelism), processor, 
manifests);
-        return partitions.values().stream()
-                .filter(p -> p.fileCount() > 0)
-                .collect(Collectors.toList());
+        return new PartitionEntryScanner(

Review Comment:
   Thanks for clarifying. Partition expiration now uses a dedicated 
PartitionEntryScanner that reads manifests directly, bypassing 
AbstractFileStoreScan. Both update-time and values-time use this path, with 
partition-filter pushdown and manifest cache reuse preserved.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to