| 443 | }; |
| 444 | |
| 445 | Status 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 | |
| 451 | template <class Function, class Kernel> |
| 452 | Status RegisterUdf(PyObject* function, compute::KernelInit kernel_init, |
nothing calls this directly
no test coverage detected