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

[jira] [Created] (SPARK-40044) Incorrect target interval type in cast overflow errors

Max Gekk created SPARK-40044:
--------------------------------

             Summary: Incorrect target interval type in cast overflow errors
                 Key: SPARK-40044
                 URL: https://issues.apache.org/jira/browse/SPARK-40044
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 3.4.0
            Reporter: Max Gekk
            Assignee: Max Gekk


The example below shows the issue:

{code:sql}
spark-sql> select CAST(9223372036854775807L AS INTERVAL YEAR TO MONTH);
org.apache.spark.SparkArithmeticException: [CAST_OVERFLOW] The value 9223372036854775807L of the type "BIGINT" cannot be cast to "INTERVAL MONTH" due to an overflow.
{code}

The target type "INTERVAL MONTH" is incorrect.

 



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