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 23:20:52 UTC

[jira] [Resolved] (SPARK-19415) Improve the implicit type conversion between numeric type and string to avoid precesion loss

     [ https://issues.apache.org/jira/browse/SPARK-19415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davies Liu resolved SPARK-19415.
--------------------------------
       Resolution: Duplicate
    Fix Version/s: 2.2.0

> 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
>             Fix For: 2.2.0
>
>
> 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