(projection: &mut Vec<Expr>, expr: Expr)
| 625 | } |
| 626 | |
| 627 | fn 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 |
no test coverage detected
searching dependent graphs…