-
Notifications
You must be signed in to change notification settings - Fork 816
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 bug with null buffer offset in boolean not kernel #418
Fix bug with null buffer offset in boolean not kernel #418
Conversation
Codecov Report
@@ Coverage Diff @@
## master #418 +/- ##
=======================================
Coverage 82.62% 82.62%
=======================================
Files 162 162
Lines 44479 44487 +8
=======================================
+ Hits 36750 36759 +9
+ Misses 7729 7728 -1
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.
Looks good to me -- thank you @jhorstmann 👍
@@ -813,6 +813,19 @@ mod tests { | |||
assert_eq!(c, expected); | |||
} | |||
|
|||
#[test] | |||
fn test_bool_array_not_sliced() { |
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.
For anyone interested, without the code change this test fails in the following way:
---- compute::kernels::boolean::tests::test_bool_array_not_sliced stdout ----
thread 'compute::kernels::boolean::tests::test_bool_array_not_sliced' panicked at 'assertion failed: ceil(offset + len, 8) <= buffer.len() * 8', arrow/src/util/bit_chunk_iterator.rs:33:9
failures:
compute::kernels::boolean::tests::test_bool_array_not_sliced
FYI @jorgecarleitao |
Which issue does this PR close?
Closes #417.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?
No