Skip to content

feat(query-engine): extrapolate rate and increase at boundaries - #663

Merged
milindsrivastava1997 merged 3 commits into
mainfrom
660-implement-prometheus-boundary-extrapolation-for-rate-and-increase
Sep 2, 2026
Merged

feat(query-engine): extrapolate rate and increase at boundaries#663
milindsrivastava1997 merged 3 commits into
mainfrom
660-implement-prometheus-boundary-extrapolation-for-rate-and-increase

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

Summary

  • Implement Prometheus boundary extrapolation for counter rate() and increase(), including reset correction, sparse samples, threshold handling, and duration-to-zero clamping.
  • Preserve per-key sample counts across accumulator updates, pane merges, JSON, binary (INC7), and Arroyo serialization.
  • Thread exact range-vector bounds through instant and range query execution, with per-step range coverage.
  • Add focused unit tests and an end-to-end range-query regression test.

Closes #660

Verification

  • cargo test -p query_engine_rust
  • cargo clippy -p query_engine_rust --all-targets -- -D warnings
  • cargo fmt --all -- --check
  • git diff --check

@milindsrivastava1997
milindsrivastava1997 marked this pull request as ready for review September 2, 2026 01:01
@milindsrivastava1997
milindsrivastava1997 merged commit e009711 into main Sep 2, 2026
11 of 13 checks passed
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.

Implement Prometheus boundary extrapolation for rate() and increase()

1 participant