This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a115d6e2 Fix GenericListArray::try_new_from_array_data error message 
(#526) (#2961)
0a115d6e2 is described below

commit 0a115d6e270690ed076aeffc35d30dc369174f09
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Fri Oct 28 19:09:27 2022 +1300

    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 0db40a796..17691bb32 100644
--- a/arrow-array/src/array/list_array.rs
+++ b/arrow-array/src/array/list_array.rs
@@ -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 {

Reply via email to