Skip to content

Conversation

charleskorn
Copy link
Contributor

@charleskorn charleskorn commented Jun 17, 2025

What this PR does

This PR removes the CLI option to disable the query planner when MQE is in use. The query planner will now always be enabled.

This PR also removes all code that catered to the situation where the query planner was disabled.

As a side effect of this, I've also removed the dependency on the query engine in queryStatsMiddleware (see commit 81207ca). This was breaking with MQE as MQE does not fully populate the EvalStmt returned from Query.Statement() when query planning is in use, but the use of an engine here was not necessary.

Which issue(s) this PR fixes or relates to

#11004

Checklist

  • Tests updated.
  • Documentation added.
  • [covered by Mimir Query Engine #10067] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]. If changelog entry is not needed, please add the changelog-not-needed label to the PR.
  • [n/a] about-versioning.md updated with experimental features.

@charleskorn charleskorn added the changelog-not-needed PRs that don't need a CHANGELOG.md entry label Jun 17, 2025
Copy link
Contributor

github-actions bot commented Jun 17, 2025

💻 Deploy preview deleted.

@charleskorn charleskorn force-pushed the charleskorn/remove-query-planner-feature-flag branch from 05209b9 to 4baa09b Compare June 17, 2025 08:55
@charleskorn charleskorn force-pushed the charleskorn/remove-query-planner-feature-flag branch from a2ede9c to 81207ca Compare June 17, 2025 10:52
@charleskorn charleskorn changed the title MQE: remove CLI option to disable query planning MQE: always use query planner Jun 17, 2025
@charleskorn charleskorn marked this pull request as ready for review June 17, 2025 11:12
@charleskorn charleskorn requested review from tacole02 and a team as code owners June 17, 2025 11:12
Copy link
Contributor

@56quarters 56quarters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@charleskorn charleskorn enabled auto-merge (squash) June 17, 2025 23:32
@charleskorn charleskorn merged commit f37a2e0 into main Jun 18, 2025
33 checks passed
@charleskorn charleskorn deleted the charleskorn/remove-query-planner-feature-flag branch June 18, 2025 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-not-needed PRs that don't need a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants