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

Method call

datafusion/expr/src/udwf.rs:135–139  ·  view source on GitHub ↗

creates a [`Expr`] that calls the window function with default values for `order_by`, `partition_by`, `window_frame`. See [`ExprFunctionExt`] for details on setting these values. This utility allows using a user defined window function without requiring access to the registry, such as with the DataFrame API. [`ExprFunctionExt`]: crate::expr_fn::ExprFunctionExt

(&self, args: Vec<Expr>)

Source from the content-addressed store, hash-verified

133 ///
134 /// [`ExprFunctionExt`]: crate::expr_fn::ExprFunctionExt
135 pub fn call(&self, args: Vec<Expr>) -> Expr {
136 let fun = crate::WindowFunctionDefinition::WindowUDF(Arc::new(self.clone()));
137
138 Expr::from(WindowFunction::new(fun, args))
139 }
140
141 /// Returns this function's name
142 ///

Callers

nothing calls this directly

Calls 3

WindowUDFClass · 0.85
newFunction · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected