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

Method Exec

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

Source from the content-addressed store, hash-verified

856 }
857
858 static Status Exec(KernelContext* ctx, const ExecSpan& batch, ExecResult* out) {
859 if (batch[0].is_array()) {
860 if (batch[1].is_array()) {
861 return ArrayArray(ctx, batch[0].array, batch[1].array, out);
862 } else {
863 return ArrayScalar(ctx, batch[0].array, *batch[1].scalar, out);
864 }
865 } else {
866 if (batch[1].is_array()) {
867 return ScalarArray(ctx, *batch[0].scalar, batch[1].array, out);
868 } else {
869 ARROW_DCHECK(false);
870 return Status::Invalid("Should be unreachable");
871 }
872 }
873 }
874};
875
876// An alternative to ScalarBinary that Applies a scalar operation with state on

Callers

nothing calls this directly

Calls 2

is_arrayMethod · 0.80
InvalidFunction · 0.50

Tested by

no test coverage detected