Skip to content

Commit

Permalink
prevent stackoverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkovsky committed Mar 6, 2025
1 parent fad31ec commit 2d826b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datafusion/sql/src/select.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,9 @@ fn match_window_definitions(
projection: &mut [SelectItem],
named_windows: &[NamedWindowDefinition],
) -> Result<()> {
if named_windows.is_empty() {
return Ok(());
}
for proj in projection.iter_mut() {
if let SelectItem::ExprWithAlias { expr, alias: _ }
| SelectItem::UnnamedExpr(expr) = proj
Expand Down

0 comments on commit 2d826b9

Please sign in to comment.