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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to