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

Function find_window_exprs

datafusion/expr/src/utils.rs:657–661  ·  view source on GitHub ↗

Collect all deeply nested `Expr::WindowFunction`. 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

655/// Collect all deeply nested `Expr::WindowFunction`. They are returned in order of occurrence
656/// (depth first), with duplicates omitted.
657pub fn find_window_exprs<'a>(exprs: impl IntoIterator<Item = &'a Expr>) -> Vec<Expr> {
658 find_exprs_in_exprs(exprs, &|nested_expr| {
659 matches!(nested_expr, Expr::WindowFunction { .. })
660 })
661}
662
663/// Collect all deeply nested `Expr::OuterReferenceColumn`. They are returned in order of occurrence
664/// (depth first), with duplicates omitted.

Callers 3

select_to_planMethod · 0.85
selectMethod · 0.85
with_columnMethod · 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…