Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.0.0
-
None
-
None
Description
SQL select '0.1' = 0 returns true. The result seems unreasonable.
From the logical plan, the sql is parsed as 'Project (cast(cast(0.1 as decimal(20,0)) as int) = 0) AS #6'. The type conversion converts the string to integer, which leads to the unreasonable result.
Attachments
Issue Links
- duplicates
-
SPARK-21646 Add new type coercion rules to compatible with Hive
- Resolved