[
https://issues.apache.org/jira/browse/SPARK-54061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated SPARK-54061:
-----------------------------------
Labels: pull-request-available (was: )
> Wrap IllegalArgumentException with proper error code for invalid datetime
> patterns
> ----------------------------------------------------------------------------------
>
> Key: SPARK-54061
> URL: https://issues.apache.org/jira/browse/SPARK-54061
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 4.0.0
> Reporter: Milan Dankovic
> Priority: Major
> Labels: pull-request-available
>
> When `TO_TIMESTAMP` is called with an invalid datetime pattern (e.g.,
> `'yyyyMMddHHMIss'` with invalid letter `'I'`), the `IllegalArgumentException`
> from Java's `DateTimeFormatterBuilder` escapes during constant folding
> optimization, resulting in a raw exception without proper error codes or
> `SQLSTATE`.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]