diff options
author | Herman van Hovell <hvanhovell@questtec.nl> | 2016-01-20 15:13:01 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-01-20 15:13:01 -0800 |
commit | 10173279305a0e8a62bfbfe7a9d5d1fd558dd8e1 (patch) | |
tree | 94fce3f9499b51ef69ad6bf49a132f54cb8afe6b /sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e | |
parent | f3934a8d656f1668bec065751b2a11411229b6f5 (diff) | |
download | spark-10173279305a0e8a62bfbfe7a9d5d1fd558dd8e1.tar.gz spark-10173279305a0e8a62bfbfe7a9d5d1fd558dd8e1.tar.bz2 spark-10173279305a0e8a62bfbfe7a9d5d1fd558dd8e1.zip |
[SPARK-12848][SQL] Change parsed decimal literal datatype from Double to Decimal
The current parser turns a decimal literal, for example ```12.1```, into a Double. The problem with this approach is that we convert an exact literal into a non-exact ```Double```. The PR changes this behavior, a Decimal literal is now converted into an extact ```BigDecimal```.
The behavior for scientific decimals, for example ```12.1e01```, is unchanged. This will be converted into a Double.
This PR replaces the ```BigDecimal``` literal by a ```Double``` literal, because the ```BigDecimal``` is the default now. You can use the double literal by appending a 'D' to the value, for instance: ```3.141527D```
cc davies rxin
Author: Herman van Hovell <hvanhovell@questtec.nl>
Closes #10796 from hvanhovell/SPARK-12848.
Diffstat (limited to 'sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e')
-rw-r--r-- | sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e b/sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e deleted file mode 100644 index cd5ac039d6..0000000000 --- a/sql/hive/src/test/resources/golden/'1' + 1.0-0-5db3b55120a19863d96460d399c2d0e +++ /dev/null @@ -1 +0,0 @@ -2.0 |