-
Notifications
You must be signed in to change notification settings - Fork 786
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 876, allow null array to be cast from and to other types #884
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.
Looks really nice @jimexist -- thank you
@@ -946,10 +965,6 @@ pub fn cast_with_options( | |||
} | |||
} | |||
} | |||
|
|||
// null to primitive/flat types |
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 this particular special case was added in apache/arrow#8484 by @nevi-me -- I don't think there was any fundamental reason not to include other types, just that it wasn't needed for the particular issue he was dealing with
let array = Arc::new(NullArray::new(6)) as ArrayRef; | ||
fn test_cast_null_array_from_and_to_others() { | ||
macro_rules! typed_test { | ||
($ARR_TYPE:ident, $DATATYPE:ident, $TYPE:tt) => {{ |
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.
👍
looks good
Looks like the tests are failing with dictionaries:
|
Codecov Report
@@ Coverage Diff @@
## master #884 +/- ##
==========================================
+ Coverage 82.45% 82.47% +0.02%
==========================================
Files 168 168
Lines 48231 48232 +1
==========================================
+ Hits 39767 39778 +11
+ Misses 8464 8454 -10
Continue to review full report at Codecov.
|
Can drop this after rebase on commit 81ffa240, first released in 7.0.0
Can drop this after rebase on commit 81ffa240, first released in 7.0.0
Which issue does this PR close?
Closes #876
Depends on #591
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?