You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2015/07/24 10:04:04 UTC
[jira] [Commented] (SPARK-9281) Parse literals as decimal in SQL
[ https://issues.apache.org/jira/browse/SPARK-9281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640122#comment-14640122 ]
Apache Spark commented on SPARK-9281:
-------------------------------------
User 'davies' has created a pull request for this issue:
https://github.com/apache/spark/pull/7642
> 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
>
> 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