diff --git a/arrow-array/src/array/byte_view_array.rs b/arrow-array/src/array/byte_view_array.rs index fbd2fa3ebd04..6bc77a02f619 100644 --- a/arrow-array/src/array/byte_view_array.rs +++ b/arrow-array/src/array/byte_view_array.rs @@ -319,6 +319,8 @@ impl GenericByteViewArray { /// 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 None. + /// + /// Note for null views, it returns None. pub fn prefix_bytes_iter(&self, prefix_len: usize) -> impl Iterator> { self.views().into_iter().map(move |v| { let len = (*v as u32) as usize;