[
https://issues.apache.org/jira/browse/SPARK-47977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gengliang Wang resolved SPARK-47977.
------------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 46210
[https://github.com/apache/spark/pull/46210]
> DateTimeUtils.timestampDiff and DateTimeUtils.timestampAdd should not throw
> INTERNAL_ERROR exception
> ----------------------------------------------------------------------------------------------------
>
> Key: SPARK-47977
> URL: https://issues.apache.org/jira/browse/SPARK-47977
> Project: Spark
> Issue Type: Bug
> Components: PySpark, SQL
> Affects Versions: 4.0.0
> Reporter: Vitalii Li
> Assignee: Vitalii Li
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> https://github.com/apache/spark/pull/44263 converted `IllegalStateException`
> to `InternalError` when a unit for DateTimeUtils.timestampDiff and
> DateTimeUtils.timestampAdd is not from a sanctioned list.
> Originally incorrect unit should have been caught in parser before an
> expression is constructed. However, PySpark introduced PythonSQLUtils that
> creates expressions without validation. Since then the `INTERNAL_ERROR` is
> incorrect error class and should be converted to execution error with correct
> error class instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]