Gengliang Wang created SPARK-39889:
--------------------------------------

             Summary: Use a new error class for "Interval divided by 0" instead 
of using "DIVIDE_BY_ZERO"
                 Key: SPARK-39889
                 URL: https://issues.apache.org/jira/browse/SPARK-39889
             Project: Spark
          Issue Type: Task
          Components: SQL
    Affects Versions: 3.4.0
            Reporter: Gengliang Wang
            Assignee: Gengliang Wang


Currently, when numbers are divided by 0 under ANSI mode, the error message is 
like
{quote}[DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor 
being 0 and return NULL instead. If necessary set "ansi_mode" to "false" 
(except for ANSI interval type) to bypass this error.{quote}
The "(except for ANSI interval type)" part is confusing.  We should remove it 
and have a new error class "INTERVAL_DIVIDED_BY_ZERO"



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

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

Reply via email to