Repository navigation
DDIR halfjoin: validate uniform key ranges before fanout - #948
Draft
frankmcsherry wants to merge 2 commits into
Draft
frankmcsherry wants to merge 2 commits into
frankmcsherry wants to merge 2 commits into
Conversation
frankmcsherry
force-pushed
the
ddir-halfjoin-range-validation
branch
from
October 19, 2026 01:17
eb64f64 to
d6b172a
Compare
Use bounded indexed equality grouped by source-column pair over borrowed keys. Preserve candidate order, strict time eligibility and signed differences; cover collisions and mixed integer storage.
frankmcsherry
force-pushed
the
ddir-halfjoin-range-validation
branch
from
October 19, 2026 01:36
d6b172a to
4e8cd89
Compare
This branch has not been deployed
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.
For a hashed identifier range, batch the arranged-key endpoint check and eligible update/representative checks, then emit time-eligible matches without checking every output candidate's key. Sorted real keys make equal endpoints a certificate for the range; genuine collisions retain the bounded fallback. Singleton ranges retain the pooled cross-chunk comparison path.
Targets
master-nextand includes #945 as a dependency. Review this PR's own change at 4e8cd894. Validation runs within each run/arranged-chunk pair; arranged-chunk seeks advance once after all runs in the block. The range proof and fallback share indexed equality grouped by source-column pair throughequal_idx, preserving request order.Validation on mini-02, Rust 1.95:
cargo test --locked --offline -p interactive -p ddir-serverpasses 193 tests with five existing ignores;cargo clippy --locked --offline -p interactive -p ddir-server --all-targetspasses with repository warnings. The halfjoin integration test compares delta joins and recursive reachability with binary joins over 24 update/retraction ticks, with one and three workers.Remains a draft because earlier native M4 controls showed a fanout/singleton tradeoff: pair keys with fanout 64 took 1,705 → 1,158 ns/key, while singleton-list keys regressed 49.1 → 53.7 ns/key. Triangle load was roughly neutral (78.8 → 79.6 ms). These measurements predate the per-run traversal; benchmarks were not rerun for this rebase.