GitHub user sarutak opened a pull request:
https://github.com/apache/spark/pull/3363
[SPARK-4487][SQL] Fix attribute reference resolution error when using ORDER
BY.
When we use ORDER BY clause, at first, attributes referenced by projection
are resolved (1).
And then, attributes referenced at ORDER BY clause are resolved (2).
But when resolving attributes referenced at ORDER BY clause, the
resolution result generated in (1) is discarded so for example, following query
fails.
SELECT c1 + c2 FROM mytable ORDER BY c1;
The query above fails because when resolving the attribute reference 'c1',
the resolution result of 'c2' is discarded.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/sarutak/spark SPARK-4487
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/3363.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 #3363
----
commit 317b7fb9f09fbecfd6c9d8cb9a9dea8d4831f6cf
Author: Kousuke Saruta <[email protected]>
Date: 2014-11-15T09:04:51Z
WIP
commit b6123e6dc67398eecbd7c6b6ffdd97fff4779866
Author: Kousuke Saruta <[email protected]>
Date: 2014-11-18T19:05:09Z
Merge branch 'master' of git://git.apache.org/spark into concat-feature
commit 282d5291768719e0e513c3b7c43c034d3f384b23
Author: Kousuke Saruta <[email protected]>
Date: 2014-11-19T10:32:34Z
Fixed attributes reference resolution error
commit cb5b7e988a8a8ee27070e4bb8421db4ca4981b05
Author: Kousuke Saruta <[email protected]>
Date: 2014-11-19T10:43:21Z
Added test case for SPARK-4487
----
---
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]