GitHub user hvanhovell opened a pull request:
https://github.com/apache/spark/pull/14828
[SPARK-17258][SQL] Parse scientific decimal literals as decimals [WIP]
## What changes were proposed in this pull request?
Currently Spark SQL parses regular decimal literals (e.g. `10.00`) as
decimals and scientific decimal literals (e.g. `10.0e10`) as doubles. The
difference between the two confuses most users. This PR unifies the parsing
behavior and also parses scientific decimal literals as decimals.
This PR changes behavior and we need to see what the implication are and we
need to discuss if we should do this; hence the WIP.
## How was this patch tested?
Updated tests in `ExpressionParserSuite` and `SQLQueryTestSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/hvanhovell/spark SPARK-17258
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14828.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 #14828
----
commit 4914bfc96af5f1ba0909ca3826d21ab35cf0a725
Author: Herman van Hovell <[email protected]>
Date: 2016-08-26T11:03:44Z
Parse scientific decimal literals as decimals
----
---
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]