You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "scovich (via GitHub)" <gi...@apache.org> on 2025/09/10 14:36:35 UTC

[I] [Variant] Use row-oriented builders in `cast_to_variant` [arrow-rs]

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

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   While reviewing other code, I noticed that `cast_to_variant` uses an inefficient column-oriented approach to building variant values. For primitive types this works ok, but for deeply nested types it means repeatedly creating new variants (and variant metadata), only to re-code them by copying the variant values to new arrays (with new metadata and field ids). Very expensive.
   
   **Describe the solution you'd like**
   
   Use a row-oriented builder approach, similar to what `variant_get` uses.
   
   


-- 
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] Use row-oriented builders in `cast_to_variant` [arrow-rs]

Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8310: [Variant] Use row-oriented builders in `cast_to_variant`
URL: https://github.com/apache/arrow-rs/issues/8310


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