You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Lefty Leverenz (JIRA)" <ji...@apache.org> on 2014/03/05 06:07:45 UTC

[jira] [Commented] (HIVE-6519) Allow optional "as" in subquery definition

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

Lefty Leverenz commented on HIVE-6519:
--------------------------------------

Documented in the wiki here:

* [SubQueries:  Subqueries in the FROM Clause |https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries#LanguageManualSubQueries-SubqueriesintheFROMClause]

by adding a second line of syntax:

{code}
SELECT ... FROM (subquery) name ...
SELECT ... FROM (subquery) AS name ...   (Note: Only valid starting with Hive 0.13.0)
{code}

and this text:

bq. The optional keyword "AS" can be included before the subquery name in Hive 0.13.0 and later versions (HIVE-6519).

> Allow optional "as" in subquery definition
> ------------------------------------------
>
>                 Key: HIVE-6519
>                 URL: https://issues.apache.org/jira/browse/HIVE-6519
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Gunther Hagleitner
>            Assignee: Gunther Hagleitner
>            Priority: Minor
>             Fix For: 0.13.0
>
>         Attachments: HIVE-6519.1.patch
>
>
> Allow both:
> select * from (select * from foo) bar 
> select * from (select * from foo) as bar 



--
This message was sent by Atlassian JIRA
(v6.2#6252)