-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat](nereids)support choosing physical plan containing specific group IDs #60603
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
[feat](nereids)support choosing physical plan containing specific group IDs #60603
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 30297 ms |
ClickBench: Total hot run time: 28.45 s |
FE UT Coverage ReportIncrement line coverage |
FE Regression Coverage ReportIncrement line coverage |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
What problem does this PR solve?
Introduce a new session variable required_group_ids to force the Nereids optimizer to pick the cheapest physical plan that includes all specified group IDs.
Key changes:
Added chooseBestPlanWithRequiredGroups to traverse the memo and find a plan covering the required IDs.
Added helper logic to compute reachable group IDs from the plan subtree.
Exposed required_group_ids as a session variable for easier debugging and testing.
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)