leaves12138 opened a new pull request, #9095:
URL: https://github.com/apache/paimon/pull/9095
## What changed
- Add a reusable `BinaryIndexManifestEntry` view for index manifest records.
- Add `BinaryIndexManifestReader` to read only kind, partition, bucket,
index type, and the global-index fields needed by planning.
- Expose schema field-name constants instead of duplicating on-disk field
names in projections.
- Add focused coverage for projected field values, ADD/DELETE records,
absent global-index metadata, and iterator reuse/clearing.
## Why
Memory-sensitive planning only needs a small subset of each index manifest
entry. The existing reader materializes complete `IndexManifestEntry` and
`IndexFileMeta` object graphs, including fields that these planning paths never
consume. A projected binary scan avoids those objects and reuses one mutable
entry view across the iterator.
## Impact
Existing index manifest serialization and readers are unchanged. The new API
is opt-in and keeps the existing on-disk schema intact.
## Validation
```text
mvn -pl paimon-core -am -DskipITs -Dfast \
-Dtest=BinaryIndexManifestReaderTest,IndexManifestEntrySerializerTest \
-Dsurefire.failIfNoSpecifiedTests=false test
```
Result: 5 tests passed. Spotless and Checkstyle passed as part of the Maven
build.
--
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]