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

    https://github.com/apache/flink/pull/3386#discussion_r107982106
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/datastream/DataStreamOverAggregate.scala
 ---
    @@ -112,7 +113,12 @@ class DataStreamOverAggregate(
                   "condition.")
             }
           case _: RowTimeType =>
    -        throw new TableException("OVER Window of the EventTime type is not 
currently supported.")
    +        if (overWindow.lowerBound.isUnbounded && 
overWindow.upperBound.isCurrentRow) {
    +          createUnboundedAndCurrentRowEventTimeOverWindow(inputDS)
    --- End diff --
    
    EVENT-TIME OVER Need to treatment "rows" and "range" clause separately, 
because 
    -  ROWS specifies the window in physical units (rows).
    -  RANGE specifies the window as a logical offset.
    
    They have different semantics, for example:
    DATA:
    ```
    (long, int, String)
    (1L, 1, "H")
    (2L, 2, "H")
    (2L, 3,"H")
    ```
    ROWS sum(b) result: `1,3,6`
    RANGE sum(b) result: `1,6,6`



---
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