Repository navigation
refactor: remove the row-reference oracle and share devtools corpus helpers, part 2 (#1046) - #1078
Merged
milindsrivastava1997 merged 1 commit intoOct 30, 2026
Conversation
milindsrivastava1997
force-pushed
the
1046-b-row-reference-oracle-corpus-helpers
branch
2 times, most recently
from
October 30, 2026 01:33
83f84ae to
1df2a52
Compare
…us helpers (#1046) - executor: remove the row-at-a-time reference operators, their test hook in Operator::start, temporal::reduce, and the test-only row helpers only they used (collect_rows, row_bytes, key_bytes, compare_rows, group_key). - devtools: one corpora module holds the corpus splitting, the DQC, NetFlow and BGP catalogs, and parse_sample_interval. bgp_catalog is the union of the four copies, so every BGP corpus query finds its tables and columns. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
milindsrivastava1997
force-pushed
the
1046-b-row-reference-oracle-corpus-helpers
branch
from
October 30, 2026 01:34
1df2a52 to
a475f13
Compare
milindsrivastava1997
deleted the
1046-b-row-reference-oracle-corpus-helpers
branch
October 30, 2026 01:39
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.
Part 2 of #1046; part 1 was #1069. With this PR, #1046 is done except for the cross-crate test-only items, which moved to #1057.
Why
bgp_catalogcopies had drifted apart.What
operators/row_reference/(11 files),operators/aggregate/row_reference.rs, and the#[cfg(test)]hook inOperator::startthat switched to them.*_matches_the_row_reference). As decided on Remove dead and test-only code: row-reference oracle, old_docs, test-only demand model, batch bridge, memo snapshot #1046, they are not replaced with fixed expected-row tests.temporal::reduce, the test-only row reducer only the oracle used.#[cfg(test)]helpers that only the oracle called:collect_rows,row_bytes,key_bytes,compare_rows,group_key.asap_devtools::corporamodule holdingsql_statements,promql_lines,dqc_catalog,netflow_catalog,bgp_catalogandparse_sample_interval.sketch_coverage,variant_coverage,analyze_corporaandexamples/canonical_examplesuse the module instead of their own copies.sketch_coveragestays a separate binary; it is not merged intovariant_coverage.How
bgp_catalogis the union of the four old copies:sketch_/variant_coverageanalyze_corporacanonical_examplescorpora::bgp_catalogbgp_updatescolumnsbgp_rib_statebgp.-prefixed namesbgp_analytics.sqlreadsbgp.bgp_rib_stateandorigin, and the jan2024 workload reads all 16 update columns. None of the old copies covered all of these.Key code interfaces added / modified
All the executor items removed here are
pub(crate)or narrower and#[cfg(test)].Major algorithm changes
None.
Before this PR
with_row_referencein tests.After this PR
Evidence
On
variant_coverage,sketch_coverage(--sample-interval-ms 1000) andanalyze_corpora --sql-corpora, I compared the outputs before and after this PR:analyze_corporadumps are identical, apart from one DataFusion "did you mean" hint in an error message.The union catalog changes no output today. The BGP queries that read
originor the RIB table already fail earlier, on ClickHouse functions DataFusion does not support (arrayFilter,arrayJoin,isIPAddressInRange,toIntervalMinute) or on parse errors. Forbgp_analyticsinvariant_coverage, 5 queries lower and 10 fail, both before and after.Verification
--no-verify, so the workspace test suite has not run on this branch. CI runs it.cargo check -p asap-executor --lib --testsandcargo clippy -p asap-devtools --all-targetsreport no warnings, and the before/after tool comparison is above.No new tests.
Snapshot changes
None.
Architectural decisions
bgp_catalogis the union of the old copies, not any single one of them. This was decided on Remove dead and test-only code: row-reference oracle, old_docs, test-only demand model, batch bridge, memo snapshot #1046.Limitations and follow-up
series_labels, the columnar operators now have no unit tests. Coverage comes fromcrates/executor/tests/and the corpus/integration tests.Human review — do not complete with an agent
🤖 Generated with Claude Code