You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2017/10/11 06:05:00 UTC

[jira] [Commented] (SPARK-20747) Distinct in Aggregate Functions

    [ https://issues.apache.org/jira/browse/SPARK-20747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16199840#comment-16199840 ] 

Hyukjin Kwon commented on SPARK-20747:
--------------------------------------

(I was looking through JIRAs) I also tested this. Looks we support this.

> Distinct in Aggregate Functions
> -------------------------------
>
>                 Key: SPARK-20747
>                 URL: https://issues.apache.org/jira/browse/SPARK-20747
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 2.2.0
>            Reporter: Xiao Li
>
> {noformat}
> AVG ([DISTINCT]|[ALL] <numeric expression>)
> MAX ([DISTINCT]|[ALL] <expression>)
> MIN ([DISTINCT]|[ALL] <expression>)
> SUM ([DISTINCT]|[ALL] <numeric_expression>)
> {noformat}
> Except COUNT, the DISTINCT clause is not supported by Spark SQL



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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