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 /sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out | |
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 'sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out')
-rw-r--r-- | sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out b/sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out index 6abe048af4..ce42c016a7 100644 --- a/sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out +++ b/sql/core/src/test/resources/sql-tests/results/arithmetic.sql.out @@ -29,7 +29,7 @@ struct<-5.2:decimal(2,1)> -- !query 3 select +6.8e0 -- !query 3 schema -struct<6.8:double> +struct<6.8:decimal(2,1)> -- !query 3 output 6.8 |