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

Method register_udwf

datafusion/core/src/execution/session_state.rs:2165–2174  ·  view source on GitHub ↗
(
        &mut self,
        udwf: Arc<WindowUDF>,
    )

Source from the content-addressed store, hash-verified

2163 }
2164
2165 fn register_udwf(
2166 &mut self,
2167 udwf: Arc<WindowUDF>,
2168 ) -> datafusion_common::Result<Option<Arc<WindowUDF>>> {
2169 udwf.aliases().iter().for_each(|alias| {
2170 self.window_functions
2171 .insert(alias.clone(), Arc::clone(&udwf));
2172 });
2173 Ok(self.window_functions.insert(udwf.name().into(), udwf))
2174 }
2175
2176 fn deregister_udf(
2177 &mut self,

Callers 1

buildMethod · 0.45

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