MCPcopy Create free account
hub / github.com/apache/datafusion / register_udaf

Method register_udaf

datafusion/expr/src/registry.rs:254–259  ·  view source on GitHub ↗
(
        &mut self,
        udaf: Arc<AggregateUDF>,
    )

Source from the content-addressed store, hash-verified

252 .insert(function.name().into(), function))
253 }
254 fn register_udaf(
255 &mut self,
256 udaf: Arc<AggregateUDF>,
257 ) -> Result<Option<Arc<AggregateUDF>>> {
258 Ok(self.udafs.insert(udaf.name().into(), udaf))
259 }
260 fn register_udwf(&mut self, udaf: Arc<WindowUDF>) -> Result<Option<Arc<WindowUDF>>> {
261 Ok(self.udwfs.insert(udaf.name().into(), udaf))
262 }

Callers

nothing calls this directly

Calls 3

insertMethod · 0.45
intoMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected