[
https://issues.apache.org/jira/browse/CASSANDRA-9550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573695#comment-14573695
]
Robert Stupp commented on CASSANDRA-9550:
-----------------------------------------
AFAIK BigDecimal is used to represent NUMERIC(p,s) in Java.
The only "problem" I can see is that you lose the value of the
{{BigDecimal.precision}} field during serialization. Is that what you're
talking about?
> Support fixed precision data type
> ---------------------------------
>
> Key: CASSANDRA-9550
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9550
> Project: Cassandra
> Issue Type: Improvement
> Reporter: Brian Hess
>
> SQL databases support a fixed precision data type. When converting data
> models from SQL DBs to Cassandra, the choices are not clear. DOUBLE or FLOAT
> are possibilities, but with UDFs and Aggregates this is actually a lot less
> clear, as you really do need fixed precision arithmetic. That is, one flaw
> with floating-point math is that the order of the operations can change the
> final result. That is not an issue with fixed precision arithmetic (though
> other trade-offs are there).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)