-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[improvement](Nereids) add where Null rule to create empty relation as where false #38135
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
@@ -43,12 +44,13 @@ public class EliminateFilter implements RewriteRuleFactory { | |||
@Override | |||
public List<Rule> buildRules() { | |||
return ImmutableList.of(logicalFilter().when( | |||
filter -> ExpressionUtils.containsType(filter.getConjuncts(), BooleanLiteral.class)) | |||
filter -> ExpressionUtils.containsType(filter.getConjuncts(), BooleanLiteral.class) |
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.
add some java ut for this rule
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.
done
run buildall |
run buildall |
run buildall |
TPC-H: Total hot run time: 40106 ms
|
TPC-DS: Total hot run time: 173479 ms
|
ClickBench: Total hot run time: 31.07 s
|
run buildall |
TPC-H: Total hot run time: 40099 ms
|
TPC-DS: Total hot run time: 171875 ms
|
ClickBench: Total hot run time: 31.14 s
|
run buildall |
TPC-H: Total hot run time: 39821 ms
|
TPC-DS: Total hot run time: 173618 ms
|
run p0 |
ClickBench: Total hot run time: 31.15 s
|
run External Regression |
1 similar comment
run External Regression |
run External |
./run external |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (#38135) explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal
…false (apache#38135) (apache#38362) cherry-pick: apache#38135 explain shape plan select * from table2 where Null; explain shape plan select * from table2 where false; in this case, null literal can be regard as same as false literal ## Proposed changes Issue Number: close #xxx <!--Describe your changes.-->
explain shape plan select * from table2 where Null;
explain shape plan select * from table2 where false;
in this case, null literal can be regard as same as false literal