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 00:06:46 UTC
[jira] [Created] (PHOENIX-2536) Return of SUM function does not
have the correct data type
Kevin Liew created PHOENIX-2536:
-----------------------------------
Summary: Return of SUM function does not have the correct data type
Key: PHOENIX-2536
URL: https://issues.apache.org/jira/browse/PHOENIX-2536
Project: Phoenix
Issue Type: Bug
Affects Versions: 4.6.0
Reporter: Kevin Liew
ANSI SQL specifies that
{quote}If SUM is specified and DT is exact numeric with scale
S, then the data type of the result is exact numeric with
implementation-defined precision and scale S.
...
If DT is approximate numeric, then the data type of the
result is approximate numeric with implementation-defined
precision not less than the precision of DT.{quote}
However, when summing integer types (first operand) with float or double (second operand), Phoenix returns the value with the same data type as the first operand.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)