You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2017/01/31 22:47:51 UTC
[jira] [Created] (SPARK-19415) Improve the implicit type conversion
between numeric type and string to avoid precesion loss
Davies Liu created SPARK-19415:
----------------------------------
Summary: Improve the implicit type conversion between numeric type and string to avoid precesion loss
Key: SPARK-19415
URL: https://issues.apache.org/jira/browse/SPARK-19415
Project: Spark
Issue Type: Improvement
Components: SQL
Reporter: Davies Liu
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.
[1] https://msdn.microsoft.com/en-us/library/ms191530.aspx
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org