You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Pengcheng Xiong (JIRA)" <ji...@apache.org> on 2014/12/02 20:05:14 UTC
[jira] [Updated] (HIVE-9009) order by meaning for the last subquery
in Hive is different from other main stream DBMS
[ https://issues.apache.org/jira/browse/HIVE-9009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pengcheng Xiong updated HIVE-9009:
----------------------------------
Summary: order by meaning for the last subquery in Hive is different from other main stream DBMS (was: order by)
> order by meaning for the last subquery in Hive is different from other main stream DBMS
> ---------------------------------------------------------------------------------------
>
> Key: HIVE-9009
> URL: https://issues.apache.org/jira/browse/HIVE-9009
> Project: Hive
> Issue Type: Sub-task
> Reporter: Pengcheng Xiong
>
> 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)