[ 
https://issues.apache.org/jira/browse/ARROW-14129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

A. Coady updated ARROW-14129:
-----------------------------
    Summary: [C++] An empty dictionary array crashes on `unique` and 
`value_counts`.  (was: [C++] An empty dictionary arrow crashes on `unique` and 
`value_counts`.)

> [C++] An empty dictionary array crashes on `unique` and `value_counts`.
> -----------------------------------------------------------------------
>
>                 Key: ARROW-14129
>                 URL: https://issues.apache.org/jira/browse/ARROW-14129
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 5.0.0
>            Reporter: A. Coady
>            Priority: Critical
>
> {code:python}
> import pyarrow as pa
> arr = pa.array(range(3)).dictionary_encode()
> assert not arr[:0]
> assert arr[:0].unique() # Check failed: (data->dictionary) != (nullptr) 
> {code}



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

Reply via email to