Skip to content

feat(asapquery-profile): cover the complete ASAPQuery PromQL acceleration matrix #501

Description

@zzylol

Summary

Raise the backend-local asapquery profile from its four-case MVP matrix to the complete accelerated PromQL surface documented and tested by current ASAPQuery.

Current gap

The backend profile's executable matrix currently proves only rate, increase, sum_over_time, and quantile_over_time for instant/range queries. ASAPQuery additionally accelerates:

  • temporal count_over_time, avg_over_time, min_over_time, max_over_time;
  • spatial sum, count, avg, min, max, quantile, and topk, with optional by(...);
  • the six safe temporal/spatial compositions currently recognized by ASAPQuery: sum(sum_over_time), sum(count_over_time), min(min_over_time), max(max_over_time), topk(sum_over_time), and topk(count_over_time);
  • arithmetic trees over acceleratable leaves using + - * / ^ %, including scalar/vector arms;
  • both instant and range evaluation, including sliding-window composition and a query lookback wider than the materialized pane/window.

ASAPQuery's README intentionally excludes label selectors from this accelerated profile, and vector-matching modifiers are explicitly out of scope in its arithmetic design; those are not requested here.

Scope

  • Add every listed shape to backend-local planning, physical compilation, precompute, QueryPlan execution, and readiness coverage.
  • Preserve Prometheus labels, timestamps, range steps, counter reset/extrapolation semantics, Top-K ordering/labels, and arithmetic behavior.
  • Use the canonical ASAPPlanner IR and selected summary plan; do not restore the historical ASAPQuery planner.
  • Fail closed to exact Prometheus fallback whenever any leaf/operator cannot be accelerated safely.
  • Version and document the expanded compatibility level.

Acceptance criteria

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: control planePlanning, configuration, routing, and control-plane orchestrationarea: data planeRuntime ingestion, storage, and query-serving data pathsarea: physical compilerCompilation from selected logical plans to executable backend and Collector plansarea: query enginePromQL lowering, execution, result shaping, and fallback behaviorarea: summary executionWarm-summary binding, readout, composition, and result decodingenhancementNew feature or requestfeature: PromQLPromQL compatibility and execution semanticsfeature: Top-KTop-K planning, heap materialization, ranking, and labelsfeature: range evaluationRange-query steps, windows, timestamps, and temporal evaluationfeature: sketch algorithmsSketch-family configuration, lifecycle, merge, and readout behaviorfeature: warm summariesASAP warm-tier materialization, readiness, and servingfeature: workload optimizationCross-query sharing, costing, placement, and physical configuration selectionintegration: ASAPPlannerASAPPlanner API, IR, candidate, and selected-plan integrationmeta: trackingUmbrella issue coordinating multiple implementation gapsquality: accuracyExact and approximate accuracy contracts, error bounds, and routingtest: end-to-endProcess-boundary, differential, conformance, and full-stack tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions