zhiqiang-hhhh commented on code in PR #47940:
URL: https://github.com/apache/doris/pull/47940#discussion_r1958948770


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/analysis/WindowFunctionChecker.java:
##########
@@ -241,7 +241,7 @@ public Lag visitLag(Lag lag, Void ctx) {
         windowExpression.getWindowFrame().ifPresent(wf -> {
             throw new AnalysisException("WindowFrame for LAG() must be null");
         });
-        if (lag.children().size() != 3) {
+        if (lag.children().size() < 1 || lag.children().size() > 3) {
             throw new AnalysisException("Lag must have three parameters");

Review Comment:
   error message should update



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to