You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2022/08/02 00:51:00 UTC

[jira] [Updated] (SPARK-39917) Use different error classes for numeric/interval arithmetic overflow

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

Dongjoon Hyun updated SPARK-39917:
----------------------------------
    Fix Version/s:     (was: 3.4.0)

> Use different error classes for numeric/interval arithmetic overflow
> --------------------------------------------------------------------
>
>                 Key: SPARK-39917
>                 URL: https://issues.apache.org/jira/browse/SPARK-39917
>             Project: Spark
>          Issue Type: Task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Gengliang Wang
>            Priority: Major
>
> Currently, when  arithmetic overflow errors happen under ANSI mode, the error messages are like
> [ARITHMETIC_OVERFLOW] long overflow. Use 'try_multiply' to tolerate overflow and return NULL instead. If necessary set spark.sql.ansi.enabled to "false" 
>  
> The "(except for ANSI interval type)" part is confusing. We should remove it for the numeric arithmetic operations and have a new error class for the interval division error: INTERVAL_ARITHMETIC_OVERFLOW



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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