LiaCastaneda commented on PR #7627:
URL: https://github.com/apache/arrow-rs/pull/7627#issuecomment-3160365818

    I'm sketching a solution for this, and I'm wondering if we want to keep the 
exact same encoding, one thing that I think we could do is manually build a 
Dictionary using a DictionaryBuilder or perform a cast using `arrow_cast::cast` 
which does [the 
same](https://github.com/apache/arrow-rs/blob/c25c5a74c1c70cee57558e81a66a2e44725a67a6/arrow-cast/src/cast/dictionary.rs#L323)
 under the hood. This would keep the DataType but i'm not sure it will keep the 
exact same encoding as the Dict Array that went in. If we want to keep the 
exact same Dict encoding then we would probably need to keep the original 
`DictionaryArray` values somewhere


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