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:52:00 UTC
[jira] [Resolved] (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 ]
Max Gekk resolved SPARK-40044.
------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 37470
[https://github.com/apache/spark/pull/37470]
> 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
> Priority: Major
> Fix For: 3.4.0
>
>
> 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