| 270 | } |
| 271 | |
| 272 | Status IndicesNonZeroExec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) { |
| 273 | std::shared_ptr<ArrayData> result; |
| 274 | RETURN_NOT_OK(DoNonZero({batch[0].array}, batch.length, &result)); |
| 275 | out->value = std::move(result); |
| 276 | return Status::OK(); |
| 277 | } |
| 278 | |
| 279 | Status IndicesNonZeroExecChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) { |
| 280 | const ChunkedArray& arr = *batch[0].chunked_array(); |