Wainberg commented on issue #40128: URL: https://github.com/apache/arrow/issues/40128#issuecomment-1961481522
Workaround in the meantime: ```python import pyarrow as pa arr = pa.array(["foo", "bar"], pa.dictionary(pa.int32(), pa.string())) arr_empty = arr[:0] arr_empty_cast = pa.DictionaryArray.from_arrays(pa.array([], type=pa.int64()), arr_empty.dictionary) print(arr_empty_cast.dictionary) # ['foo', 'bar'] ``` -- 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]
