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

Kevin Liew updated PHOENIX-2483:
--------------------------------
    Fix Version/s:     (was: 4.6.0)

> 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)

Reply via email to