snuyanzin commented on code in PR #26840:
URL: https://github.com/apache/flink/pull/26840#discussion_r2239866707
##########
flink-table/flink-table-planner/src/main/scala/org/apache/flink/table/planner/plan/utils/RelExplainUtil.scala:
##########
@@ -592,11 +594,25 @@ object RelExplainUtil {
window.getRowType.getFieldCount - window.groups.flatMap(_.aggCalls).size
}
+ def calcBoundOffset(bound: RexWindowBound, window: Window): AnyRef = {
+ val ref = bound.getOffset.asInstanceOf[RexInputRef]
+ val boundIndex = ref.getIndex - calcOriginInputRows(window)
+ if (window.constants.isEmpty || boundIndex >= window.constants.size) {
+ throw new ValidationException("Expressions for window boundary are not
allowed")
Review Comment:
no, looks like `ReduceExpressionsRule`
https://issues.apache.org/jira/browse/CALCITE-5861
--
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]