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


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   There are many `as_XXX` functions  such as 
[`as_boolean_array`](https://docs.rs/arrow/9.0.2/arrow/array/fn.as_boolean_array.html)
 to conveniently downcast arrays to the appropriate concrete Array types, but 
not one for `DecimalArray` 😢 . 
   
   The full list of supported ones is in the doc  
https://docs.rs/arrow/9.0.2/arrow/array/index.html#functions) 
   
   **Describe the solution you'd like**
   I would like one for DecimalArray:
   
   ```
   fn as_decimal_array(arr: &dyn Array) -> &DecimalArray {
   ...
   }
   ```
   
   
   **Additional context**
   Context: I found while working on 
https://github.com/apache/arrow-datafusion/pull/1475


-- 
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