Milan Dankovic created SPARK-54061:
--------------------------------------

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


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]

Reply via email to