Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
call_fn in datafusion::prelude - Rust
[go: Go Back, main page]

Function datafusion::prelude::call_fn

source ·
pub fn call_fn(
    name: impl AsRef<str>,
    args: Vec<Expr>
) -> Result<Expr, DataFusionError>
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));