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

Function find_column_exprs

datafusion/expr/src/utils.rs:801–807  ·  view source on GitHub ↗

Collect all deeply nested `Expr::Column`'s. They are returned in order of appearance (depth first), and may contain duplicates.

(exprs: &[Expr])

Source from the content-addressed store, hash-verified

799/// Collect all deeply nested `Expr::Column`'s. They are returned in order of
800/// appearance (depth first), and may contain duplicates.
801pub fn find_column_exprs(exprs: &[Expr]) -> Vec<Expr> {
802 exprs
803 .iter()
804 .flat_map(find_columns_referenced_by_expr)
805 .map(Expr::Column)
806 .collect()
807}
808
809pub(crate) fn find_columns_referenced_by_expr(e: &Expr) -> Vec<Column> {
810 let mut exprs = vec![];

Callers 2

Calls 3

collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…