Description
When spark.sql.ansi.enabled is set,
If we run select cast('str' as decimal), spark-sql outputs NULL.
The ANSI SQL standard requires to throw exception when invalid strings are cast to numbers.
Attachments
Issue Links
- is duplicated by
-
SPARK-30472 [SQL] ANSI SQL: Throw exception on format invalid and overflow when casting String to IntegerType.
- Resolved
- links to