MCPcopy Create free account
hub / github.com/apache/arrow / IndicesNonZeroExec

Function IndicesNonZeroExec

cpp/src/arrow/compute/kernels/vector_selection.cc:274–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

DoNonZeroFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected