You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2014/11/24 21:56:12 UTC

[jira] [Resolved] (SPARK-4487) Fix attribute reference resolution error when using ORDER BY.

     [ https://issues.apache.org/jira/browse/SPARK-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Armbrust resolved SPARK-4487.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.2.0

Issue resolved by pull request 3363
[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
>             Fix For: 1.2.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org