flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zentol <...@git.apache.org>
Subject [GitHub] incubator-flink pull request: Implement the convenience methods co...
Date Mon, 17 Nov 2014 19:43:34 GMT
Github user zentol commented on the pull request:

    https://github.com/apache/incubator-flink/pull/210#issuecomment-63363046
  
    Does this work when using `count()` or `collect()` multiple times in the same plan? 
    
    you use `this.getExecutionEnvironment().getIdString()` to identify the accumulators, and
as far as i see this value is the same for all operators in a plan. As such, multiple usages
of `count()` will return the sum count of all datasets, and collect() will throw an exception
since the same key is used when calling `getRuntimeContext().addAccumulator(id, accumulator)`


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