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

Function split_conjunction

datafusion/expr/src/utils.rs:1019–1021  ·  view source on GitHub ↗

Splits a conjunctive [`Expr`] such as `A AND B AND C` => `[A, B, C]` See [`split_conjunction_owned`] for more details and an example.

(expr: &Expr)

Source from the content-addressed store, hash-verified

1017///
1018/// See [`split_conjunction_owned`] for more details and an example.
1019pub fn split_conjunction(expr: &Expr) -> Vec<&Expr> {
1020 split_conjunction_impl(expr, vec![])
1021}
1022
1023fn split_conjunction_impl<'a>(expr: &'a Expr, mut exprs: Vec<&'a Expr>) -> Vec<&'a Expr> {
1024 match expr {

Callers 14

test_split_conjunctionFunction · 0.70
is_scalarMethod · 0.50
extract_dml_filtersFunction · 0.50
runMethod · 0.50
build_row_filterFunction · 0.50
newMethod · 0.50

Calls 1

split_conjunction_implFunction · 0.85

Tested by 5

test_split_conjunctionFunction · 0.56
runMethod · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…