flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From huawei-flink <...@git.apache.org>
Subject [GitHub] flink pull request #3771: [FLINK-6250] Distinct procTime with Rows boundarie...
Date Wed, 26 Apr 2017 14:46:17 GMT
Github user huawei-flink commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3771#discussion_r113472166
  
    --- Diff: flink-libraries/flink-table/src/main/scala/org/apache/flink/table/runtime/aggregate/ProcTimeBoundedRowsOver.scala
---
    @@ -72,7 +73,15 @@ class ProcTimeBoundedRowsOver(
           genAggregations.code)
         LOG.debug("Instantiating AggregateHelper.")
         function = clazz.newInstance()
    -
    +    
    +    var initialized = false
    +    for(i <- distinctAggFlags.indices){
    +      if(distinctAggFlags(i) && !initialized){
    +        function.initialize(getRuntimeContext())
    --- End diff --
    
    right!


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message