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

Method register_higher_order_function

datafusion/execution/src/task.rs:237–248  ·  view source on GitHub ↗
(
        &mut self,
        function: Arc<HigherOrderUDF>,
    )

Source from the content-addressed store, hash-verified

235 }
236
237 fn register_higher_order_function(
238 &mut self,
239 function: Arc<HigherOrderUDF>,
240 ) -> Result<Option<Arc<HigherOrderUDF>>> {
241 function.aliases().iter().for_each(|alias| {
242 self.higher_order_functions
243 .insert(alias.clone(), Arc::clone(&function));
244 });
245 Ok(self
246 .higher_order_functions
247 .insert(function.name().into(), function))
248 }
249
250 fn expr_planners(&self) -> Vec<Arc<dyn ExprPlanner>> {
251 vec![]

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