[ 
https://issues.apache.org/jira/browse/FLINK-1096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14130045#comment-14130045
 ] 

Fabian Hueske commented on FLINK-1096:
--------------------------------------

I agree. I would also expect the count instead of the sum.
+1 for changing this.

Does it make sense to make the Histogram more generic and support all 
comparable data types?

> Unexpected Histogram accumulator behavior
> -----------------------------------------
>
>                 Key: FLINK-1096
>                 URL: https://issues.apache.org/jira/browse/FLINK-1096
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Sebastian Kruse
>            Assignee: Sebastian Kruse
>            Priority: Trivial
>
> The {{Histogram}} accumulator uses the given value as both key and value for 
> the histogram map. Hence, the histogram always contains entries like {{key -> 
> n * key}} where {{n}} is the number of times that {{key}} has been added to 
> the histogram.
> Supposedly, adding {{key}} into the histogram {{n}} times should create the 
> entr {{key -> n}} instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to