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/11 05:35:00 UTC

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

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

Apache Spark reassigned SPARK-40044:
------------------------------------

    Assignee: Apache Spark  (was: Max Gekk)

> 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: Apache Spark
>            Priority: Major
>
> 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