You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/09/02 07:39:00 UTC

[jira] [Commented] (SPARK-32777) Aggregation support aggregate function with multiple foldable expressions.

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

Apache Spark commented on SPARK-32777:
--------------------------------------

User 'beliefer' has created a pull request for this issue:
https://github.com/apache/spark/pull/29626

> Aggregation support aggregate function with multiple foldable expressions.
> --------------------------------------------------------------------------
>
>                 Key: SPARK-32777
>                 URL: https://issues.apache.org/jira/browse/SPARK-32777
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: jiaan.geng
>            Priority: Major
>
> Spark SQL exists a bug show below:
> {code:java}
> spark.sql(
>   " SELECT COUNT(DISTINCT 2), COUNT(DISTINCT 2, 3)")
>   .show()
> +-----------------+--------------------+
> |count(DISTINCT 2)|count(DISTINCT 2, 3)|
> +-----------------+--------------------+
> |                1|                   1|
> +-----------------+--------------------+
> spark.sql(
>   " SELECT COUNT(DISTINCT 2), COUNT(DISTINCT 3, 2)")
>   .show()
> +-----------------+--------------------+
> |count(DISTINCT 2)|count(DISTINCT 3, 2)|
> +-----------------+--------------------+
> |                1|                   0|
> +-----------------+--------------------+
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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