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

Method udf

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

Source from the content-addressed store, hash-verified

175 }
176
177 fn udf(&self, name: &str) -> Result<Arc<ScalarUDF>> {
178 let result = self.scalar_functions.get(name);
179
180 result.cloned().ok_or_else(|| {
181 plan_datafusion_err!("There is no UDF named \"{name}\" in the TaskContext")
182 })
183 }
184
185 fn higher_order_function(&self, name: &str) -> Result<Arc<HigherOrderUDF>> {
186 let result = self.higher_order_functions.get(name);

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
clonedMethod · 0.45

Tested by

no test coverage detected