Skip to content

refactor(query-engine): dedup range-context arithmetic between usual and binary-expr range paths - #579

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
578-dedup-range-context-arithmetic
Aug 23, 2026
Merged

refactor(query-engine): dedup range-context arithmetic between usual and binary-expr range paths#579
milindsrivastava1997 merged 1 commit into
mainfrom
578-dedup-range-context-arithmetic

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

build_arm_range_context and build_range_query_execution_context_from_parsed computed the lookback/step/extended-store-plan arithmetic identically, copy-pasted. Extracted into one finish_range_context helper so a future fix only has to be made once.

Closes #578

…and binary-expr range paths

Extracts the lookback/step calc, extended_store_plan mutation, and
RangeQueryExecutionContext construction shared by build_arm_range_context
and build_range_query_execution_context_from_parsed into one
finish_range_context helper.

Closes #578

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@milindsrivastava1997
milindsrivastava1997 merged commit b350dba into main Aug 23, 2026
8 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.

promql.rs: range-context arithmetic duplicated between usual and binary-expr range paths

1 participant