You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2016/04/30 01:32:12 UTC

[jira] [Created] (SPARK-15020) GROUP-BY should support Aliases

Dongjoon Hyun created SPARK-15020:
-------------------------------------

             Summary: 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