[ https://issues.apache.org/jira/browse/HIVE-16924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16361387#comment-16361387 ]
Ashutosh Chauhan commented on HIVE-16924: ----------------------------------------- Following failures are caused because of the patch: TestCliDriver.decimal_3.q TestCliDriver.decimal_5.q TestCliDriver.mapjoin_distinct.q TestCliDriver.mm_all.q TestCliDriver.mm_buckets.q TestCliDriver.mm_conversions.q TestCliDriver.mm_cttas.q TestCliDriver.parquet_join.q TestCliDriver.vector_decimal_3.q TestCliDriver.vector_decimal_5.q TestParseNegativeDriver.wrong_distinct1.q TestNegativeCliDriver.selectDistinctStarNeg_2.q TestNegativeCliDriver.udaf_invalid_place.q TestMiniLlapLocalCliDriver.global_limit.q.q TestMiniLlapLocalCliDriver.mm_all.q TestMiniLlapLocalCliDriver.mm_cttas.q TestMiniLlapLocalCliDriver.unionDistinct_1.q TestMiniLlapLocalCliDriver.acid_vectorization_original.q TestMiniLlapLocalCliDriver.cbo_rp_unionDistinct_2.q TestMiniLlapLocalCliDriver.cross_prod_1.q TestMiniLlapLocalCliDriver.cross_prod_3.q TestMiniLlapLocalCliDriver.cross_prod_4.q TestMiniLlapLocalCliDriver.limit_pushdown3.q TestMiniLlapLocalCliDriver.limit_pushdown.q TestMiniLlapLocalCliDriver.mm_conversions.q TestMiniLlapLocalCliDriver.offset_limit_ppd_optimizer.q TestMiniLlapLocalCliDriver.selectDistinctStar.q TestMiniLlapLocalCliDriver.vector_decimal_3.q TestMiniLlapLocalCliDriver.vector_decimal_5.q > Support distinct in presence Gby > --------------------------------- > > Key: HIVE-16924 > URL: https://issues.apache.org/jira/browse/HIVE-16924 > Project: Hive > Issue Type: New Feature > Components: Query Planning > Reporter: Carter Shanklin > Assignee: Julian Hyde > Priority: Major > Attachments: HIVE-16924.01.patch, HIVE-16924.02.patch, > HIVE-16924.03.patch, HIVE-16924.04.patch > > > {code:sql} > create table e011_01 (c1 int, c2 smallint); > insert into e011_01 values (1, 1), (2, 2); > {code} > These queries should work: > {code:sql} > select distinct c1, count(*) from e011_01 group by c1; > select distinct c1, avg(c2) from e011_01 group by c1; > {code} > Currently, you get : > FAILED: SemanticException 1:52 SELECT DISTINCT and GROUP BY can not be in the > same query. Error encountered near token 'c1' -- This message was sent by Atlassian JIRA (v7.6.3#76005)