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

Method udwf

datafusion/expr/src/registry.rs:236–241  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

234 }
235
236 fn udwf(&self, name: &str) -> Result<Arc<WindowUDF>> {
237 self.udwfs
238 .get(name)
239 .cloned()
240 .ok_or_else(|| plan_datafusion_err!("Window Function {name} not found"))
241 }
242
243 fn register_udf(&mut self, udf: Arc<ScalarUDF>) -> Result<Option<Arc<ScalarUDF>>> {
244 Ok(self.udfs.insert(udf.name().to_string(), udf))

Callers 3

parse_exprFunction · 0.45
from_window_functionFunction · 0.45

Calls 2

clonedMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected