You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "A. Coady (Jira)" <ji...@apache.org> on 2021/02/19 04:02:00 UTC

[jira] [Created] (ARROW-11694) Sorting a non-chunked array may seg fault.

A. Coady created ARROW-11694:
--------------------------------

             Summary: Sorting a non-chunked array may seg fault.
                 Key: ARROW-11694
                 URL: https://issues.apache.org/jira/browse/ARROW-11694
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++, Python
    Affects Versions: 3.0.0
         Environment: macOS, ubuntu
            Reporter: A. Coady


Sorting a non-chunked array has some sort of reference problem. Some operations on the resulting indices array crash.
{code:python}
import pyarrow as pa, pyarrow.compute as pc

array = pa.array(list("abcba"))
assert pc.sort_indices(pa.chunked_array([array])).take([0])
assert pc.array_sort_indices(pa.chunked_array([array])).take([0])
pc.sort_indices(array).take([0])  # crash
pc.array_sort_indices(array).take([0])  # crash
{code}




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