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

Function push_projection_dedupl

datafusion/sql/src/utils.rs:627–635  ·  view source on GitHub ↗
(projection: &mut Vec<Expr>, expr: Expr)

Source from the content-addressed store, hash-verified

625}
626
627fn push_projection_dedupl(projection: &mut Vec<Expr>, expr: Expr) {
628 let schema_name = expr.schema_name().to_string();
629 if !projection
630 .iter()
631 .any(|e| e.schema_name().to_string() == schema_name)
632 {
633 projection.push(expr);
634 }
635}
636/// The context is we want to rewrite unnest() into InnerProjection->Unnest->OuterProjection
637/// Given an expression which contains unnest expr as one of its children,
638/// Try transform depends on unnest type

Callers 3

transformMethod · 0.85
f_upMethod · 0.85

Calls 5

to_stringMethod · 0.45
schema_nameMethod · 0.45
anyMethod · 0.45
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…