You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Fabian Hueske (JIRA)" <ji...@apache.org> on 2016/03/11 09:32:29 UTC

[jira] [Commented] (FLINK-3586) Risk of data overflow while use sum/count to calculate AVG value

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

Fabian Hueske commented on FLINK-3586:
--------------------------------------

FLINK-3596 has been resolved. So intermediate types are no longer exposed to Calcite and this issue can now be addressed.

> Risk of data overflow while use sum/count to calculate AVG value
> ----------------------------------------------------------------
>
>                 Key: FLINK-3586
>                 URL: https://issues.apache.org/jira/browse/FLINK-3586
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Table API
>            Reporter: Chengxiang Li
>            Priority: Minor
>
> Now, we use {{(sum: Long, count: Long}} to store AVG partial aggregate data, which may have data overflow risk, we should use unbounded data type(such as BigInteger) to store them for necessary data types.



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