Method
register_udwf
(
&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, |
Tested by
no test coverage detected