You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/07/06 09:40:02 UTC

[GitHub] [arrow-rs] jhorstmann opened a new issue #526: Incorrect value in error message from GenericListArray::try_new_from_array_data

jhorstmann opened a new issue #526:
URL: https://github.com/apache/arrow-rs/issues/526


   **Describe the bug**
   The error message should report the number of buffers instead of the arrays length:
   
       if data.buffers().len() != 1 {
           return Err(ArrowError::InvalidArgumentError(
               format!("ListArray data should contain a single buffer only (value offsets), had {}",
                       data.len())));
       }
   
   
   **To Reproduce**
   Try to create a ListArray using ArrayDataBuilder and make_array, but forgetting to add a buffer.
   
   **Expected behavior**
   Error message should contain the actual number of buffers.
   
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org