Github user huawei-flink commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3547#discussion_r106616178
  
    --- Diff: 
flink-libraries/flink-table/src/main/scala/org/apache/flink/table/plan/nodes/datastream/DataStreamOverAggregate.scala
 ---
    @@ -106,9 +113,14 @@ class DataStreamOverAggregate(
             if (overWindow.lowerBound.isUnbounded &&
               overWindow.upperBound.isCurrentRow) {
               createUnboundedAndCurrentRowProcessingTimeOverWindow(inputDS)
    +        } // lowerbound is a BasicType and upperbound is PRECEEDING or 
CURRENT ROW
    +        else if 
(overWindow.lowerBound.getOffset.getType.isInstanceOf[BasicSqlType]
    --- End diff --
    
    I guess that is also a way to do it. The check allows to distinguish 
between time bounded and row bounded. I have no particular affection for my 
solution, it just worked. I will apply and test yours as well.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to