cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Updated] (CASSANDRA-11485) ArithmeticException in avgFunctionForDecimal
Date Fri, 15 Apr 2016 17:07:25 GMT


Tyler Hobbs updated CASSANDRA-11485:
    Reviewer: Tyler Hobbs

+1, patch and tests look good

> ArithmeticException in avgFunctionForDecimal
> --------------------------------------------
>                 Key: CASSANDRA-11485
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL
>            Reporter: Nico Haller
>            Assignee: Robert Stupp
>            Priority: Minor
>             Fix For: 3.0.x
> I am running into issues when using avg in queries on decimal values.
> It throws an ArithmeticException in org/apache/cassandra/cql3/functions/
(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

View raw message