liamzwbao opened a new issue, #9385:
URL: https://github.com/apache/arrow-rs/issues/9385
This pattern of creating a BooleanBuffer from with a length and then
filtering for nulls count is quite common (and becoming more so)
I wonder if we should (as a follow on PR) make a function to do it, maybe
like
```rust
let Option<NullBuffer> = NullBuffer::try_from_unsliced(b, array.len())
```
Then this code would look like
```rust
let nulls = array
.nulls()
.map(|n| n.inner().sliced())
.map(|b| NullBuffer::try_from_unsliced(b, array.len()
```
🤔
_Originally posted by @alamb in
https://github.com/apache/arrow-rs/pull/9338#discussion_r2766183359_
--
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]