AlenkaF opened a new issue, #55775:
URL: https://github.com/apache/arrow/issues/55775
### Describe the bug, including details regarding any error messages,
version, and platform.
```python
In [4]: pc.partition_nth_indices(pa.chunked_array([[5, 4, 3], [2, 1, 0]]),
pivot=1)
Out[4]:
<pyarrow.lib.ChunkedArray object at 0x108120700>
[
[
0,
1,
2,
3,
4,
5
]
]
```
vs
```python
In [5]: pc.partition_nth_indices(pa.array([5, 4, 3, 2, 1, 0]), pivot=1)
Out[5]:
<pyarrow.lib.UInt64Array object at 0x107fc1540>
[
5,
4,
3,
2,
1,
0
]
```
In a debug build the chunked array case segfaults, see
https://github.com/apache/arrow/actions/runs/45373797129/job/138374519791?pr=49201.
Claude states: In vector_array_sort.cc, partition_nth_indices reuses the
base kernel from array_sort_indices without resetting exec_chunked, so chunked
input runs ArraySortIndicesChunked with PartitionNthOptions. Chunked input
should either be supported properly or raise an error.
Found while working on the compute stubs (#49201).
### Component(s)
C++
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]