GitHub user davies opened a pull request:

    https://github.com/apache/spark/pull/7642

    [SPARK-9281] [SQL] use decimal or double when parsing SQL

    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.
    
    This PR change to parse float number to decimal or double, based on it's  
using scientific notation or not, see 
https://msdn.microsoft.com/en-us/library/ms179899.aspx
    
    This is a break change, should we doc it somewhere?

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/davies/spark parse_decimal

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/7642.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #7642
    
----
commit 1c48e340e042cb1bd7ab8984ef856c3883e0969b
Author: Davies Liu <[email protected]>
Date:   2015-07-24T07:58:50Z

    use decimal or double when parsing SQL

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to