perf(read): reduce Arrow read-path overhead - #242
Merged
Conversation
2 tasks
Contributor
Author
lxy-9602
reviewed
Aug 24, 2026
zjw1111
reviewed
Aug 25, 2026
zjw1111
left a comment
Collaborator
There was a problem hiding this comment.
Thanks for working on the read-path overhead here — the ColumnarRow reuse and the builder capacity reservation both look like the right direction, and I verified the row-reuse change is safe.
Two points I'd like to raise before this lands, left inline.
Avoid redundant Arrow array validation in release builds, reuse ColumnarRow views while scanning manifest batches, and reserve Avro builder capacity ahead of decoding.
Place the mutable builder parameter last and express debug-only array validation with assert.
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.


Purpose
Linked issue: #240
Reduce avoidable CPU and memory-management overhead in the Avro and manifest read paths:
ColumnarRowwhen scanning rows in the same manifest batch, updating only its row index.These changes reduce repeated type fingerprint calculation, row-view construction and destruction, memory reallocations, and data copying.
Tests
paimon-avro-format-test: 68 tests passed.ManifestFileTest.*: 8 tests passed.ColumnarRowTest.TestSimple: passed.ColumnarRowacross different row indexes.pre-commit run --files <changed-files>: passed.git diff --check: passed.API and Format
No public API changes under
include/paimon/.No storage format or protocol changes.
Documentation
No documentation changes. This is an internal performance optimization and does not introduce new user-facing functionality.
Generative AI tooling
Generated-by: OpenAI Codex (GPT-5)