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 19:52:12 UTC

[jira] [Created] (HIVE-9009) order by

Pengcheng Xiong created HIVE-9009:
-------------------------------------

             Summary: order by
                 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)