Skip to content

Commit

Permalink
Fix GenericListArray::try_new_from_array_data error message (#526) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tustvold authored Oct 28, 2022
1 parent b6f08a8 commit 0a115d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arrow-array/src/array/list_array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl<OffsetSize: OffsetSizeTrait> GenericListArray<OffsetSize> {
if data.buffers().len() != 1 {
return Err(ArrowError::InvalidArgumentError(
format!("ListArray data should contain a single buffer only (value offsets), had {}",
data.len())));
data.buffers().len())));
}

if data.child_data().len() != 1 {
Expand Down

0 comments on commit 0a115d6

Please sign in to comment.