jorisvandenbossche commented on issue #34583: URL: https://github.com/apache/arrow/issues/34583#issuecomment-1472072773
So since the `decode_dictionary` method is actually just implemented as a "take" with the indices (what I showed above), it's this operation that is doing the wrong thing. We have various other issues related to cases where we should probably automatically upcast to large string (eg when concatenating arrays, https://github.com/apache/arrow/issues/33049, https://github.com/apache/arrow/issues/23539, https://github.com/apache/arrow/issues/25822 and others) The easier workaround is probably to cast to large_string first (then you don't need the manual chunking): ``` postcode_dict_large = postcode_dict.cast(pa.dictionary(pa.int32(), pa.large_string())) postcode_dict_large.dictionary_decode() ``` -- 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]
