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

Function IndicesNonZeroExec

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

Source from the content-addressed store, hash-verified

270}
271
272Status 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
279Status IndicesNonZeroExecChunked(KernelContext* ctx, const ExecBatch& batch, Datum* out) {
280 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