[spark][doc] Add Spark batch union read#3142
Open
Yohahaha wants to merge 2 commits intoapache:mainfrom
Open
Conversation
Contributor
Author
|
@wuchong @YannByron @luoyuxia please take a look, thank you! |
beryllw
reviewed
Apr 22, 2026
| The union read works for both **log tables** and **primary key tables**: | ||
|
|
||
| - **Log tables**: Combines Fluss log data with lake historical data | ||
| - **Primary key tables**: Merges the latest Fluss snapshot with log changes and lake history to provide the most up-to-date view |
Contributor
There was a problem hiding this comment.
Combines lake snapshot data with recent KV log changes using sort-merge to provide the most up-to-date view
The phrase "latest Fluss snapshot" may cause confusion, as Fluss has its own internal snapshot concept (used for KV compaction).
beryllw
reviewed
Apr 22, 2026
| -- Returns complete view combining Fluss and lake data | ||
| SELECT * FROM fluss_order_with_lake ORDER BY order_key; | ||
| ``` | ||
|
|
Contributor
There was a problem hiding this comment.
May be we could add a note:
Union read requires `scan.startup.mode = full` (default). Non-FULL modes (e.g., `earliest`, `latest`) bypass the lake path and read only from Fluss.
Contributor
Author
There was a problem hiding this comment.
scan.startup.mode was not used in batch read actually, will fix related codes in another pr.
Contributor
|
Thanks for the PR! Overall LGTM, with a few minor comments. |
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: close #xxx
Brief change log
Tests
API and Format
Documentation