rluvaton commented on code in PR #8785:
URL: https://github.com/apache/arrow-rs/pull/8785#discussion_r2492228319
##########
arrow-array/src/iterator.rs:
##########
@@ -56,7 +56,7 @@ impl<T: ArrayAccessor> ArrayIter<T> {
/// create a new iterator
pub fn new(array: T) -> Self {
let len = array.len();
- let logical_nulls = array.logical_nulls();
+ let logical_nulls = array.logical_nulls().filter(|x| x.null_count() >
0);
Review Comment:
To avoid checking for nulls if null buffer exists but no nulls
--
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]