Skip to content

refactor(planner, query-engine): remove QueryPatternType for PromQL path#518

Merged
milindsrivastava1997 merged 9 commits into
mainfrom
508-promqlrs-decouple-from-querypatterntype
Jul 10, 2026
Merged

refactor(planner, query-engine): remove QueryPatternType for PromQL path#518
milindsrivastava1997 merged 9 commits into
mainfrom
508-promqlrs-decouple-from-querypatterntype

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor
  • Restricted OneTemporalOneSpatial patterns to only collapsable ones
  • made get_statistics_to_compute independent of QueryPatternType
  • made build_query_requirements_promql independent of QueryPatternType
  • Removed remaining QueryPatternType from asap-query-engine
  • Removed QueryPatternType from asap-planner
  • removed enum
  • added check

@milindsrivastava1997 milindsrivastava1997 linked an issue Jul 10, 2026 that may be closed by this pull request
@milindsrivastava1997 milindsrivastava1997 merged commit 74ca25d into main Jul 10, 2026
10 checks passed
@milindsrivastava1997 milindsrivastava1997 deleted the 508-promqlrs-decouple-from-querypatterntype branch July 10, 2026 12:40
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: decouple from QueryPatternType

1 participant