-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix nullif kernel
#9087
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 nullif kernel
#9087
Conversation
| F: FnMut(u64) -> u64, | ||
| { | ||
| BooleanBuffer::from_bitwise_unary_op(left, offset_in_bits, len_in_bits, op).into_inner() | ||
| // reserve capacity and set length so we can get a typed view of u64 chunks |
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.
This restores the behavior to what it was prior to #8996
| t | ||
| }) | ||
| .into_inner(); | ||
| let buffer = bitwise_unary_op_helper(right.inner(), right.offset(), len, |b| { |
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.
This restores the behavior to what it was prior to #8996
| #[test] | ||
| fn nullif_fuzz() { | ||
| let mut rng = rng(); | ||
| let mut rng = StdRng::seed_from_u64(7337); |
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.
use fixed random seed so the test is reproducable
| (32, 32), | ||
| (0, 0), | ||
| (32, 0), | ||
| (5, 800), |
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.
use larger slices that are more than 2 u64s
d4c15d6 to
9a8879d
Compare
|
Thank you @Dandandan and @mhilton |
Which issue does this PR close?
nullifkernel #9085Rationale for this change
Fix a regression introduced in #8996
What changes are included in this PR?
bitwise_unary_op_helpernotkernel by 50%, addBooleanBuffer::from_bitwise_unary#8996Are these changes tested
Yes
Are there any user-facing changes?
Fix (not yet released) bug