hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pengcheng Xiong (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-9009) order by (limit) meaning for the last subquery of union in Hive is different from other main stream RDBMS
Date Mon, 22 Dec 2014 05:21:13 GMT

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

Pengcheng Xiong updated HIVE-9009:
----------------------------------
    Status: Patch Available  (was: Open)

> order by (limit) meaning for the last subquery of union in Hive is different from other
main stream RDBMS
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-9009
>                 URL: https://issues.apache.org/jira/browse/HIVE-9009
>             Project: Hive
>          Issue Type: Sub-task
>            Reporter: Pengcheng Xiong
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-9002-WIP.patch, HIVE-9009.01.patch
>
>
> Currently Hive will treat
> select id from A 
> union all
> select id from B
> order by id
> as
> select id from A 
> union all
> (select id from B
> order by id)
> However, it should be treated as
> (select id from A 
> union all
> select id from B)
> order by id



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message