Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Although there are very few legitimate reasons to have both "select distinct" and "group by" in the same query, it is still used from time to time and other systems support it.
Illustrating the issue:
hive> create table test (c1 integer);
OK
Time taken: 0.073 seconds
hive> select distinct c1 from test group by c1;
FAILED: SemanticException 1:38 SELECT DISTINCT and GROUP BY can not be in the same query. Error encountered near token 'c1'
Attachments
Issue Links
- duplicates
-
HIVE-16924 Support distinct in presence of Group By
- Closed