-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-11949][SQL] Check bitmasks to set nullable property #10067
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
|
I think this should not need a JIRA. If it is needed, please let me know. Thanks. |
|
Test build #46965 has finished for PR 10067 at commit
|
|
How about we use the original jira number? |
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.
c87531b#commitcomment-14712726 looks like a good idea.
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 think we did the same thing? I can't see the difference between this and @hvanhovell's suggestion?
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.
It is the same thing. I only suggested to aggregate the bitmap in advance: val nonNullBitmask = x.bitmasks.reduce(_ & _) and to use the nonNullBitmask to check for (non) nullability in the loop. It should be a tiny tiny tiny bit quicker (no re-iteration required , and less one closure).
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. That's cool. I updated this according to your suggestion.
|
retest this please. |
|
Test build #47006 has finished for PR 10067 at commit
|
|
Test build #47016 has finished for PR 10067 at commit
|
|
retest this please. |
|
Test build #47035 has finished for PR 10067 at commit
|
|
Thanks! Merging to master and branch 1.6. |
Following up #10038. We can use bitmasks to determine which grouping expressions need to be set as nullable. cc yhuai Author: Liang-Chi Hsieh <[email protected]> Closes #10067 from viirya/fix-cube-following. (cherry picked from commit 0f37d1d) Signed-off-by: Yin Huai <[email protected]>
|
@yhuai Thank you. |
|
no problem! |
Following up #10038.
We can use bitmasks to determine which grouping expressions need to be set as nullable.
cc @yhuai