feat(go): add BlobDescriptor batch and stream readers - #761
Merged
JingsongLi merged 1 commit intoAug 31, 2026
Merged
Conversation
XiaoHongbo-Hope
force-pushed
the
codex/go-blob-descriptor-reader
branch
from
August 31, 2026 09:44
7e7eb31 to
407f4ce
Compare
XiaoHongbo-Hope
marked this pull request as ready for review
August 31, 2026 09:45
JingsongLi
reviewed
Aug 31, 2026
XiaoHongbo-Hope
force-pushed
the
codex/go-blob-descriptor-reader
branch
from
August 31, 2026 11:22
407f4ce to
132a2fe
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BlobReaderandBlobStreamthrough C and Goio.ReadSeekCloserstreamstable.NewBlobReader()reuse the table FileIO, including DLF token refreshDescriptor parsing, validation, range merging, concurrency limits, and storage I/O remain in Rust core (#762 and #763). The Go layer only manages FFI ownership and Go-friendly APIs.
Go API
ReadBlobdelegates toReadBlobs. Batch reads merge compatible ranges and preserve input order. Independent streams are lazy and are not merged.Static options passed to
NewBlobReaderare not refreshed.table.NewBlobReader()retains the table's refreshing FileIO for DLF temporary data tokens.Validation
cargo test --locked -p paimon-c --lib: 71 passedgo vet, rustfmt, clippy, dependency report, and diff checks passedThis PR adds only the C/Go binding layer; the Rust core implementation is already merged.