Skip to content

feat(asapquery): execute planned PromQL with conformant fallback - #498

Merged
zzylol merged 2 commits into
mainfrom
feat/asapquery-promql-conformance
Sep 4, 2026
Merged

zzylol merged 2 commits into
mainfrom
feat/asapquery-promql-conformance

Conversation

@zzylol

@zzylol zzylol commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Stacked on #497.

Implements Phase E of the ASAPQuery compatibility profile:

  • compiles exact sum, increase, and rate materializations into explicit QueryPlan ExactReadout nodes
  • executes rate/increase from reset-aware counter state with boundary extrapolation
  • evaluates range queries at exact Prometheus start+n*step timestamps
  • honors explicit instant evaluation time
  • preserves timeout, authorization, and tenant context on instant/range Prometheus fallback
  • keeps old counter binary state readable and adds a detectable reset-aware wire extension
  • fixes keyed counter serialization, merge, and query semantics

Validation:

  • cargo test -p control_plane --lib (633 passed)
  • cargo test -p data_plane --lib (964 passed before one compatibility adjustment; the sole failure was fixed and rerun successfully)
  • targeted exact compiler, counter reset/rate, range-step, fallback context, and legacy serialization tests pass.

Do not merge before the lower stack lands.

@zzylol

zzylol commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Stack continuation: #499 adds the executable collector-free compatibility E2E/demo and fixes runtime defects found by that conformance suite.

@zzylol
zzylol force-pushed the feat/asapquery-materialization-readiness branch from b70528b to 3c8baba Compare September 4, 2026 03:09
@zzylol
zzylol force-pushed the feat/asapquery-promql-conformance branch from f973364 to 519ebfb Compare September 4, 2026 03:13
@zzylol
zzylol force-pushed the feat/asapquery-materialization-readiness branch from 3c8baba to 4f182bf Compare September 4, 2026 03:25
@zzylol
zzylol force-pushed the feat/asapquery-promql-conformance branch from 519ebfb to 7e4c81c Compare September 4, 2026 03:26
@zzylol
zzylol changed the base branch from feat/asapquery-materialization-readiness to main September 4, 2026 03:43
@zzylol
zzylol merged commit 4669515 into main Sep 4, 2026
1 check passed
@zzylol
zzylol deleted the feat/asapquery-promql-conformance branch September 12, 2026 14:48
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