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


##########
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:
   What I mean is, you can simply bypass `AbstractFileStoreScan` altogether.



-- 
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