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

Method ScalarArray

cpp/src/arrow/compute/kernels/codegen_internal.h:845–856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843 }
844
845 static Status ScalarArray(KernelContext* ctx, const Scalar& arg0, const ArraySpan& arg1,
846 ExecResult* out) {
847 Status st = Status::OK();
848 auto arg0_val = UnboxScalar<Arg0Type>::Unbox(arg0);
849 ArrayIterator<Arg1Type> arg1_it(arg1);
850 RETURN_NOT_OK(
851 OutputAdapter<OutType>::Write(ctx, out->array_span_mutable(), [&]() -> OutValue {
852 return Op::template Call<OutValue, Arg0Value, Arg1Value>(ctx, arg0_val,
853 arg1_it(), &st);
854 }));
855 return st;
856 }
857
858 static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
859 if (batch[0].is_array()) {

Callers

nothing calls this directly

Calls 2

WriteFunction · 0.85
OKFunction · 0.50

Tested by

no test coverage detected