spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mick Jermsurawong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-28224) Sum aggregation returns null on overflow decimals
Date Mon, 01 Jul 2019 23:54:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-28224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16876565#comment-16876565
] 

Mick Jermsurawong commented on SPARK-28224:
-------------------------------------------

To reproduce this: [https://github.com/apache/spark/commit/131679c1a6e08be96245a56830fea2416bedf285]

> Sum aggregation returns null on overflow decimals
> -------------------------------------------------
>
>                 Key: SPARK-28224
>                 URL: https://issues.apache.org/jira/browse/SPARK-28224
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Mick Jermsurawong
>            Priority: Major
>
> Given the option to throw exception on overflow on, sum aggregation of overflowing bigdecimal
still remain null. {{DecimalAggregates}} is only invoked when expression of the sum (not the
elements to be operated) has sufficiently small precision. The fix seems to be in Sum expression
itself. 
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message