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
SQL: Optimizer rule for folding nullable expressions #35080
Conversation
Add optimization for folding NULLable expressions when dealing with a NULL argument. This is a variant of folding for the NULL case. Fix elastic#34826
Pinging @elastic/es-search-aggs |
@@ -683,7 +687,7 @@ protected LogicalPlan rule(Filter filter) { | |||
return filter.child(); | |||
} | |||
// TODO: add comparison with null as well |
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.
you can remove the TODO
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.
Indeed. Thanks
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! just one comment
Add optimization for folding NULLable expressions when dealing with a
NULL argument. This is a variant of folding for the NULL case.
Fix #34826