[BUG] [Spark 4] Exceptions from casting to DATE
/TIMESTAMP
do not match the Spark's exceptions, with ANSI enabled
#11556
Labels
DATE
/TIMESTAMP
do not match the Spark's exceptions, with ANSI enabled
#11556
Description
With ANSI enabled, when an invalid
STRING
row is cast toDATE
, the exception string from Spark does not match that from Spark.Edit: Looks like this isn't exclusive to Spark 4. Reproducible on Spark 3.5, and likely others.
Repro
With Apache Spark 4, the exception looks as follows:
The plugin fails thus:
Expected behavior
The exceptions for the same Spark version with/without the plugin should match.
This needs to be sorted out whenever ANSI mode behaviours are tackled.
The text was updated successfully, but these errors were encountered: