datafusion_expr::utils

Function split_binary

Source
pub fn split_binary(expr: &Expr, op: Operator) -> Vec<&Expr>
Expand description

Splits an binary operator tree Expr such as A <OP> B <OP> C => [A, B, C]

See split_binary_owned for more details and an example.