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 2016/04/30 01:39:12 UTC
[jira] [Commented] (SPARK-15020) GROUP-BY should support Aliases
[ https://issues.apache.org/jira/browse/SPARK-15020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15264950#comment-15264950 ]
Apache Spark commented on SPARK-15020:
--------------------------------------
User 'dongjoon-hyun' has created a pull request for this issue:
https://github.com/apache/spark/pull/12794
> GROUP-BY should support Aliases
> -------------------------------
>
> Key: SPARK-15020
> URL: https://issues.apache.org/jira/browse/SPARK-15020
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Reporter: Dongjoon Hyun
>
> `GROUP-BY` clauses raise **AnalysisException** for aliases while `ORDER-BY` clauses support them correctly. This issue aims to support aliases in `GROUP-BY` clause.
> {code}
> scala> sql("select 1 a group by a").head
> org.apache.spark.sql.AnalysisException: cannot resolve '`a`' given input columns: []; line 1 pos 20
> scala> sql("select 1 a order by a").head
> res1: org.apache.spark.sql.Row = [1]
> {code}
--
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