hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-11709) It is not necessary to include order by field in select clause
Date Tue, 01 Sep 2015 09:56:46 GMT
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)

Mime
View raw message