[fix](nereids)window expression's window frame may lost in NormalizeToSlot (#30378)

This commit is contained in:
starocean999
2024-01-29 16:45:35 +08:00
committed by yiguolei
parent 036e17dcb0
commit e36f390134
2 changed files with 8 additions and 0 deletions

View File

@ -185,6 +185,9 @@ public interface NormalizeToSlot {
}
newChildren.add(newChild);
}
if (windowExpression.getWindowFrame().isPresent()) {
newChildren.add(windowExpression.getWindowFrame().get());
}
return hasNewChildren ? windowExpression.withChildren(newChildren) : windowExpression;
}
}