[python] Add streaming infrastructure: scanners, consumers, caching#7342
Closed
tub wants to merge 1 commit intoapache:masterfrom
Closed
[python] Add streaming infrastructure: scanners, consumers, caching#7342tub wants to merge 1 commit intoapache:masterfrom
tub wants to merge 1 commit intoapache:masterfrom
Conversation
This was referenced Mar 4, 2026
…sharding Add foundational infrastructure for pure-Python streaming reads: - Follow-up scanners (delta, changelog, incremental diff) for continuous snapshot polling - Consumer manager for persisting read progress - LRU caching for snapshots, manifests, and manifest lists - Batch existence checks for efficient file IO - Bucket-based sharding for parallel consumption - Row kind support in table reads - Streaming-related core options - Backtick support for identifier parsing Includes unit tests for all new components.
314f2fe to
a9c6bc7
Compare
2 tasks
Contributor
|
Thanks @tub for the contribution! This feature looks amazing! Can you split this PR too? (I know the feature already be split to 3 PRs, but this PR is too large...) For example, consumer and cosumer_manager can be a separate PR. |
Contributor
Author
|
Can you split this PR too? (I know the feature already be split to 3 PRs,
but this PR is too large...)
Sure. I was trying to get a balance between number of stacked PRs and the
size of the change. Either way, it’s a big change. Happy to split it more.
|
Contributor
Author
|
Superseded by smaller stacked PRs: 1a (caching), 1b (scanners), 1c (consumer) |
Contributor
Author
|
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
PR 1 of 3 for pure-Python streaming reads. This PR adds foundational infrastructure:
25 files changed, +2701 / -31 lines
PR Stack
paimon tailcommand)Merge workflow: Merge PR 1, rebase PR 2 onto updated master (PR 1 commits drop out), merge PR 2, repeat for PR 3.
Test plan
python -m pytest pypaimon/testspython -c "from pypaimon import CatalogFactory"— no import errors🤖 Generated with Claude Code