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

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

    [ https://issues.apache.org/jira/browse/ARROW-13103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17364915#comment-17364915 ] 

Andrei Nesterov commented on ARROW-13103:
-----------------------------------------

In my case, I want to populate a table, then encode one of its columns to a dictionary type. This way I don't have any initial dictionary.

> [C++][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
>          Components: C++
>            Reporter: Andrei Nesterov
>            Priority: Major
>
> 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)