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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   - part of https://github.com/apache/arrow-rs/issues/6736
   
   We introduced the basic `variant_get` kernel in and now we need to expand 
its feature set
   - https://github.com/apache/arrow-rs/pull/8021
   
   The `VariantArray::value` method is supposed to return a Variant::Value at 
the relevant index. This currently works fine for Unshredded variants but for 
most shredded variants and will panic in debug buillds, and return a 
`Variant::Null` in release builds
   
   @Samyak2  commented here: 
https://github.com/apache/arrow-rs/pull/8021#discussion_r2255052328
   
   > That's unfortunate. Maybe a separate issue for that?
   
   **Describe the solution you'd like**
   
   I would like `VariantArray::value` to work for more value types
   
   Specifically this code here:
   
   
https://github.com/apache/arrow-rs/blob/c561acba798d34f7e642eca44b298c2a3b63ff98/parquet-variant-compute/src/variant_array.rs#L341-L340
   
   
   **Describe alternatives you've considered**
   
   Ideally we would find a way to reuse the macros being developed for 
`cast_to_variant`  kernel as suggested by @Samyak2  above. 
   
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
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.apache.org

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

Reply via email to