Repository navigation
perf(operators): async joins index their smaller input; channels carry derived tokens (ITL-1464) - #567
Closed
eywalker wants to merge 33 commits into
Closed
perf(operators): async joins index their smaller input; channels carry derived tokens (ITL-1464)#567eywalker wants to merge 33 commits into
eywalker wants to merge 33 commits into
Conversation
…isk (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ws, with bounded output batches (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…needed (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…geJoin and SemiJoin streaming on record-batch channels (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd slices without copying (ITL-1464) A forked child neither waits for a lock of its parent's threads nor touches its parent's files; a failed spill leaves the spool as it was; an unlocked or partly removed directory is swept. table() and slice() give rows through their mappings and outlive the spool. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ents (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a time across threads (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…L-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into eywalker/itl-1464-joins-derived
… source-info tokens (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n's row mask is bounded by the rows held (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…efuse recipes (ITL-1464) Review of PRs 563 and 564. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
…-joins Joins read through _input_table too (review of PR 564). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into eywalker/itl-1464-joins-one-index
…put Rejoin streams; channels give text to public reads (ITL-1464) Review of #565 and #567: a held row costs what is held, whatever was held before it; a channel's public read gives text and reads a stream through its own reader; batches may mix text and derived tokens however they arrive. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ld before them (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lready holds in its own form)
… key row (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…a channel's protocol, a turn for other tasks between batches (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r their column is called (ITL-1464) Co-Authored-By: Claude Opus 5.5 <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.
Draft, a step of ITL-1464 (the issue stays open). Stacked on #563, #564 and #565 (and so #559). It also carries the fixes of #565's second review, because it rewrites that code: review the joins at this head.
What this does
SemiJoinholds the right input's distinct keys only.Rejoinof two inputs streams; three or more stay a barrier.The sync path is unchanged. No hash, identity, stored layout or golden value moves (golden
--checkclean). No job node calls this form yet.Measured (the operator alone, 8,000,000 synthetic rows; peak RSS, 143 MiB of it imports)
Still linear in one input's keys: many to many with both open, and 1:1 with one input entirely first.
docs/dev/specs/itl-1464-joins.md.Review findings -> tests
test_one_old_row_does_not_pin_what_later_rows_costtest_a_public_read_of_a_channel_gives_texttest_batches_of_both_forms_however_they_arrive,test_a_producer_that_changes_a_tokens_formtest_a_channel_reads_a_stream_through_its_own_readerAlso: which side is indexed (
test_a_join_holds_the_keys_of_its_smaller_side_whichever_ends_first,test_an_ended_side_is_indexed_once_the_other_has_as_many_rows), endless inputs, cancellation while replaying, disk released while replaying, logical types, two-inputRejoin. Some existing kernel tests now expect a row or a value-decided refusal when an input ends, where it used to come with its batch.Round 2
test_alternating_token_forms_keep_one_memory_limit,test_rows_are_written_when_askedtest_no_read_of_a_channel_gives_a_recipe,test_a_channel_of_a_users_class_is_read_through_its_own_readstest_a_replay_whose_sends_never_wait_can_be_cancelledRejoinover channels matches raw streams of several data contexts differently from syncmain, whose barrier also reads channels, and channels carry no per-row context (ITL-1347; ITL-1359 owns it).test_rejoin_over_channels_equals_its_barrier_for_rows_of_several_contextspins that the two forms agreeRound 3
test_shared_data_tags_when_a_tokens_form_changes,test_shared_data_tags_whose_tokens_change_form_over_staged_channelsBoth orders of the change, every kernel, kernel and channels; 26 of the 100 cases fail on the previous head.
Certificates over whole graphs:
test_certificate_graphs.pyruns random graphs on sync, on channels, and on channels with certificates ignored, compares the rows, and checks every stream's certificate on its rows. With every side certified by force, the same test sees rows lost.Mentions ITL-1464.
🤖 Generated with Claude Code