Skip to content

[C++][Python] Allow to specify a dictionary type for dictionary_encode() function #18713

@asfimport

Description

@asfimport

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:

Note: This issue was originally created as ARROW-13103. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions