Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.0
-
None
-
None
Description
Make SparkSQL's cast to integer behavior be consistent with PostgreSQL when
spark.sql.dialect is configured as PostgreSQL.
Example:currently spark sql
spark-sql> select CAST ('10C' AS INTEGER);
NULL
Time taken: 0.051 seconds, Fetched 1 row(s)
spark-sql>
postgresql
postgresql select CAST ('10C' AS INTEGER); Error(s), warning(s): 22P02: invalid input syntax for integer: "10C"
Attachments
Issue Links
- links to