GitHub user mgaido91 opened a pull request:

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

    [SPARK-22665][SQL] Avoid repartitioning with empty list of expressions

    ## What changes were proposed in this pull request?
    
    Repartitioning by empty set of expressions is currently possible, even 
though it is a case which is not handled properly. Indeed, in `HashExpression` 
there is a check to avoid to run it on an empty set, but this check is not 
performed while repartitioning.
    Thus, the PR adds a check to avoid this wrong situation.
    
    ## How was this patch tested?
    
    added UT

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

    $ git pull https://github.com/mgaido91/spark SPARK-22665

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

    https://github.com/apache/spark/pull/19870.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 #19870
    
----
commit fdf10b36cbc746e57cb0b8c2f79646db9dd06964
Author: Marco Gaido <marcogaid...@gmail.com>
Date:   2017-12-03T19:40:01Z

    [SPARK-22665][SQL] Avoid repartitioning with empty list of expressions

----


---

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

Reply via email to