GitHub user dilipbiswal opened a pull request: https://github.com/apache/spark/pull/9844
[SPARK-11863][SQL][WIP] Unable to resolve order by if it contains mixture of aliases and real columns. Compute the evaluatedOrderings by replacing the Alias names referenced by Sort expression with the attributes in agregate expressions after checking the semantic equality. Example : select c1 as a , c2 as b from tab group by c1, c2 order by a, c2 You can merge this pull request into a Git repository by running: $ git pull https://github.com/dilipbiswal/spark spark-11863 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/9844.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 #9844 ---- commit 954f9194377b759fa8414c3a66fb7ee5c74640b7 Author: Dilip Biswal <dbis...@us.ibm.com> Date: 2015-11-04T05:23:11Z [SPARK-11863] Unable to resolve order by attributes if it contains mixture of aliases and real columns. ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org