You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (JIRA)" <ji...@apache.org> on 2014/11/19 11:07:34 UTC

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

Kousuke Saruta created SPARK-4487:
-------------------------------------

             Summary: 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org