amoeba commented on issue #39603: URL: https://github.com/apache/arrow/issues/39603#issuecomment-1897604348
Hi @lgautier, thanks for the report. It looks like the issue is that the conversion routine this uses doesn't support `uint32` indices: https://github.com/apache/arrow/blob/c170af41ba0c30b80aa4172da0b3637206368cf2/r/src/array_to_vector.cpp#L593-L603 As a workaround until this feature is added, you should be able to `cast()` to a similar type but with int32 indices so long as your indices can be contained within an int32: ```r ar_df$foo$cast(dictionary(index_type = int32(), value_type = large_utf8()))$as_vector() ``` The pure arrow reproducer for this is, ```r Array$create(factor(c("x", "y", "z")))$cast(dictionary(index_type = uint32(), value_type = large_utf8())) ``` -- 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]
