You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Mauro Cazzari (Created) (JIRA)" <ji...@apache.org> on 2012/03/20 19:29:38 UTC
[jira] [Created] (HIVE-2886) distinct with order by fails with Java
SQL exception.
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
[jira] [Commented] (HIVE-2886) distinct with order by fails with
Java SQL exception.
Posted by "ransom.hezhiqiang (Commented) (JIRA)" <ji...@apache.org>.
[ 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