[ 
https://issues.apache.org/jira/browse/HIVE-2886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13249786#comment-13249786
 ] 

ransom.hezhiqiang commented on HIVE-2886:
-----------------------------------------

distinct can only effect on  one table
                
> distinct with order by fails with Java SQL exception.
> -----------------------------------------------------
>
>                 Key: HIVE-2886
>                 URL: https://issues.apache.org/jira/browse/HIVE-2886
>             Project: Hive
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 0.7.1
>            Reporter: Mauro Cazzari
>
> The following select:
> select distinct TXT_1.`a`, TXT_1.`b` from `MYTAB` TXT_1 order by TXT_1.`a` asc
> fails with a Java SQL exception. Note that if the "distinct" or the table 
> alias is removed from the SQL, the statement executes fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to