jhorstmann commented on issue #729: URL: https://github.com/apache/arrow-rs/issues/729#issuecomment-908202065
There is [StringDictionaryBuilder::new_with_dictionary](https://docs.rs/arrow/5.2.0/arrow/array/struct.StringDictionaryBuilder.html#method.new_with_dictionary) which allows specifying existing dictionary values when building an array. There is also a low-level way of [building array from an underlying ArrayData struct](https://docs.rs/arrow/5.2.0/arrow/array/struct.DictionaryArray.html#impl-From%3CArrayData%3E), but this is much more complex than the python api you pointed too. So I agree, such an api would be quite useful. -- 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]
