[Fix](Nereids) fix fe fold constant evaluate like function#37616
[Fix](Nereids) fix fe fold constant evaluate like function#37616morrySnow merged 1 commit intoapache:masterfrom
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
There was a problem hiding this comment.
it was a mistake, fixed
| @@ -0,0 +1,39 @@ | |||
| -- This file is automatically generated. You should know what you did if you want to edit this | |||
| -- !ds_shape_2 -- | |||
| @@ -405,6 +405,11 @@ public Expression visitOr(Or or, ExpressionRewriteContext context) { | |||
|
|
|||
| @Override | |||
| public Expression visitLike(Like like, ExpressionRewriteContext context) { | |||
There was a problem hiding this comment.
maybe, it is better to just remove visitLike
| @@ -405,6 +405,11 @@ public Expression visitOr(Or or, ExpressionRewriteContext context) { | |||
|
|
|||
| @Override | |||
| public Expression visitLike(Like like, ExpressionRewriteContext context) { | |||
There was a problem hiding this comment.
on 2.0, i think it's more important to investigate why c1 like '%xxx%' can't infer out c1 is not null by foldOnBe, than support like folding on fe.
There was a problem hiding this comment.
yes, but i think we can fix this problem first by adding this feature to fe folding constant
3f6aa58 to
cb39156
Compare
|
run buildall |
cb39156 to
dda6f82
Compare
|
run buildall |
TPC-H: Total hot run time: 39787 ms |
TPC-DS: Total hot run time: 174432 ms |
ClickBench: Total hot run time: 30.22 s |
|
run buildall |
TPC-H: Total hot run time: 39953 ms |
TPC-DS: Total hot run time: 174231 ms |
ClickBench: Total hot run time: 31.01 s |
|
run external |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
Problem: When evaluating like function using fe, it can not evaluating nullliteral correctly Example: Null like "%string%" can not folded to null on fe Reason: Fe fold constant does not deal with like function Solved: Add fe fold constant of like function
…pache#37616) (apache#37863) cherry-pick from master
Problem:
When evaluating like function using fe, it can not evaluating nullliteral correctly
Example:
Null like "%string%" can not folded to null on fe
Reason:
Fe fold constant does not deal with like function
Solved:
Add fe fold constant of like function