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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17574037#comment-17574037 ] 

Apache Spark commented on SPARK-39917:
--------------------------------------

User 'gengliangwang' has created a pull request for this issue:
https://github.com/apache/spark/pull/37374

> 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