-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-21351][SQL] Remove the UpdateAttributeNullability rule from the optimizer #23508
Conversation
Test build #101017 has finished for PR 23508 at commit
|
@cloud-fan @gatorsmile It seems the removal don't affect the existing tests now. |
// but the AttributeReference is not updated to reflect this. So, we need to update nullability | ||
// by the `UpdateAttributeNullability` rule. | ||
val original = rel | ||
.select(GetArrayItem(CreateArray(Seq('a, 'a + 1L)), 0) as "b") |
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.
Shall we update GetArrayItem.nullable
, to special-handle the combination of CreateArray
and Literal
?
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.
Ah, I see, we can do so. Is it ok to file a separate jira and make a pr for that in following activities?
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.
sure
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.
Made a pr in #23566
Retest this please. |
Test build #103226 has finished for PR 23508 at commit
|
Hi, @maropu . As a the final piece of this removal, could you remove the following
|
oh, yeah. I'll do that. |
Test build #103285 has finished for PR 23508 at commit
|
thanks, merging to master! |
What changes were proposed in this pull request?
This pr removed
UpdateAttributeNullability
from the optimizer because the same logic happens in the analyzer. See SPARK-26459(#23390) for more detailed discussion.How was this patch tested?
N/A