Returns a [`Expr`] logical expression to call this UDF with specified arguments. This utility allows easily calling UDFs # Example ```no_run use datafusion_expr::{col, lit, ScalarUDF}; # fn my_udf() -> ScalarUDF { unimplemented!() } let my_func: ScalarUDF = my_udf(); // Create an expr for `my_func(a, 12.3)` let expr = my_func.call(vec![col("a"), lit(12.3)]); ```
(&self, args: Vec<Expr>)
| 170 | /// let expr = my_func.call(vec![col("a"), lit(12.3)]); |
| 171 | /// ``` |
| 172 | pub fn call(&self, args: Vec<Expr>) -> Expr { |
| 173 | Expr::ScalarFunction(crate::expr::ScalarFunction::new_udf( |
| 174 | Arc::new(self.clone()), |
| 175 | args, |
| 176 | )) |
| 177 | } |
| 178 | |
| 179 | /// Returns this function's name. |
| 180 | /// |