-
Notifications
You must be signed in to change notification settings - Fork 855
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
Fix UnionArray is_null #1632
Fix UnionArray is_null #1632
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1632 +/- ##
=======================================
Coverage 83.02% 83.03%
=======================================
Files 193 193
Lines 55577 55605 +28
=======================================
+ Hits 46145 46169 +24
- Misses 9432 9436 +4
Continue to review full report at Codecov.
|
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 👍
@@ -304,6 +304,24 @@ impl Array for UnionArray { | |||
fn data(&self) -> &ArrayData { | |||
&self.data | |||
} | |||
|
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.
Just to check, these special cases aren't necessary for correctness, as the ArrayData lacks a validity buffer, but just clarity?
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 so. For example, ArrayData.is_null
returns false if its null_bitmap
is None
. These values are not changed before/after this change.
Thank you @tustvold ! |
Which issue does this PR close?
Closes #1625.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?