tustvold commented on code in PR #5612:
URL: https://github.com/apache/arrow-rs/pull/5612#discussion_r1557336528
##########
arrow-array/src/array/fixed_size_list_array.rs:
##########
@@ -152,16 +152,22 @@ impl FixedSizeListArray {
ArrowError::InvalidArgumentError(format!("Size cannot be negative,
got {}", size))
})?;
- let len = values.len() / s.max(1);
- if let Some(n) = nulls.as_ref() {
- if n.len() != len {
- return Err(ArrowError::InvalidArgumentError(format!(
- "Incorrect length of null buffer for FixedSizeListArray,
expected {} got {}",
- len,
- n.len(),
- )));
+ let len = match s {
Review Comment:
This is the fix for #5614
--
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]