You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Nico Haller (JIRA)" <ji...@apache.org> on 2016/04/04 12:52:25 UTC
[jira] [Created] (CASSANDRA-11485) ArithmeticException in
avgFunctionForDecimal
Nico Haller created CASSANDRA-11485:
---------------------------------------
Summary: ArithmeticException in avgFunctionForDecimal
Key: CASSANDRA-11485
URL: https://issues.apache.org/jira/browse/CASSANDRA-11485
Project: Cassandra
Issue Type: Bug
Components: CQL
Reporter: Nico Haller
Priority: Minor
I am running into issues when using avg in queries on decimal values.
It throws an ArithmeticException in org/apache/cassandra/cql3/functions/AggregateFcts.java (Line 184).
So whenever an exact representation of the quotient is not possible it will throw that error and it never returns to the querying client.
I am not so sure if this is intended behavior or a bug, but in my opinion if an exact representation of the value is not possible, it should automatically round the value.
Specifying a rounding mode when calling the divide function should solve the issue
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)