Uh oh!
There was an error while loading. Please reload this page.
[Fix](Nereids) fix use cbo rule hint unused because of logic reverse - #39715
Merged
Conversation
doris-robot
commented
Aug 21, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
LiBinfeng-01
commented
Aug 21, 2024
ContributorAuthor
run buildall |
morrySnow
commented
Aug 21, 2024
Contributor
add intro pr in desc |
englefly
approved these changes
Aug 21, 2024
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
doris-robot
commented
Aug 21, 2024
TPC-H: Total hot run time: 38011 ms |
doris-robot
commented
Aug 21, 2024
TPC-DS: Total hot run time: 196363 ms |
doris-robot
commented
Aug 21, 2024
ClickBench: Total hot run time: 31.43 s |
LiBinfeng-01
commented
Aug 22, 2024
ContributorAuthor
run buildall |
doris-robot
commented
Aug 22, 2024
TPC-H: Total hot run time: 37837 ms |
doris-robot
commented
Aug 22, 2024
TPC-DS: Total hot run time: 190890 ms |
doris-robot
commented
Aug 22, 2024
ClickBench: Total hot run time: 31.46 s |
morrySnow
approved these changes
Aug 23, 2024
LiBinfeng-01 added a commit
to LiBinfeng-01/doris
that referenced
this pull request
Oct 15, 2024
…pache#39715) use_cbo_rule_hint show used but it does not be used intro by: apache#35925
morrySnow pushed a commit
that referenced
this pull request
Oct 17, 2024
…#41869) pick: #35925#39715#40167#40958 Add feat of force use/nouse cbo rule hint and fix pr introduce when not using this hint, cbo rules like INFER_SET_OPERATOR_DISTINCT would generate two plans and compare their cost and nereids optimizer would decide which is better. But when we want to control the behavior of cbo rules we could use this force cbo rule hint usage example explain shape plan select /*+ USE_CBO_RULE(INFER_SET_OPERATOR_DISTINCT) */ * from t1 union select * from t2; the USE_CBO_RULE(INFER_SET_OPERATOR_DISTINCT) hint would force rule INFER_SET_OPERATOR_DISTINCT to be used and generate plan like, which hashAgg below union is generated by this rule: -- !with_hint_union_distinct -- ----hashAgg[GLOBAL] --------hashAgg[LOCAL] ----------PhysicalUnion --------------hashAgg[LOCAL] ----------------PhysicalOlapScan[t1] --------------hashAgg[LOCAL] ----------------PhysicalOlapScan[t2] Hint log: Used: INFER_SET_OPERATOR_DISTINCT UnUsed: SyntaxError: When we want to force disable this rule, we could use explain shape plan select /*+ NO_USE_CBO_RULE(INFER_SET_OPERATOR_DISTINCT) */ * from t1 union select * from t2; which would generate plan with this rule: -- !with_hint_no_union_distinct -- ----hashAgg[GLOBAL] --------hashAgg[LOCAL] ----------PhysicalUnion --------------PhysicalOlapScan[t1] --------------PhysicalOlapScan[t2] Hint log: Used: NO_INFER_SET_OPERATOR_DISTINCT UnUsed: SyntaxError: change sessionvariable enableNereidsRules to varType.remove
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…pache#39715) use_cbo_rule_hint show used but it does not be used intro by: apache#35925
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
use_cbo_rule_hint show used but it does not be used
intro by: #35925