[ 
https://issues.apache.org/jira/browse/SPARK-20311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16003626#comment-16003626
 ] 

Yin Huai commented on SPARK-20311:
----------------------------------

It introduced a regression 
(https://github.com/apache/spark/pull/17666#issuecomment-300309896). I have 
reverted the change.

> SQL "range(N) as alias" or "range(N) alias" doesn't work
> --------------------------------------------------------
>
>                 Key: SPARK-20311
>                 URL: https://issues.apache.org/jira/browse/SPARK-20311
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Juliusz Sompolski
>            Assignee: Takeshi Yamamuro
>            Priority: Minor
>
> `select * from range(10) as A;` or `select * from range(10) A;`
> does not work.
> As a workaround, a subquery has to be used:
> `select * from (select * from range(10)) as A;`



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to