diff --git a/arrow-array/src/array/list_array.rs b/arrow-array/src/array/list_array.rs index 0db40a796964..17691bb324ae 100644 --- a/arrow-array/src/array/list_array.rs +++ b/arrow-array/src/array/list_array.rs @@ -201,7 +201,7 @@ impl GenericListArray { 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 {