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

Function RegisterScalarFunction

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

Source from the content-addressed store, hash-verified

486} // namespace
487
488Status 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
496Status RegisterVectorFunction(PyObject* function, UdfWrapperCallback cb,
497 const UdfOptions& options,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected