Repository navigation
eval: export pooled quantiles and top-k from random manifests - #230
Open
milindsrivastava1997 wants to merge 2 commits into
Open
milindsrivastava1997 wants to merge 2 commits into
milindsrivastava1997 wants to merge 2 commits into
Conversation
A manifest RQE marked pooled is one quantile over each group's samples, or one global top-k heap over its grouping's groups. Its e2e entry is the tree alone, so ASAPQuery's saved planner plans it without the PromQL, which the other systems run (client_promql; for a pooled quantile, the avg-of-series stand-in). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015KzRxtgjFfFJeyDy8fN2CB
quantile by (G) (phi, quantile_over_time(phi, data[W])) keeps the tail a pooled quantile reads; an avg of per-series quantiles pulls to the median series. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015KzRxtgjFfFJeyDy8fN2CB
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.
Summary
--random-manifestnow exports RQEs that an ASAPQuery random workload markspooled:topk(k, sum by (G) (...)), one global heap over G's groups. Keys = G's cardinality, read at the curves' 1,000 keys with an assumption noted when fewer.expr). ASAPQuery's saved planner then plans it without text (--expr-only). Its PromQL, which the other systems run, moves toclient_promql.quantile by (G) (phi, quantile_over_time(phi, data[W])). Non-pooled quantiles keep theavg byshape.pooledis part of the sharing key).Used by ProjectASAP/ASAPQuery
codex/random-pooled(the pooled and dashboard-style random workloads).Validation
python3 -m pytest scripts/test_export_autosketch_eval_table.py: 56 pass, with 4 new tests:seed-862-pooledand 10seed-862-dashboardmanifests. The solver and ASAPQuery's--planner saved --expr-onlyplan every one with nothing left out.🤖 Generated with Claude Code
https://claude.ai/code/session_015KzRxtgjFfFJeyDy8fN2CB