GitHub user 10110346 opened a pull request:

    https://github.com/apache/spark/pull/18156

    [SPARK-20933][SQL]when the input parameter is float type,the ’round ’ 
or  ‘bround’ function can't work well

    ## What changes were proposed in this pull request?
    spark-sql>select round(cast(3.1415 as float), 3);
    spark-sql>3.141
    For this case, the result we expected is 3.142
    
    spark-sql>select bround(cast(3.1415 as float), 3);
    spark-sql>3.141
    For this case, the result we expected is 3.142
    ## How was this patch tested?
    add unit test


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/10110346/spark wip-lx-0526

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/18156.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 #18156
    
----
commit ea2a8ce9fa8f8f70847c08d732a0397e4ca473e2
Author: liuxian <[email protected]>
Date:   2017-05-31T06:19:39Z

    when the input parameter is float type,the ’round ’ and  ‘bround’
    function can't work well

----


---
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]

Reply via email to