You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/06/13 14:37:29 UTC
[I] [Variant] Introduce structs for Variant::Decimal types [arrow-rs]
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: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Introduce structs for Variant::Decimal types [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #7660:
URL: https://github.com/apache/arrow-rs/issues/7660#issuecomment-3130007598
`label_issue.py` automatically added labels {'parquet'} from #7644
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Introduce structs for Variant::Decimal types [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #7660: [Variant] Introduce structs for Variant::Decimal types
URL: https://github.com/apache/arrow-rs/issues/7660
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Variant] Introduce structs for Variant::Decimal types [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #7660:
URL: https://github.com/apache/arrow-rs/issues/7660#issuecomment-3005197796
@Weijun-H did this in
- https://github.com/apache/arrow-rs/pull/7738
--
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-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org