GitHub user jiangxb1987 opened a pull request:

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

    [SPARK-23207][SQL][FOLLOW-UP] Don't perform local sort for 
DataFrame.repartition(1)

    ## What changes were proposed in this pull request?
    
    In `ShuffleExchangeExec`, we don't need to insert extra local sort before 
round-robin partitioning, if the new partitioning has only 1 partition, because 
under that case all output rows go to the same partition.
    
    ## How was this patch tested?
    
    The existing test cases.

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

    $ git pull https://github.com/jiangxb1987/spark repartition1

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

    https://github.com/apache/spark/pull/20426.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 #20426
    
----
commit 2c9ee7f8fd22ffdff250da9ae2709dfbcaea7342
Author: Xingbo Jiang <xingbo.jiang@...>
Date:   2018-01-29T18:49:06Z

    improve DataFrame.repartition(1).

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to