| 318 | // Direct exec interface to kernels |
| 319 | |
| 320 | Result<std::shared_ptr<Array>> NthToIndices(const Array& values, |
| 321 | const PartitionNthOptions& options, |
| 322 | ExecContext* ctx) { |
| 323 | ARROW_ASSIGN_OR_RAISE(Datum result, CallFunction("partition_nth_indices", |
| 324 | {Datum(values)}, &options, ctx)); |
| 325 | return result.make_array(); |
| 326 | } |
| 327 | |
| 328 | Result<std::shared_ptr<Array>> NthToIndices(const Array& values, int64_t n, |
| 329 | ExecContext* ctx) { |