You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Juan José Ramos Cassella (Jira)" <ji...@apache.org> on 2019/08/30 11:19:00 UTC
[jira] [Updated] (GEODE-7150) Use LONG instead of INT in
Aggregation Functions
[ https://issues.apache.org/jira/browse/GEODE-7150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Juan José Ramos Cassella updated GEODE-7150:
--------------------------------------------
Component/s: querying
> Use LONG instead of INT in Aggregation Functions
> ------------------------------------------------
>
> Key: GEODE-7150
> URL: https://issues.apache.org/jira/browse/GEODE-7150
> Project: Geode
> Issue Type: Bug
> Components: querying
> Reporter: Juan José Ramos Cassella
> Priority: Major
>
> OQL aggregate functions ({{COUNT}} and {{AVG}}) can “silently” overflow as Geode internally uses {{int}} to compute the aggregations, basically meaning that we can return an overflowed value instead of the proper result.
> As an example, if {{COUNT}} evaluates to {{2147483648 (Integer.MAX_VALUE + 1)}} the user will receive {{-2147483648 (Integer.MIN_VALUE)}} and so on.
> We should modify the internal implementation to use `Long` instead of `Int`, and properly document the limitation (see GEODE-7146).
--
This message was sent by Atlassian Jira
(v8.3.2#803003)