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

ASF GitHub Bot reassigned SPARK-45816:
--------------------------------------

    Assignee: Apache Spark

> Return null when overflowing during casting from timestamp to integers
> ----------------------------------------------------------------------
>
>                 Key: SPARK-45816
>                 URL: https://issues.apache.org/jira/browse/SPARK-45816
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.3.3, 3.4.1, 3.5.0
>            Reporter: L. C. Hsieh
>            Assignee: Apache Spark
>            Priority: Major
>              Labels: pull-request-available
>
> Spark cast works in two modes: ansi and non-ansi. When overflowing during 
> casting, the common behavior under non-ansi mode is to return null. However, 
> casting from Timestamp to Int/Short/Byte returns a wrapping value now. The 
> behavior to silently overflow doesn't make sense.



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