fix(query): avoid task context for warehouse filter#19993
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 60c1471e30
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
60c1471 to
735f58c
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/
Summary
QueryContextonly to filter task messages by warehouseClusterDiscovery::single_node_cluster(GlobalConfig)path that task context creation already uses for the local clusterSessionType::MySQLso task SQL behavior, including temporary table support, remains unchangedThis PR is scoped to reducing task scheduling overhead in warehouse filtering. It does not include the storage/cache accounting investigation or fix.
Tests
Validation:
cargo fmt --checkgit diff --checkcargo check -p databend-queryType of change
This change is