GitHub user annamolchanova opened a pull request:

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

    [SPARK-18818][PYTHON] Add 'ascending' parameter to Window.orderBy()

    ## What changes were proposed in this pull request?
    
    Pass `ascending` parameter to Window's orderBy() function the same like 
DataFrame's orderBy() accepts. 
    This allows to specify descending order without building Column object.
    It makes this function more consistent and convenient.
    
    ## How was this patch tested?
    
    Unit tests were run. Docstring tests were added to Window.orderBy()

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

    $ git pull https://github.com/annamolchanova/spark 
SPARK-18818-window_ascending_parameter

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

    https://github.com/apache/spark/pull/22533.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 #22533
    
----
commit 40f8295b97e887108e96a6b4a39cc6781ebb406d
Author: Anna Molchanova <anna_molchanova@...>
Date:   2018-09-23T19:11:42Z

    Implement ascending parameter in window orderBy

----


---

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

Reply via email to