You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Vladimir Golubev (Jira)" <ji...@apache.org> on 2026/08/02 15:25:00 UTC

[jira] [Updated] (SPARK-58420) COUNT(DISTINCT ...) does not sort maps in the argument trees

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

Vladimir Golubev updated SPARK-58420:
-------------------------------------
    Issue Type: Bug  (was: Improvement)

> COUNT(DISTINCT ...) does not sort maps in the argument trees
> ------------------------------------------------------------
>
>                 Key: SPARK-58420
>                 URL: https://issues.apache.org/jira/browse/SPARK-58420
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 4.3.0
>            Reporter: Vladimir Golubev
>            Priority: Major
>              Labels: correctness, pull-request-available
>
> Injecting MapSort is necessary for maps to be grouped correctly. We currently do that for GROUP BY, but we missed that for the COUNT(DISTINCT ...)



--
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