Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CA0E41841E for ; Thu, 4 Jun 2015 18:11:41 +0000 (UTC) Received: (qmail 99125 invoked by uid 500); 4 Jun 2015 18:11:40 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 99104 invoked by uid 500); 4 Jun 2015 18:11:40 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 98970 invoked by uid 99); 4 Jun 2015 18:11:40 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2015 18:11:40 +0000 Date: Thu, 4 Jun 2015 18:11:40 +0000 (UTC) From: "Robert Stupp (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-9550) Support fixed precision data type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14573292#comment-14573292 ] Robert Stupp commented on CASSANDRA-9550: ----------------------------------------- Can't {{BigDecimal}} maths solve that? > 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)