You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Aljoscha Krettek (JIRA)" <ji...@apache.org> on 2019/03/22 09:57:00 UTC

[jira] [Updated] (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:all-tabpanel ]

Aljoscha Krettek updated FLINK-3586:
------------------------------------
    Component/s:     (was: Table SQL / API)
                 Table SQL / Legacy Planner

> 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 SQL / Legacy Planner
>            Reporter: Chengxiang Li
>            Assignee: Fabian Hueske
>            Priority: Minor
>             Fix For: 1.1.0
>
>
> 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
(v7.6.3#76005)