tustvold commented on code in PR #5612:
URL: https://github.com/apache/arrow-rs/pull/5612#discussion_r1557358771
##########
arrow-array/src/array/fixed_size_list_array.rs:
##########
@@ -662,7 +662,7 @@ mod tests {
);
let list = FixedSizeListArray::new(field.clone(), 0, values.clone(),
None);
- assert_eq!(list.len(), 6);
+ assert_eq!(list.len(), 0);
Review Comment:
This is technically incorrect, in a FixedSizeListArray with size 0, the
length of the values has no bearing on the length of the array
I've created https://github.com/apache/arrow-rs/issues/5615 to track that it
isn't possible to create a non-empty, non-nullable FixedSizeListArray with size
0.
--
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]