You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2022/04/13 10:12:00 UTC
[jira] [Resolved] (SPARK-38832) Remove unnecessary distinct in aggregate expression by distinctKeys
[ https://issues.apache.org/jira/browse/SPARK-38832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-38832.
---------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 36117
[https://github.com/apache/spark/pull/36117]
> Remove unnecessary distinct in aggregate expression by distinctKeys
> -------------------------------------------------------------------
>
> Key: SPARK-38832
> URL: https://issues.apache.org/jira/browse/SPARK-38832
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: XiDuo You
> Priority: Major
> Fix For: 3.4.0
>
>
> We can remove the distinct in aggregate expression if the child distinct semantics is guaranteed.
> For example:
> {code:java}
> SELECT count(distinct c) FROM (
> SELECT c FROM t GROUP BY c
> ){code}
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org