Github user fhueske commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3585#discussion_r107668380
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/datastream/DataStreamOverAggregate.scala
 ---
    @@ -99,28 +100,64 @@ class DataStreamOverAggregate(
           .getFieldList
           .get(overWindow.orderKeys.getFieldCollations.get(0).getFieldIndex)
           .getValue
    -
         timeType match {
           case _: ProcTimeType =>
    -        // both ROWS and RANGE clause with UNBOUNDED PRECEDING and CURRENT 
ROW condition.
    -        if (overWindow.lowerBound.isUnbounded &&
    -          overWindow.upperBound.isCurrentRow) {
    +        // proc-time OVER window
    +        if (overWindow.lowerBound.isUnbounded && 
overWindow.upperBound.isCurrentRow) {
    +          // non-bounded OVER window
               createUnboundedAndCurrentRowProcessingTimeOverWindow(inputDS)
    +        } else if (
    +          overWindow.lowerBound.isPreceding && 
!overWindow.lowerBound.isUnbounded &&
    +              overWindow.upperBound.isCurrentRow) {
    +          // bounded OVER window
    +          if (overWindow.isRows) {
    +            // ROWS clause bounded OVER window
    +            createRowsClauseBoundedAndCurrentRowOverWindow(inputDS)
    --- End diff --
    
    I think this should be removed as the PR addresses event time.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to