diff options
author | Herman van Hovell <hvanhovell@databricks.com> | 2016-10-04 23:48:26 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-10-04 23:48:26 -0700 |
commit | 89516c1c4a167249b0c82f60a62edb45ede3bd2c (patch) | |
tree | 38fd2f4683fe15f4d311204c8a5060cf847ebe13 /LICENSE | |
parent | c9fe10d4ed8df5ac4bd0f1eb8c9cd19244e27736 (diff) | |
download | spark-89516c1c4a167249b0c82f60a62edb45ede3bd2c.tar.gz spark-89516c1c4a167249b0c82f60a62edb45ede3bd2c.tar.bz2 spark-89516c1c4a167249b0c82f60a62edb45ede3bd2c.zip |
[SPARK-17258][SQL] Parse scientific decimal literals as decimals
## 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 implications in tests are limited to a single Hive compatibility test.
## How was this patch tested?
Updated tests in `ExpressionParserSuite` and `SQLQueryTestSuite`.
Author: Herman van Hovell <hvanhovell@databricks.com>
Closes #14828 from hvanhovell/SPARK-17258.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions