You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/07/24 10:35:04 UTC

[jira] [Updated] (SPARK-9281) Parse literals as decimal in SQL

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

Reynold Xin updated SPARK-9281:
-------------------------------
    Labels: releasenotes  (was: )

> Parse literals as decimal in SQL
> --------------------------------
>
>                 Key: SPARK-9281
>                 URL: https://issues.apache.org/jira/browse/SPARK-9281
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Davies Liu
>            Assignee: Davies Liu
>              Labels: releasenotes
>
> Right now, we use double to parse all the float number in SQL. When it's used in expression together with DecimalType, it will turn the decimal into double as well.
> Also it will loss some precision when using double.
> It's better to parse the float number as decimal (we will know exactly the precision and scale is), it also work well with double.
> BTW, this is a break change. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org