Function datafusion_expr::expr_fn::call_fn
source · pub fn call_fn(name: impl AsRef<str>, args: Vec<Expr>) -> Result<Expr>
Expand description
Calls a named built in function
use datafusion_expr::{col, lit, call_fn};
// create the expression sin(x) < 0.2
let expr = call_fn("sin", vec![col("x")]).unwrap().lt(lit(0.2));