GitHub user 10110346 opened a pull request:
https://github.com/apache/spark/pull/18103
[SPARK-20876][SQL]if the input parameter is float type for ceil ,the result
is not we expected
## What changes were proposed in this pull request?
spark-sql>SELECT ceil(cast(12345.1233 as float));
spark-sql>12345
For this case, the result we expected is `12346`
## How was this patch tested?
After the modification:
spark-sql>SELECT ceil(cast(12345.1233 as float));
spark-sql>12346
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/10110346/spark wip-lx-0525-1
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18103.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 #18103
----
commit 9d8287dc20b1cde32a4270da8faca9f694fe1134
Author: liuxian <[email protected]>
Date: 2017-05-25T02:13:14Z
if the input parameter is float type for ceil or floor,the result is
not we expected
----
---
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]