This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Use mutable bitmap unset_bits in primitive array iter() #1577
Unanswered
urvishdesai
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to create a MutablePrimitiveArray from array of type &mut PrimitiveArray using array.iter().
I have set some bits as null after initialization.
Now while creating the mutable array with
mutable = MutablePrimitiveArray::from_trusted_len_iter(array.iter()) => array.iter() which calls
ZipValidity::new_with_validity(self.values().iter(), self.validity()) => new_with_validity() that checks
if (validity.unset_bits()) > 0.
I would like to use MutableBitmap::unset_bits() that calls count_zeros() instead of the immutable one that returns the cached value. What do you suggest I do to get the correct Option validity in the result mutable_array MutablePrimitiveArray?
Beta Was this translation helpful? Give feedback.
All reactions