(
windows: &'a [&'a Window],
column_name: &'a str,
)
| 290 | } |
| 291 | |
| 292 | fn find_window_expr<'a>( |
| 293 | windows: &'a [&'a Window], |
| 294 | column_name: &'a str, |
| 295 | ) -> Option<&'a Expr> { |
| 296 | windows |
| 297 | .iter() |
| 298 | .flat_map(|w| w.window_expr.iter()) |
| 299 | .find(|expr| expr.schema_name().to_string() == column_name) |
| 300 | } |
| 301 | |
| 302 | /// Transforms all Column expressions in a sort expression into the actual expression from aggregation or projection if found. |
| 303 | /// This is required because if an ORDER BY expression is present in an Aggregate or Select, it is replaced |
no test coverage detected
searching dependent graphs…