You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2019/06/27 11:06:00 UTC

[jira] [Updated] (SPARK-23179) Support option to throw exception if overflow occurs during Decimal arithmetic

     [ https://issues.apache.org/jira/browse/SPARK-23179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wenchen Fan updated SPARK-23179:
--------------------------------
    Summary: Support option to throw exception if overflow occurs during Decimal arithmetic  (was: Support option to throw exception if overflow occurs)

> Support option to throw exception if overflow occurs during Decimal arithmetic
> ------------------------------------------------------------------------------
>
>                 Key: SPARK-23179
>                 URL: https://issues.apache.org/jira/browse/SPARK-23179
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Marco Gaido
>            Assignee: Marco Gaido
>            Priority: Major
>             Fix For: 3.0.0
>
>
> SQL ANSI 2011 states that in case of overflow during arithmetic operations, an exception should be thrown. This is what most of the SQL DBs do (eg. SQLServer, DB2). Hive currently returns NULL (as Spark does) but HIVE-18291 is open to be SQL compliant.
> I propose to have a config option which allows to decide whether Spark should behave according to SQL standards or in the current way (ie. returning NULL).



--
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