[python] Add IncrementalDiff acceptance tests and streaming API docs#7436
Merged
JingsongLi merged 4 commits intoapache:masterfrom Mar 17, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
test_streaming_catch_up_returns_same_data is covered by the unit test test_stream_triggers_diff_catch_up_for_large_gap with stronger assertions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
to_arrow([]) already returns an empty Arrow table with the correct schema, so the early return was dead code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tub
commented
Mar 16, 2026
paimon-python/pypaimon/acceptance/incremental_diff_acceptance_test.py
Outdated
Show resolved
Hide resolved
paimon-python/pypaimon/acceptance/incremental_diff_acceptance_test.py
Outdated
Show resolved
Hide resolved
create_splits([]) returns [] and to_arrow([]) returns an empty table, so the early return was unnecessary. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
What does this PR do?
Final PR in the Python streaming read stack (#7152). Adds end-to-end acceptance tests for
IncrementalDiffScannerand user-facing documentation for the streaming read API.Acceptance tests (
pypaimon/acceptance/incremental_diff_acceptance_test.py):IncrementalDiffScannerproduces correct row counts and data across snapshot pairsStreaming API docs (
docs/content/pypaimon/python-api.md):StreamReadBuilder,AsyncStreamingTableScan, consumer ID usage, row kind, bucket filtering, and diff catch-up behaviourStacked on
This PR targets
masterdirectly (all prior PRs in the stack have merged).Stack summary:
python-streaming-1a-caching— mergedpython-streaming-1b-scanners— mergedpython-streaming-1b2-row-kind— mergedpython-streaming-1c-consumer— mergedpython-streaming-consumer-manager— mergedpython-streaming-2a-changelog-producer— openpython-streaming-2b-snapshot-lookahead— openpython-streaming-2c-scan-and-builder— mergedpython-streaming-2d-consumer— mergedpython-streaming-2e-acceptance-docsTracking issue: #7152