| 486 | } // namespace |
| 487 | |
| 488 | Status RegisterScalarFunction(PyObject* function, UdfWrapperCallback cb, |
| 489 | const UdfOptions& options, |
| 490 | compute::FunctionRegistry* registry) { |
| 491 | return RegisterUdf<compute::ScalarFunction, compute::ScalarKernel>( |
| 492 | function, PythonUdfKernelInit{std::make_shared<OwnedRefNoGIL>(function)}, cb, |
| 493 | options, registry); |
| 494 | } |
| 495 | |
| 496 | Status RegisterVectorFunction(PyObject* function, UdfWrapperCallback cb, |
| 497 | const UdfOptions& options, |
nothing calls this directly
no outgoing calls
no test coverage detected