You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Harish Butani (JIRA)" <ji...@apache.org> on 2013/11/08 22:33:18 UTC

[jira] [Updated] (HIVE-3107) Improve semantic analyzer to better handle column name references in group by/sort by clauses

     [ https://issues.apache.org/jira/browse/HIVE-3107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harish Butani updated HIVE-3107:
--------------------------------

    Attachment: HIVE-3107.1.patch

> Improve semantic analyzer to better handle column name references in group by/sort by clauses
> ---------------------------------------------------------------------------------------------
>
>                 Key: HIVE-3107
>                 URL: https://issues.apache.org/jira/browse/HIVE-3107
>             Project: Hive
>          Issue Type: Improvement
>          Components: Query Processor
>    Affects Versions: 0.9.0
>            Reporter: Richard Ding
>            Assignee: Xuefu Zhang
>         Attachments: HIVE-3107.1.patch
>
>
> This is related to HIVE-1922.
> Following queries all fail with various SemanticExceptions:
> {code}
> explain select t.c from t group by c;
> explain select t.c from t group by c sort by t.c; 
> explain select t.c as c0 from t group by c0;
> explain select t.c from t group by t.c sort by t.c; 
> {code}
> It is true that one could always find a version of any of above queries that works. But one has to try to find out and it doesn't work well with machine generated SQL queries.



--
This message was sent by Atlassian JIRA
(v6.1#6144)