GitHub user viirya opened a pull request: https://github.com/apache/spark/pull/21291
[SPARK-24242][SQL] RangeExec should have correct outputOrdering ## What changes were proposed in this pull request? Logical `Range` node has been added with `outputOrdering` recently. It's used to eliminate redundant `Sort` during optimization. However, this `outputOrdering` doesn't not propagate to physical `RangeExec` node. ## How was this patch tested? Added test. You can merge this pull request into a Git repository by running: $ git pull https://github.com/viirya/spark-1 SPARK-24242 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21291.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 #21291 ---- commit 30b42d542b76c7e2e3b755515efbb530bb06509a Author: Liang-Chi Hsieh <viirya@...> Date: 2018-05-10T10:30:48Z RangeExec should have correct outputOrdering. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org