Description
Currently, Spark SQL will convert both numeric type and string into DoubleType, if the two children of a expression does not match (for example, comparing a LongType again StringType), this will cause precision loss in some cases.
Some database does better job one this (for example, SQL Server [1]), we should follow that.
Attachments
Issue Links
- is duplicated by
-
SPARK-17913 Filter/join expressions can return incorrect results when comparing strings to longs
- Resolved