Expand description
Adapter bridging legacy CustomScalarFn closures to uni-plugin’s
ScalarPluginFn trait.
M2’s facade keeps the public CustomFunctionRegistry::register API
intact while routing registrations into a shadow PluginRegistry. This
adapter is the bridge: it wraps a Fn(&[Value]) -> Result<Value>
closure into a type implementing ScalarPluginFn so it can live in the
plugin registry.
As subsequent M2 commits migrate built-ins to native Arrow signatures
(ArgType::Primitive), this row-per-call adapter remains as the slow
path for legacy registrations declaring ArgType::CypherValue.
Structs§
- Value
RowFn ScalarPluginFnimpl that wraps a legacyFn(&[Value]) -> Result<Value>closure.