Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…464) 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
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an an empty source once (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
… by its values (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 25, 2026
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, track VIEWS of ITL-1464 (the issue stays open).
What this does
run()no longer needs the whole table for aSpiralDBTableSource, or for column selections, renames,add_tags,drop_nullsandfilterover one: the source's batches go one at a time through each operator's ownstatic_process, and a result of more than 50,000 rows or 64 MiB of values is not held (one that fits in the two 1,000-row windows always is). The design, withpreview(n)and the job-node view (not implemented here), isdocs/dev/specs/itl-1464-views.md.Public changes, for the developer
view.table,as_table()andas_polars_df()raiseBoundedViewError, namingstream.as_table(). They gave every row before.sort_by_tags()andhead/tailbeyond the first and last 1,000 rows raise it too.preview(n)would call user functions.as_table()after such a large run of an operator stream reads the source and applies the operators again. A function pod never runs twice: a chain through one is not read in batches.stream.head(n)after a large run shows the window (default columns,nup to 1,000); other column groups shownot_computed. The notebook preview then shows the first ten rows of the result, sorted by tags, and says so.orcapod.errors.BoundedViewError.Not batched, stated in the docs:
polars_filter(V7),pickandindex(their result types follow the values of a batch),tag_by, joins,group_by,batch, function pods, and user subclasses of a batched operator. No hash, identity, stored layout, stored byte or golden value changes; nothing in a job changes.Measured (synthetic time series, about 2.2 million rows and 250 MiB; peak RSS of
run())map_datadrop_nullsfilterdrop_nulls,filter,map_dataMost of what remains should be the source's set of keys read (about 0.5 GiB in the diagnosis), which still grows with the table; not changed here.
Tests
tests/test_core/streams/test_bounded_run_view.py:headafter a run and after the source moved;max_rowsover the whole read, a late source error (also ahead of an operator's earlier error), an operator error; no view and nothing kept.Run locally: those, the stream, source and operator tests, the ITL-1347 equivalence tests, doc samples, golden tests; ruff; whole-repository basedpyright (0 errors); golden
--check(nothing moved).Overlaps #558 in
spiraldb_table_source.py(one hook here, two methods) and both addchangelog.d/ITL-1464.md: whichever merges second joins the two texts. After #558, a bare source'srun()can skip its tokens too.Mentions ITL-1464.
ITL-1347 differential (both fixtures, spikes limited to 2,000, one and default Polars threads, cold/warm/load-only/held) against
main0d1e017, run on 2da7b22 (the staleness fix; the round 2 fix after it touches no job path): every branch-against-main comparison is equal, sync byte for byte and async as a multiset.The harness reports async against sync as different in all 16 comparisons, on
maintoo (both sides of this branch equalmain's): not order, and no tag or data value. Two rows with equal function inputs are computed twice by async and once by sync, so the result table has a row more and the pipeline entries differ in__computedand__data_id; a side-effect node's rows carry a__computedcolumn on async only.Review findings and their tests
test_no_result_is_shown_or_read_after_an_upstream_change(source refreshed, intermediate cleared, operator modified; window and retained; intermediate run or read before or after; depth 1 and 3),test_every_step_over_a_shared_intermediate_sees_a_changetest_a_read_of_no_rows_scans_once,test_a_pass_through_run_scans_onceStreamView's docstring claimed every rowtest_a_cached_preview_asks_each_stream_once(chains and diamonds, depth 4 to 40, kept and window)test_a_wide_result_is_bounded_by_its_values,test_value_bytes_do_not_depend_on_the_layout,test_a_result_that_fits_in_the_windows_is_kept_however_wide🤖 Generated with Claude Code