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

Method udaf

datafusion/execution/src/task.rs:195–201  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

193 }
194
195 fn udaf(&self, name: &str) -> Result<Arc<AggregateUDF>> {
196 let result = self.aggregate_functions.get(name);
197
198 result.cloned().ok_or_else(|| {
199 plan_datafusion_err!("There is no UDAF named \"{name}\" in the TaskContext")
200 })
201 }
202
203 fn udwf(&self, name: &str) -> Result<Arc<WindowUDF>> {
204 let result = self.window_functions.get(name);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
clonedMethod · 0.45

Tested by

no test coverage detected