arrow icon indicating copy to clipboard operation
arrow copied to clipboard

Implement 'array_take' kernel for run_end_encoded<...> type.

Open vmit opened this issue 1 year ago • 1 comments

Describe the bug, including details regarding any error messages, version, and platform.

Calling pa.compute.take() (or arrow::compute::Take() in C++) on an REE encoded array is not supported. While it's clear that the implementation will probably be non-trivial, from the functional perspective, there is no reason not to have it. IIUC, the Take() function is the canonical way to sort data, so that if a Table has an REE column, such sorting fails.

Min reproduction:

import pyarrow as pa
rle_encoded = pa.compute.run_end_encode([1, 1, 1, 2, 2, 3, 3, 3, 3])
pa.compute.take(rle_encoded, pa.array([0,2,4,6]))

Component(s)

C++, Python

vmit avatar May 09 '25 14:05 vmit

This issue was labelled as a bug but describes an improvement rather than incorrect behaviour, so it has been relabelled as Type: enhancement. It has had no activity in the past 365 days, so it has also been marked as stale. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.

thisisnic avatar Sep 26 '26 20:09 thisisnic