| 279 | } |
| 280 | |
| 281 | Status IndicesNonZeroExecChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) { |
| 282 | const ChunkedArray& arr = *batch[0].chunked_array(); |
| 283 | std::vector<ArraySpan> arrays; |
| 284 | for (int i = 0; i < arr.num_chunks(); ++i) { |
| 285 | arrays.push_back(ArraySpan(*arr.chunk(i)->data())); |
| 286 | } |
| 287 | std::shared_ptr<ArrayData> result; |
| 288 | RETURN_NOT_OK(DoNonZero(arrays, arr.length(), &result)); |
| 289 | out->value = std::move(result); |
| 290 | return Status::OK(); |
| 291 | } |
| 292 | |
| 293 | std::shared_ptr<VectorFunction> MakeIndicesNonZeroFunction(std::string name, |
| 294 | FunctionDoc doc) { |
nothing calls this directly
no test coverage detected