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

Function find_aggregate_exprs

datafusion/expr/src/utils.rs:649–653  ·  view source on GitHub ↗

Collect all deeply nested `Expr::AggregateFunction`. They are returned in order of occurrence (depth first), with duplicates omitted.

(exprs: impl IntoIterator<Item = &'a Expr>)

Source from the content-addressed store, hash-verified

647/// They are returned in order of occurrence (depth
648/// first), with duplicates omitted.
649pub fn find_aggregate_exprs<'a>(exprs: impl IntoIterator<Item = &'a Expr>) -> Vec<Expr> {
650 find_exprs_in_exprs(exprs, &|nested_expr| {
651 matches!(nested_expr, Expr::AggregateFunction { .. })
652 })
653}
654
655/// Collect all deeply nested `Expr::WindowFunction`. They are returned in order of occurrence
656/// (depth first), with duplicates omitted.

Callers 3

select_to_planMethod · 0.85
plan_selectionMethod · 0.85

Calls 1

find_exprs_in_exprsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…