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


##########
paimon-core/src/main/java/org/apache/paimon/operation/AbstractFileStoreScan.java:
##########
@@ -367,16 +373,71 @@ public List<PartitionEntry> readPartitionEntries() {
         List<ManifestFileMeta> manifests = readManifests().filteredManifests;
         Map<BinaryRow, PartitionEntry> partitions = new ConcurrentHashMap<>();
         Consumer<ManifestFileMeta> processor =
-                m ->
+                manifest -> {
+                    if (canUseProjectedPartitionScan(manifest)) {
+                        readProjectedPartitionEntries(manifest, partitions);
+                    } else {
                         PartitionEntry.merge(
-                                readManifest(m, 
PartitionEntry::fromManifestEntry, null, null),
+                                readManifest(

Review Comment:
   Should just modify `readManifest`, Only `readManifest` knows whether direct 
access is currently possible, whether there are filtering conditions, and so on.



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