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/02 22:56:10 UTC

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

Kevin Liew created PHOENIX-2483:
-----------------------------------

             Summary: 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
            Reporter: Kevin Liew
             Fix For: 4.6.0


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)