Repository navigation
fix(streaming_joins): MergeJoin compares settled token types with an input that delivered no rows (ITL-1362) - #522
Merged
eywalker merged 1 commit intoNov 23, 2026
Conversation
…input that delivered no rows (ITL-1362) CodeRabbit on PR 520: when one input delivers no rows, the sync path reads it in its zero-row form (its declared source-info token types) and the other by its rows (the types they settle to); MergeJoin refuses two types of one column. The kernel compared the two inputs' settled types only, so a left input whose tokens are all [] (one list level) against an empty right declaring two levels completed with no row. When every input has closed, StreamingMergeJoin now compares each input with rows against every input without rows (require_shared_arrow_type, the sync error). Test: every kernel (Join, MergeJoin, SemiJoin), either input empty, tokens one or two levels deep: the kernel's outcome equals the sync path's (the same error, or the same rows). The two MergeJoin one-level cases fail without the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 2 billable files and costs up to $0.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 10 minutes for your next included review. View limit details
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
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.
Part of ITL-1362
Summary
This answers CodeRabbit's thread on #520 (
streaming_joins.py:877), which #520 merged before it was answered.When one input delivers no rows, the sync path reads that input in its zero-row form, which carries its declared source-info token types, and reads the other input by its rows, which carry the types its tokens settle to.
MergeJoinrefuses two types of one column. The kernel compared only the two inputs' settled types. So a left input whose tokens are all[](one list level), against an empty right input declaring two levels, completed with no row and no error, while sync raisesInputValidationError.Fix: when every input has closed,
StreamingMergeJoincompares each input that delivered rows, by its settled types, against every input that delivered none, by its zero-row types. It usesrequire_shared_arrow_type, the sync rule and its error, at the close point theclosedocstring describes. Join and SemiJoin need no such check: their sync paths do not compare these types.This changes no wired path: on
eywalker/job-speed, nothing in a node, pipeline module or orchestrator calls the kernels.Finding and its test
streaming_joins.py:877(minor): settled token types not compared with an input that delivered no rowsChecks
tests/test_channels, the record-batch matrix, the streaming join and rejoin kernels, and the row-built form. 1,702 passed.🤖 Generated with Claude Code