Jeff Zhang created HIVE-11709:
---------------------------------

             Summary: It is not necessary to include order by field in select 
clause
                 Key: HIVE-11709
                 URL: https://issues.apache.org/jira/browse/HIVE-11709
             Project: Hive
          Issue Type: Bug
    Affects Versions: 1.2.1
            Reporter: Jeff Zhang


The following sql is invalid in hive 
{noformat}
select city from cities order by id;
{noformat}

Instead, I have to include id in the select clause. 
{noformat}
select id, city from cities order by id;
{noformat}
This doesn't make sense. At least for mysql, the above sql is valid.





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

Reply via email to