alamb commented on code in PR #9158:
URL: https://github.com/apache/arrow-rs/pull/9158#discussion_r2686996872
##########
arrow-array/src/array/byte_view_array.rs:
##########
@@ -988,12 +988,18 @@ impl<'a, T: ByteViewType + ?Sized> IntoIterator for &'a
GenericByteViewArray<T>
impl<T: ByteViewType + ?Sized> From<ArrayData> for GenericByteViewArray<T> {
fn from(data: ArrayData) -> Self {
- let (_data_type, len, nulls, offset, mut buffers, _child_data) =
data.into_parts();
+ let (data_type, len, nulls, offset, mut buffers, _child_data) =
data.into_parts();
+ assert_eq!(
Review Comment:
This is the equivalent check in GenericByteArray:
https://github.com/apache/arrow-rs/blob/90839dfbf104056062cf6fe68ca2b7c7babacaa5/arrow-array/src/array/byte_array.rs#L545
--
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]