zhoulii commented on code in PR #9321:
URL: https://github.com/apache/paimon/pull/9321#discussion_r3831197352
##########
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:
Thanks, addressed. The projected/full-read selection is now centralized in
an overloaded readManifest method, which checks cache eligibility and filters
requiring complete manifest entries.
readPartitionEntries only supplies the projection, projected filter,
converter, and aggregation consumer, while the projected path still aggregates
entries in a streaming manner.
--
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]