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

Function PythonUdfExec

python/pyarrow/src/arrow/python/udf.cc:445–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443};
444
445Status PythonUdfExec(compute::KernelContext* ctx, const compute::ExecSpan& batch,
446 compute::ExecResult* out) {
447 auto udf = static_cast<PythonUdf*>(ctx->kernel()->data.get());
448 return SafeCallIntoPython([&]() -> Status { return udf->Exec(ctx, batch, out); });
449}
450
451template <class Function, class Kernel>
452Status RegisterUdf(PyObject* function, compute::KernelInit kernel_init,

Callers

nothing calls this directly

Calls 3

SafeCallIntoPythonFunction · 0.85
getMethod · 0.45
ExecMethod · 0.45

Tested by

no test coverage detected