GitHub user discipleforteen opened a pull request:

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

    [SPARK-19225][SQL]round decimal return normal value but not null

    ## What changes were proposed in this pull request?
    
    in https://issues.apache.org/jira/browse/SPARK-19225,
    change the round decimal function. select round(4.4, 2) can return 4.4 , 
not return null when round scale is larger than decimal scale
    
    ## How was this patch tested?
    
    Jeckins
    
    Please review http://spark.apache.org/contributing.html before opening a 
pull request.


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

    $ git pull https://github.com/discipleforteen/spark master

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

    https://github.com/apache/spark/pull/16637.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 #16637
    
----
commit 800db2d592e85fb3b7ba7c1994314fac0e5de206
Author: discipleforteen <32666...@qq.com>
Date:   2017-01-19T01:24:59Z

    cut round (decimal, scale)

----


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to