Skip to content

chore(asap_types): delete dead find_compatible_aggregation - #404

Merged
zzylol merged 1 commit into
mainfrom
chore/remove-dead-find-compatible-aggregation
Jul 21, 2026
Merged

zzylol merged 1 commit into
mainfrom
chore/remove-dead-find-compatible-aggregation

Conversation

@zzylol

@zzylol zzylol commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Confirmed find_compatible_aggregation (capability_matching.rs's largest function) has zero real callers anywhere in data_plane/control_plane — every non-test, non-definition occurrence in the codebase was inside a comment. Its StreamingConfig::find_compatible_aggregation delegate was likewise uncalled.
  • TODO.md's own (already-closed) historical note independently confirms the real runtime capability-matching path bypasses this function.
  • Deleted alongside it: the four helpers exclusively called by it (window_compatible, labels_compatible, spatial_filter_compatible, aggregation_priority) and its ~30-test module, plus is_key_agg_type and is_multi_population_value_type (thin wrappers that became unused once their only caller was gone — the former flagged directly by rustc's own dead_code lint).
  • compatible_agg_types and compatible_storage_backends — the two functions in this file with real production callers — are untouched.
  • Updated two stale doc comments that referenced the deleted function as if it were live (this file's own module doc, and control_plane/src/sketch_algebra/matcher.rs's).

Test plan

  • cargo build --workspace — clean
  • cargo test -p asap_types -p control_plane -p data_plane --no-run — all lib/bin/test/bench targets compile
  • cargo test -p asap_types --lib — 36 passed, 0 failed
  • cargo test -p control_plane --lib — 822 passed, 1 pre-existing unrelated failure (same as confirmed in chore: retire promql_utilities crate, move AggregationType into asap_types #403)
  • rustfmt applied to touched files only

🤖 Generated with Claude Code

…lpers

find_compatible_aggregation (capability_matching.rs's largest function,
~1360 lines including its ~30-test module) had zero real callers
anywhere in the workspace. Its own StreamingConfig delegate method was
also uncalled. TODO.md's own historical note confirms the actual
runtime capability-matching path bypasses it entirely.

Deleted alongside it: the four helpers it alone called
(window_compatible, labels_compatible, spatial_filter_compatible,
aggregation_priority), plus is_key_agg_type and
is_multi_population_value_type (thin wrappers rustc/grep confirmed
had gone unused once their only caller was gone). compatible_agg_types
and compatible_storage_backends -- the functions with real production
callers -- are untouched.

Updated two doc comments (capability_matching.rs's own module doc,
control_plane/sketch_algebra/matcher.rs's) that referenced the deleted
function as if it were live production code.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@zzylol
zzylol merged commit 068407a into main Jul 21, 2026
@zzylol
zzylol deleted the chore/remove-dead-find-compatible-aggregation branch July 21, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant