Skip to content

fix(asap-tools): reject two planner families for one recommended query - #785

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
fix/recommended-configs-cr
Oct 5, 2026
Merged

milindsrivastava1997 merged 1 commit into
mainfrom
fix/recommended-configs-cr

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Summary

  • recommended_sketch_configs.py generate names experiments <dataset>_<query>_<range>_recommended, with no sketch family. If a selected query had both a CMS and a KLL row in recommendations.csv, the second config silently overwrote the first.
  • sketch-bench can emit both: it recommends per (query_id, range, kind), and some query ids (e.g. rt_p99_by_msname) have keys and values forms. The current CSV has no such rows.
  • generate now raises for a selected query with more than one planner-family row. Collisions on queries that were not selected are ignored.
  • Error rather than distinct names: load_queries keeps only the first form of a duplicated id, so both experiments would run the same PromQL.

Not addressed here: results_summary.csv still has the p99 runs' old value-error numbers. Regenerating it needs the run outputs from the CloudLab node.

Test plan

  • pytest tests/test_recommended_sketch_configs.py (19 passed), with tests for the collision and for an unselected colliding query

🤖 Generated with Claude Code

Experiment names carry no sketch family, so a selected query with both a
CMS and a KLL row in recommendations.csv (sketch-bench emits both for a
query id with keys and values forms, e.g. rt_p99_by_msname) wrote one
config over the other. generate now raises for such a query.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milindsrivastava1997
milindsrivastava1997 merged commit 52821e0 into main Oct 5, 2026
@milindsrivastava1997
milindsrivastava1997 deleted the fix/recommended-configs-cr branch October 5, 2026 15:30
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