You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2014/11/19 11:44:34 UTC
[jira] [Commented] (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: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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org