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

   It's hard to pass around the content of tuple/struct enum variants with 
multiple members -- you have to unpack them and pass scalar values around, 
which is bulky and error-prone (**). Should we consider creating a struct or 
family of structs for representing scalar decimal values?
   
   <details>
   <summary>(**)</summary>
   
    It would be lovely if `Variant::Decimal4` were an actual type in rust. It 
actually _is_ a type under the hood, but the language doesn't expose it as 
such, because the enum discriminant has to be stored somewhere and rust usually 
embeds it in the variant itself to save space. See 
https://rust-lang.github.io/rfcs/2195-really-tagged-unions.html#guide-level-explanation
 for gory details.
   </details>
   
   _Originally posted by @scovich in 
https://github.com/apache/arrow-rs/pull/7644#discussion_r2142968689_
               
   
   I believe the high level proposal is somethin


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