Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Won't Do
-
3.0.0
-
None
-
None
Description
Make SparkSQL's cast to char behavior be consistent with PostgreSQL when
spark.sql.dialect is configured as PostgreSQL.
spark-sql> select cast ('10.2222222222222222222222333333333333333' as char(5)); 10.2222222222222222222222333333333333333 Time taken: 0.062 seconds, Fetched 1 row(s) spark-sql>
postgresql
select cast ('10.2222222222222222222222333333333333333' as char(5));
bpchar | |
---|---|
1 | 10.22 |
Attachments
Issue Links
- relates to
-
SPARK-31147 forbid CHAR type in non-Hive-Serde tables
- Resolved