You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Kevin Liew (JIRA)" <ji...@apache.org> on 2015/12/18 22:28:46 UTC

[jira] [Resolved] (PHOENIX-2483) Aggregate functions on floating point values have a fixed scale of 4

     [ https://issues.apache.org/jira/browse/PHOENIX-2483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Liew resolved PHOENIX-2483.
---------------------------------
    Resolution: Duplicate

> Aggregate functions on floating point values have a fixed scale of 4
> --------------------------------------------------------------------
>
>                 Key: PHOENIX-2483
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-2483
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.6.0
>            Reporter: Kevin Liew
>              Labels: aggregate, double, float, metadata, phoenix
>
> Doing a sum with the first column being a FLOAT or DOUBLE will return a DECIMAL with a fixed scale of 4. 
> Doing any multiplication or division will also result in a DECIMAL with scale 4.
> I propose that the return value should either:
> -always be DECIMAL with appropriate scale
> or
> -match the metadata of the first column



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