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] [Assigned] (SPARK-15020) GROUP-BY should support Aliases

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

Apache Spark reassigned SPARK-15020:
------------------------------------

    Assignee: Apache Spark

> 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
>            Assignee: Apache Spark
>
> `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