[
https://issues.apache.org/jira/browse/SPARK-45816?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-45816:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> 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: [email protected]
For additional commands, e-mail: [email protected]