phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Liew (JIRA)" <j...@apache.org>
Subject [jira] [Created] (PHOENIX-2483) Aggregate functions on floating point values have a fixed scale of 4
Date Wed, 02 Dec 2015 21:56:10 GMT
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)

Mime
View raw message