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 2015/07/23 19:19:04 UTC
[jira] [Created] (SPARK-9281) Parse literals as decimal in SQL
Davies Liu created SPARK-9281:
---------------------------------
Summary: 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
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