You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by Kyle Buzsaki <kb...@gmail.com> on 2014/08/25 19:24:15 UTC
Typo in the DECIMAL type documentation?
The documentation for the DECIMAL type on the phoenix docs here:
http://phoenix.apache.org/language/datatypes.html#decimal_type
says that the maximum number of digits is 18. This does not match the
PDataType.MAX_PRECISION constant of 38. Furthermore, I have tested this by
sending by sending a high precision BigDecimal on a round trip through
DECIMAL.toBytes() and then DECIMAL.toObject(), and from what I can tell it
supports a precision of up to 38 digits. My suspicion then is that the
documentation is wrong and the 18 should be 38. Can someone confirm?
--Kyle Buzsaki
Re: Typo in the DECIMAL type documentation?
Posted by James Taylor <ja...@apache.org>.
Yes, that's a doc bug. Should say 38. Thanks,
James
On Mon, Aug 25, 2014 at 10:24 AM, Kyle Buzsaki <kb...@gmail.com> wrote:
> The documentation for the DECIMAL type on the phoenix docs here:
>
> http://phoenix.apache.org/language/datatypes.html#decimal_type
>
> says that the maximum number of digits is 18. This does not match the
> PDataType.MAX_PRECISION constant of 38. Furthermore, I have tested this by
> sending by sending a high precision BigDecimal on a round trip through
> DECIMAL.toBytes() and then DECIMAL.toObject(), and from what I can tell it
> supports a precision of up to 38 digits. My suspicion then is that the
> documentation is wrong and the 18 should be 38. Can someone confirm?
>
> --Kyle Buzsaki