From 0a115d6e270690ed076aeffc35d30dc369174f09 Mon Sep 17 00:00:00 2001 From: Raphael Taylor-Davies <1781103+tustvold@users.noreply.github.com> Date: Fri, 28 Oct 2022 19:09:27 +1300 Subject: [PATCH] Fix GenericListArray::try_new_from_array_data error message (#526) (#2961) --- arrow-array/src/array/list_array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {