hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From " (Commented) (JIRA)" <>
Subject [jira] [Commented] (HIVE-2099) GROUP BY rules not applied correctly for select *
Date Wed, 23 Nov 2011 14:07:43 GMT

] commented on HIVE-2099:

This is an automatically generated e-mail. To reply, visit:

Review request for hive and John Sichi.


Select * case provided group by validation like select columns list is subset or equal to
the group by columns list. If it violates this validation will throw exception.

This addresses bug HIVE-2099.


  trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/ 1203044 
  trunk/ql/src/test/queries/clientnegative/groupby_select_all.q PRE-CREATION 
  trunk/ql/src/test/queries/clientnegative/groupby_select_all_alias.q PRE-CREATION 
  trunk/ql/src/test/queries/clientnegative/groupby_select_all_join.q PRE-CREATION 
  trunk/ql/src/test/queries/clientnegative/groupby_select_all_subquery.q PRE-CREATION 
  trunk/ql/src/test/queries/clientnegative/groupby_select_all_subquery_unionall.q PRE-CREATION

  trunk/ql/src/test/queries/clientpositive/groupby_select_all.q PRE-CREATION 
  trunk/ql/src/test/results/clientnegative/groupby_select_all.q.out PRE-CREATION 
  trunk/ql/src/test/results/clientnegative/groupby_select_all_alias.q.out PRE-CREATION 
  trunk/ql/src/test/results/clientnegative/groupby_select_all_join.q.out PRE-CREATION 
  trunk/ql/src/test/results/clientnegative/groupby_select_all_subquery.q.out PRE-CREATION

  trunk/ql/src/test/results/clientnegative/groupby_select_all_subquery_unionall.q.out PRE-CREATION

  trunk/ql/src/test/results/clientpositive/groupby_select_all.q.out PRE-CREATION 



All unit tests passed and added new testcases



> GROUP BY rules not applied correctly for select *
> -------------------------------------------------
>                 Key: HIVE-2099
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.6.0
>            Reporter: John Sichi
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2099.1.patch, HIVE-2099.patch
> This fails as expected:
> select foo, bar from pokes group by foo;
> This succeeds, which is incorrect:
> select * from pokes group by foo;
> I verified this as far back as 0.6, so maybe it has always been this way.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message