-
Notifications
You must be signed in to change notification settings - Fork 838
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 incorrect into_buffers
for UnionArray
#1567
Conversation
into_buffers
for UnionArray
Codecov Report
@@ Coverage Diff @@
## master #1567 +/- ##
=======================================
Coverage 82.86% 82.86%
=======================================
Files 190 190
Lines 55042 55055 +13
=======================================
+ Hits 45608 45621 +13
Misses 9434 9434
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.
I appreciate #1546 will add some test coverage, but I think a simple explicit test couldn't hurt
Thanks @tustvold . Okay, I will add a test for this. |
arrow/src/array/data.rs
Outdated
let data_types = vec![ | ||
DataType::Union(vec![], UnionMode::Sparse), | ||
DataType::Union(vec![], UnionMode::Sparse), | ||
]; |
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.
We can add more datatypes if needed.
@@ -1692,9 +1692,6 @@ mod tests { | |||
} | |||
|
|||
#[test] | |||
// Fails when validation enabled | |||
// https://github.com/apache/arrow-rs/issues/1547 | |||
#[cfg(not(feature = "force_validate"))] | |||
fn test_filter_union_array_sparse() { |
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.
Re-enabled them here. cc @alamb
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.
❤️ so nice -- thank you @viirya
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.
Event better now 😃
Thank you @tustvold ! |
Which issue does this PR close?
Closes #1547.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?