-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Move handlign of NULL literals in where clause to type coercion pass #11491
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
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.
Thank you for the follow up @xinlifoobar -- I think this works and is reasonable, though it is quite special case.
I left a suggestion on how to make this more general purpose, let me know what you think.
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.
Thanks -- sorry for the back and forth @xinlifoobar - I think we could make this simpler, But if you are sick of changing things, that is fine too and I can make a follow on PR
5809d74
to
e81fe1d
Compare
Ya, I am ok with this :) Sometimes I may make bad changes due to a lack of knowledge of the whole repo. You guidance is always helpful here. |
Thank you for understanding -- I feel bad when a PR is outstanding for a while due to lack of feedback or when we have to do multiple rounds of feedback when they each take a day. Also, thank you for all the help so far 🙏 |
if let LogicalPlan::Filter(filter) = &mut plan { | ||
if let Ok(new_predicate) = filter | ||
.predicate | ||
.clone() |
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.
I found a way to avoid this clone: #11530
…pache#11491) * Revert "Support `NULL` literals in where clause (apache#11266)" This reverts commit fa01917. * Followup Support NULL literals in where clause * misc err change * adopt comparison_coercion * Fix comments * Fix comments
…pache#11491) * Revert "Support `NULL` literals in where clause (apache#11266)" This reverts commit fa01917. * Followup Support NULL literals in where clause * misc err change * adopt comparison_coercion * Fix comments * Fix comments
Which issue does this PR close?
Follow up #11266. This is to use
type_coercion
for null literary to avoid hard coding in physical planner.Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?