-
Notifications
You must be signed in to change notification settings - Fork 4k
Description
Functions [pyarrow.compute.dictionary_encode()|https://arrow.apache.org/docs/python/generated/pyarrow.compute.dictionary_encode.html] and [pyarrow.Array.dictionary_encode()|https://arrow.apache.org/docs/python/generated/pyarrow.DictionaryArray.html#pyarrow.DictionaryArray.dictionary_encode] don't allow to specify a desirable dictionary type.
A dictionary type consists of value type, index type, and ordering.
Index type is set to int32() and ordering is set to False.
Changing these properties requires redundant casting (not implemented).
Reporter: Andrei Nesterov
Related issues:
- [Python] Casting between dictionary types (relates to)
- [C++] Implement kernel function that converts a dense array to dictionary given known dictionary (is related to)
- [C++] Implement casting to dictionary type (dictionary_encode as a cast) (is related to)
Note: This issue was originally created as ARROW-13103. Please see the migration documentation for further details.