[
https://issues.apache.org/jira/browse/SPARK-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217732#comment-14217732
]
Apache Spark commented on SPARK-4487:
-------------------------------------
User 'sarutak' has created a pull request for this issue:
https://github.com/apache/spark/pull/3363
> Fix attribute reference resolution error when using ORDER BY.
> -------------------------------------------------------------
>
> Key: SPARK-4487
> URL: https://issues.apache.org/jira/browse/SPARK-4487
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 1.2.0
> Reporter: Kousuke Saruta
> Priority: Critical
>
> 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.
> {code}
> SELECT c1 + c2 FROM mytable ORDER BY c1;
> {code}
> The query above fails because when resolving the attribute reference 'c1',
> the resolution result of 'c2' is discarded.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]