Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQE: don't select more data than strictly necessary #10209

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Dec 11, 2024

What this PR does

This PR fixes the behaviour of MQE to select only the data necessary for the query.

#9844 introduced an incorrect calculation for the time range required for a selector. The extra millisecond doesn't usually matter, except for range queries that run for exactly max_partial_query_length, where this incorrect value would result in us returning a err-mimir-max-query-length error incorrectly.

Which issue(s) this PR fixes or relates to

#10067

Checklist

  • Tests updated.
  • [n/a] Documentation added.
  • [n/a - covered by generic entry for MQE that references Mimir Query Engine #10067] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • [n/a] about-versioning.md updated with experimental features.

@charleskorn charleskorn marked this pull request as ready for review December 11, 2024 04:20
@charleskorn charleskorn requested a review from a team as a code owner December 11, 2024 04:20
@charleskorn charleskorn enabled auto-merge (squash) December 12, 2024 21:58
@charleskorn charleskorn merged commit a3ae00e into main Dec 12, 2024
29 checks passed
@charleskorn charleskorn deleted the charleskorn/mqe-selector-range branch December 12, 2024 22:06
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.

2 participants