[jira] [Assigned] (SPARK-38832) Remove unnecessary distinct in aggregate expression by distinctKeys

2022-04-22 Thread Wenchen Fan (Jira)


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

Wenchen Fan reassigned SPARK-38832:
---

Assignee: XiDuo You

> 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
>Assignee: 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.7#820007)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-38832) Remove unnecessary distinct in aggregate expression by distinctKeys

2022-04-08 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-38832:


Assignee: (was: Apache Spark)

> 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
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Assigned] (SPARK-38832) Remove unnecessary distinct in aggregate expression by distinctKeys

2022-04-08 Thread Apache Spark (Jira)


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

Apache Spark reassigned SPARK-38832:


Assignee: Apache Spark

> 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
>Assignee: Apache Spark
>Priority: Major
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org