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>
…464 material Co-Authored-By: Claude Fable 5.2 <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
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 4 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.
Draft, for ITL-1464 (stays open). Stacked on #558; review only the last commit.
A
SpiralDBTableSourceread remembers every row's key for the whole read, to find a key that appears in two rows. It kept the keys' text in a Python set, about 0.3 KiB a row: with the source-info tokens gone it is the largest part of a row-by-row step that still grows with the table. It now keeps 16-byte BLAKE2b digests in sorted numpy arrays (SeenKeys), 16 bytes a row. Same check, same error and message.A digest is 128 bits, so two different keys with one digest are not expected in any table (for a billion rows, about one chance in 10^21): a digest seen is taken as the key seen, without keeping the text to confirm it.
Not done: keeping nothing at all for a keyed table pinned to one version. No evidence at hand shows that such a scan cannot return a key twice.
Tests:
test_seen_keys.py(the answers of a set, over random batches; any text; nothing added by a refused batch; 16 bytes an identifier). The SpiralDB source tests pass unchanged. No hash, identity, stored layout or golden value moves.Mentions ITL-1464.
🤖 Generated with Claude Code