You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Uroš Bojanić (Jira)" <ji...@apache.org> on 2026/09/01 10:55:00 UTC
[jira] [Resolved] (SPARK-47397) count_distinct ignores null values
[ https://issues.apache.org/jira/browse/SPARK-47397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uroš Bojanić resolved SPARK-47397.
----------------------------------
Fix Version/s: 4.4.0
Resolution: Fixed
Issue resolved by pull request 58038
[https://github.com/apache/spark/pull/58038]
> count_distinct ignores null values
> ----------------------------------
>
> Key: SPARK-47397
> URL: https://issues.apache.org/jira/browse/SPARK-47397
> Project: Spark
> Issue Type: Bug
> Components: Documentation, Spark Core
> Affects Versions: 3.4.1
> Reporter: Martin Rueckl
> Priority: Minor
> Labels: pull-request-available
> Fix For: 4.4.0
>
> Attachments: image-2024-03-14-16-12-35-267.png, image-2024-03-14-16-13-03-107.png, image-2024-04-02-10-32-44-461.png
>
>
> The documentation states, that in group by and count statements, null values will not be ignored / form their own groups.
> !image-2024-03-14-16-13-03-107.png|width=491,height=373!
> However, the behavior of count_distinct does not account for nulls.
> Either the documentation or the implementation is wrong here...
> !image-2024-03-14-16-12-35-267.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org