Eyad3skr opened a new pull request, #9411:
URL: https://github.com/apache/arrow-rs/pull/9411

   
   Implements a helper to replace the pattern of creating a `BooleanBuffer` 
from an unsliced validity bitmap and filtering by null count. Previously this 
was done with `BooleanBuffer::new(...)` plus 
`Some(NullBuffer::new(...)).filter(|n| n.null_count() > 0);` now it is a single 
call to` NullBuffer::try_from_unsliced(buffer, len)`, which returns 
`Some(NullBuffer)` when there are nulls and `None` when all values are valid.
   
   - Added `try_from_unsliced` in `arrow-buffer/src/buffer/null.rs` with tests 
for nulls, all valid, all null, empty
   - Refactor `FixedSizeBinaryArray::try_from_iter_with_size` and 
`try_from_sparse_iter_with_size` to use it
   - Refactor `take_nulls` in `arrow-select` to use it
   
   
   Closes #9385


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to