neilconway opened a new pull request, #11356:
URL: https://github.com/apache/arrow-rs/pull/11356

   # Which issue does this PR close?
   
   - N/A
   
   # Rationale for this change
   
   `variant_get` built `List` and `ListView` results using 
`GenericListArray::new` and `GenericListViewArray::new`, which panic if the 
array would be invalid. Given a list type with a non-nullable field, asking for 
a result with a null value in such a field would panic instead of returning an 
error.
   
   # What changes are included in this PR?
   
   * Use `try_new` instead of `new`, matching the existing FSL and struct paths
   * Add unit test
   
   # Are these changes tested?
   
   Yes; existing test pass, new test added.
   
   # Are there any significant user-facing changes?
   
   No.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to