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

Function check_conflicting_windows

datafusion/sql/src/select.rs:1251–1263  ·  view source on GitHub ↗

If there are any multiple-defined windows, we raise an error.

(window_defs: &[NamedWindowDefinition])

Source from the content-addressed store, hash-verified

1249
1250// If there are any multiple-defined windows, we raise an error.
1251fn check_conflicting_windows(window_defs: &[NamedWindowDefinition]) -> Result<()> {
1252 for (i, window_def_i) in window_defs.iter().enumerate() {
1253 for window_def_j in window_defs.iter().skip(i + 1) {
1254 if window_def_i.0 == window_def_j.0 {
1255 return plan_err!(
1256 "The window {} is defined multiple times!",
1257 window_def_i.0
1258 );
1259 }
1260 }
1261 }
1262 Ok(())
1263}
1264
1265/// Returns true if the expression recursively contains an `Expr::Unnest` expression
1266fn has_unnest_expr_recursively(expr: &Expr) -> bool {

Callers 1

select_to_planMethod · 0.85

Calls 2

iterMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…