Skip to content

refactor(query-engine): dedup controller-pattern matching loop in promql.rs#515

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
506-promqlrs-duplicated-controller-pattern-matching-loop
Jul 7, 2026
Merged

refactor(query-engine): dedup controller-pattern matching loop in promql.rs#515
milindsrivastava1997 merged 1 commit into
mainfrom
506-promqlrs-duplicated-controller-pattern-matching-loop

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

No description provided.

@milindsrivastava1997 milindsrivastava1997 linked an issue Jul 7, 2026 that may be closed by this pull request
@milindsrivastava1997 milindsrivastava1997 merged commit 60b2224 into main Jul 7, 2026
8 checks passed
@milindsrivastava1997 milindsrivastava1997 deleted the 506-promqlrs-duplicated-controller-pattern-matching-loop branch July 7, 2026 19:44
zaoxing added a commit that referenced this pull request Jul 11, 2026
…t-correction

Resolve conflicts from main's promql.rs dedup + QueryPatternType removal
(#511/#515/#517/#518) against the rate()/increase() counter-reset correction +
extrapolation work:

- promql.rs: keep main's refactored build_query_kwargs_promql signature
  (&Statistic, match_result); thread `timestamps` through it and retain the
  Rate|Increase range-boundary arm; drop now-unused imports (QueryPatternType,
  get_is_collapsable, AggregationOperator, PromQLFunction,
  get_spatial_aggregation_output_labels, get_statistics_to_compute).
- simple_engine/mod.rs: keep RANGE_*_MS_KWARG imports (per-step range boundaries),
  drop removed QueryPatternType.
- tests: keep the single-pop Increase extrapolation test (arroyo serde now makes
  it deserializable) over main's obsolete not_implemented assertion; keep all new
  rate/increase test modules alongside main's range_query_arithmetic_tests.

Verified: workspace builds; 560 lib tests pass (0 failures); fmt clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

promql.rs: duplicated controller-pattern matching loop

1 participant