tustvold commented on code in PR #6306:
URL: https://github.com/apache/arrow-rs/pull/6306#discussion_r1731703196
##########
arrow-array/src/array/byte_view_array.rs:
##########
@@ -317,8 +317,11 @@ impl<T: ByteViewType + ?Sized> GenericByteViewArray<T> {
})
}
- /// Returns an iterator over the prefix bytes of this array with respect
to the prefix length.
- /// If the prefix length is larger than the string length, it will return
the empty slice.
+ /// Returns an iterator over the first `prefix_len` bytes of each array
+ /// element, including null values.
+ ///
+ /// If `prefix_len` is larger than the element's length, the iterator will
Review Comment:
I guess I would have thought returning `Option<&[u8]>` would be perhaps more
intuitive and likely perform similarly? That being said I am surprised that
skipping the null mask yields performance returns, as this hasn't been my
experience with regular StringArray, so my intuition about performance may be
off
--
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]