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

[jira] [Closed] (SPARK-53155) Global lower agggregation should not be removed

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

Dongjoon Hyun closed SPARK-53155.
---------------------------------

> Global lower agggregation should not be removed
> -----------------------------------------------
>
>                 Key: SPARK-53155
>                 URL: https://issues.apache.org/jira/browse/SPARK-53155
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.2.4, 3.3.4, 3.4.4, 3.5.6, 4.0.0
>            Reporter: L. C. Hsieh
>            Assignee: L. C. Hsieh
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0, 4.0.1, 3.5.7
>
>
> The optimizer rule RemoveRedundantAggregates removes redundant lower aggregation from a query plan and replace it with a project of referred non-aggregate expressions. However, if the removed aggregation is a global one, that is not correct because a project is different with a global aggregation in semantics.



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