[
https://issues.apache.org/jira/browse/SPARK-54061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033616#comment-18033616
]
Milan Dankovic commented on SPARK-54061:
----------------------------------------
I am working ok this
> 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
>
> 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]