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

   # Which issue does this PR close?
   
   Related to #7806
   
   # Rationale for this change
   
   Some methods in `arrow` use `new()` of array types which internally use 
`try_new()` and unwraps the result; this can lead to panics instead of 
propagating errors to downstream users. For example, this DataFusion issue: 
https://github.com/apache/datafusion/issues/12598
   
   # What changes are included in this PR?
   
   Replace usages of `new()` with `try_new()` where appropriate (the function 
they are used inside already return a `Result`.
   
   # Are these changes tested?
   
   Covered by existing tests.
   
   # Are there any 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: github-unsubscr...@arrow.apache.org

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

Reply via email to