You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Rafferty97 (via GitHub)" <gi...@apache.org> on 2026/03/13 04:13:14 UTC

Re: [I] Add Union type casting support to `arrow-cast` [arrow-rs]

Rafferty97 commented on issue #9225:
URL: https://github.com/apache/arrow-rs/issues/9225#issuecomment-4052494506

   I think this could be decomposed into simpler pieces. For the case of just wanting to extract a particular variant from an enum without any further transforms/casts, I think this could be relatively simple:
   - For a sparse union, I think it's just a matter of extracting the right child array and adjusting the validity bitmap
   - For a dense union, it would be similar but you'd need to scatter the actual values
   
   @alamb If you think this could be a useful lego piece I'd be interested in trying my hand at an implementation


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