Repository navigation
Conversation
…one (ITL-1464) A SpiralDBTableSource read whose table holds no source-info column and no content hash built one token per row and data column, then dropped them. On 2.2 million rows of 13 columns that was 9.3 GiB of Arrow memory for a 282 MiB table. The read now builds them only when its result shows or hashes them. Adds the memory diagnosis (docs/dev/specs/itl-1464-memory-diagnosis.md) and the scripts it was measured with. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…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>
…464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…L-1464) An async job kept every row three times as (Tag, Data) pairs: in the orchestrator's result collectors (never read by a job), in each operator job node's output list, and in each barrier operator's gathered input, plus the pairs an ArrowTableStream caches while a barrier sends its result. Rows are now kept as Arrow tables of at most 8,192 rows (RowChunks), which build exactly the table the row list built. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…TL-1464) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…464 material Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…464 material Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…o eywalker/itl-1464-async-transport
…lts says (ITL-1464) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…o eywalker/itl-1464-node-rows
…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>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o eywalker/itl-1464-node-rows
…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>
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>
… into eywalker/itl-1464-integration
…e's id is never taken for another (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nto eywalker/itl-1464-tokens-spool
…eywalker/itl-1464-integration
…/itl-1464-integration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-triggers-computation-without
…ements (ITL-1464) The design states that the cache root must be on disk, bounds the pairs of one join match, qualifies the SQLite primary-key trust, counts small results kept in memory and narrows the preview's side-effect promise. The measurement steps each use their own emptied result location, and setup runs under the memory guard. One test runs an operator over the source in a job, sync and async, in two tag orders. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nor a SemiJoin's unused input (ITL-1464) A DerivedSource previewed through its own as_table(), which read the origin whole: a CachedSource origin wrote its cache table, a PollingSource origin was polled, and the derived rows were kept. It now takes its origin's first rows through the origin's own preview (which refuses what would poll or write) or, with compute_all, a job node's stored rows, and keeps nothing. A SemiJoin whose inputs share no tag gives back its left input; preview computed both inputs first and so called a function the full read never calls. An operator now says which input it gives back unchanged, from the schemas (input_given_back), and preview reads only that input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1464-integration (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The design names how a database-backed node read keeps the emitted order, runs a PolarsFilter per batch only for a predicate known to be row-wise, corrects the 1:1 join bound for inputs that share no key and fixes the arrival order of the bound's tests. The job test over the source covers the named columns as data, data-tags and tags, two table layouts and row multiplicity on the async path; the measurement scripts get docstrings. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…omputation-without' into HEAD # Conflicts: # tests/test_core/sources/test_spiraldb_table_source_tokens.py
…L-1464) Below a step that may drop rows (a filter, drop_nulls, a function over them) no limit reaches the derived source, and it read and concatenated every batch of its origin before giving a row. Each origin batch is now derived as it comes, so the origin's scan is closed as soon as the step above has its rows. The builder takes the position of a batch's first row and the keys of the earlier batches, so positional record ids continue across batches and a key repeated in a later batch is refused when reached. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1464-integration (ITL-1464) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-triggers-computation-without
A node's reference names the stored row the run emitted (base entry id and recomputation index), the stated bound excludes steps that need their whole input, and async results are compared with sync row for row with multiplicity. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…omputation-without' into HEAD
The cache is read only from closed segments and waiting rows, a preview continues one open read, the join index counts its per-key counts, and a whole-input step counts its output and conversion buffers. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…omputation-without' into HEAD
…ITL-1464) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…omputation-without' into HEAD
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.
Integration, do not merge. This branch puts the ITL-1464 tracks together so CI runs them as a whole; each track is reviewed and merged through its own pull request.
Merged: #558, #559, #562, #566, #563, #564, #565, #567, #568, #560, #571, #572, #570, #573. Conflicts keep both sides' tests. A commit of #566 that keeps function nodes' rows in a spool is reverted here (not reviewed yet).
On top: an async job's edges carry record batches and operator nodes run
async_execute_batches(core/job_edges.py), token recipes travel between nodes on both paths. Design and limits:docs/dev/specs/itl-1464-integration.md.Measured
docs/dev/specs/itl-1464/chain.py: 8.1 million events and 2.2 million series rows at 100%,read by the real source over the fake client. Peak physical footprint / peak resident memory
in GB, and seconds. Memory beyond the footprint is memory-mapped pages of local files.
Async:
The 100% column includes the aggregation step that sorts text by rank and spools token
lists (#573); the 25% and 50% columns were measured before it. It lowers the footprint and
raises resident memory (mapped pages).
Sync:
mainat 25%: the semi-join takes 10.7 / 10.9, 12 s on sync; the semi-join on async, andthe lookup join and the whole job on both paths, pass 24 GB and are killed.
Row-by-row steps are slower on sync than on
main(12 s to 14 s here): the source's rows gothrough a local file.
What is bounded, and what is not
Bounded on async: sources, row-by-row operators, joins with a small or certified side. They
grow by the digests of the keys read (16 bytes a row), and by file pages the system can drop.
Whether a container that counts mapped pages drops them in time is not tested.
Not bounded, in the order of their cost in the whole job at 100%:
of its inputs' token lists, millions of tokens in one row, and the Delta writer holds
copies. The stored layout decides the text.
GroupByover its whole input (4.6 GB for 5.7 million member rows): the sort of its membersand the copies of what it takes. The members' data it keeps is 64 MB; the rest is ids.
Gates
The ITL-1347 differential against
main(both fixtures, all modes, one and default Polarsthreads): sync exact and async as sets, all equal. At the final head: equal, and 24,560 tests pass. Every operator node's rows, system tags
and tokens in the job above, at 0.5%, have
main's digests on both paths.Mentions ITL-1464.
🤖 Generated with Claude Code