[client] Expose Arrow changelog batches - #4006
Open
jordepic wants to merge 1 commit into
Open
Conversation
jordepic
force-pushed
the
client-arrow-changelog-batches
branch
from
August 15, 2026 23:57
21c0562 to
1d32bf5
Compare
woodsbrandon044-hash
approved these changes
Aug 16, 2026
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.
Generated-by: Codex (GPT-5) following the guidelines
Purpose
Linked issue: close #4005
Expose the Arrow representation that Fluss already stores in ARROW primary-key log batches through the Java client, including the per-row changelog sidecar.
StreamFusion needs this path for its Flink Fluss source so live-log batches can remain Arrow-backed instead of being materialized as
RowDatafirst. Snapshot records can still use the normal conversion path initially; this PR provides the direct Arrow path for the unbounded changelog.Brief change log
LogScanner.pollRecordBatchand its result types to public evolving APIs.ChangeTypeaccess and a read-only view of the raw sidecar.LogScannerimplementations.Tests
LogScannerITCase#testPollArrowBatchesWithPrimaryKeyChangelogcovering insert, update-before, update-after, delete, projected Arrow columns, and mid-batch offset slicing.testPollArrowBatchesWithSchemaEvolution: 2 tests passed.fluss-flink-commonand its dependencies with test compilation enabled: success.API and Format
This adds public-evolving Java client APIs for Arrow batch polling and changelog access. Existing
LogScannerimplementations remain compatible through a default method.There is no storage-format change: the implementation exposes the change-type vector already stored before the Arrow IPC payload in primary-key log batches and reuses the existing server-side Arrow projection path.
Caller-provided Arrow allocator support is intentionally left for follow-up because allocator ownership and lifecycle need a separate API decision.
Documentation
Public API Javadocs describe format restrictions, ownership, close requirements, and changelog behavior. No user-facing storage or configuration documentation changes are required.