You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Andrei Nesterov (Jira)" <ji...@apache.org> on 2021/06/16 23:14:00 UTC

[jira] [Created] (ARROW-13103) [Python] Allow to specify a dictionary type for dictionary_encode() function

Andrei Nesterov created ARROW-13103:
---------------------------------------

             Summary: [Python] Allow to specify a dictionary type for dictionary_encode() function
                 Key: ARROW-13103
                 URL: https://issues.apache.org/jira/browse/ARROW-13103
             Project: Apache Arrow
          Issue Type: Improvement
            Reporter: Andrei Nesterov


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|https://issues.apache.org/jira/browse/ARROW-13102]).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)