GitHub user chie8842 opened a pull request:

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

    [Spark 21358][Examples] Argument of repartitionandsortwithinpartitions at 
pyspark

    ## What changes were proposed in this pull request?
    At example of repartitionAndSortWithinPartitions at rdd.py, third argument 
should be True or False.
    I proposed fix of example code.
    
    ## How was this patch tested?
    * I rename test_repartitionAndSortWithinPartitions to 
test_repartitionAndSortWIthinPartitions_asc to specify boolean argument.
    * I added test_repartitionAndSortWithinPartitions_desc to test False 
pattern at third argument.
    
    
    (Please explain how this patch was tested. E.g. unit tests, integration 
tests, manual tests)
    (If this patch involves UI changes, please attach a screenshot; otherwise, 
remove this)
    
    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/chie8842/spark SPARK-21358

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

    https://github.com/apache/spark/pull/18586.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 #18586
    
----
commit 6a70aa7a42c9aa840f9e83aa41a984acd9fe21a5
Author: chie hayashida <[email protected]>
Date:   2017-07-10T09:46:28Z

    fixed ascending argument at repartitionandsortwithinpartitions

commit fac7a700331b34551ccdb80e615798b7f87b6af0
Author: chie hayashida <[email protected]>
Date:   2017-07-10T09:57:38Z

    insert ascending argument at test_repartitionAndSortWithinPartitions_asc 
and added test_repartitionAndSortWithinPartitions_desc

----


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