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

Method register_udwf

datafusion/execution/src/task.rs:222–228  ·  view source on GitHub ↗
(&mut self, udwf: Arc<WindowUDF>)

Source from the content-addressed store, hash-verified

220 Ok(self.aggregate_functions.insert(udaf.name().into(), udaf))
221 }
222 fn register_udwf(&mut self, udwf: Arc<WindowUDF>) -> Result<Option<Arc<WindowUDF>>> {
223 udwf.aliases().iter().for_each(|alias| {
224 self.window_functions
225 .insert(alias.clone(), Arc::clone(&udwf));
226 });
227 Ok(self.window_functions.insert(udwf.name().into(), udwf))
228 }
229 fn register_udf(&mut self, udf: Arc<ScalarUDF>) -> Result<Option<Arc<ScalarUDF>>> {
230 udf.aliases().iter().for_each(|alias| {
231 self.scalar_functions

Callers

nothing calls this directly

Calls 6

iterMethod · 0.45
aliasesMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45
intoMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected