dawidwys commented on code in PR #25526: URL: https://github.com/apache/flink/pull/25526#discussion_r1802865897
########## flink-table/flink-table-common/src/main/java/org/apache/flink/table/functions/SqlCallSyntax.java: ########## @@ -316,4 +316,23 @@ private String doUnParse( CallSyntaxUtils.asSerializableOperand(operands.get(2))); } }; + + SqlCallSyntax OVER = + ((sqlName, operands) -> { + String projection = operands.get(0).asSerializableString(); + String order = operands.get(1).asSerializableString(); + String rangeBounds = + CallSyntaxUtils.overRangeToSerializableString( + operands.get(2), operands.get(3)); + if (operands.size() == 4) { + return String.format("%s OVER(ORDER BY %s %s)", projection, order, rangeBounds); + } else { + return String.format( + "%s OVER(PARTITION BY %s ORDER BY %s %s)", + projection, + CallSyntaxUtils.asSerializableOperand(operands.get(4)), + order, + rangeBounds); + } Review Comment: I created https://issues.apache.org/jira/browse/FLINK-33410 -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org