-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[feat](nereids)disable join reorder if column stats is invalid #41790
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
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
edec83c to
72af654
Compare
|
run buildall |
1 similar comment
|
run buildall |
abbf2e4 to
1fb4249
Compare
|
run buildall |
Jibing-Li
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Better to add a test case.
1fb4249 to
9b9d7fa
Compare
|
run buildall |
9b9d7fa to
268aaa2
Compare
|
run buildall |
|
run p0 |
|
run cloud_p0 |
cases are appended to nereids_p0/stats/column_stats.groovy |
|
run buildall |
5 similar comments
|
run buildall |
|
run buildall |
|
run buildall |
|
run buildall |
|
run buildall |
a3da30f to
078d02b
Compare
|
run buildall |
|
PR approved by anyone and no changes requested. |
|
run buildall |
… (branch-3.0) (#42917) ## Proposed changes pick #41790 disable join reorder if any condition is matched: 1. any table row count is -1 2. any column, whose ndv is 0, but MinExpr or MaxExpr is not null 3. ndv > 10* rowCount Issue Number: close #xxx <!--Describe your changes.--> (cherry picked from commit e238a87) ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see #41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see #41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see #41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
…he#43279) Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see apache#41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
…he#43279) Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see apache#41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
…he#43279) Remove useless stats validation check. Before, we will not load the column stats when table rowCount > 0 and ndv == 0 and nullCount != rowCount. This is to avoid using invalid stats. Now, we remove this validation because the planner side added validation to the column stats, (see apache#41790). Besides, after remove of the validation, it is easier to add regression test using stats injection.
…ilable (apache#43000) in previous PR apache#41790, if any Olap table row count is not available, planner set disable_join_reorder true. this pr make this rule apply to external table. Issue Number: close #xxx <!--Describe your changes.-->
…valid when rowCount is not aviable (apache#53834) ### What problem does this PR solve? this bug is introduced by pr apache#41790. when any table row count is not available, disable join reorder. this is implemented in pr apache#40349 , but pr apache#41790 breaks this function.
Proposed changes
disable join reorder if any condition is matched:
Issue Number: close #xxx