You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2025/05/06 12:09:00 UTC

[jira] [Resolved] (SPARK-52007) Expression IDs shouldn't be present in grouping expressions when using grouping sets

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

Wenchen Fan resolved SPARK-52007.
---------------------------------
    Fix Version/s: 4.1.0
       Resolution: Fixed

Issue resolved by pull request 50791
[https://github.com/apache/spark/pull/50791]

> Expression IDs shouldn't be present in grouping expressions when using grouping sets
> ------------------------------------------------------------------------------------
>
>                 Key: SPARK-52007
>                 URL: https://issues.apache.org/jira/browse/SPARK-52007
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.1.0
>            Reporter: Mihailo Aleksic
>            Assignee: Mihailo Aleksic
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.0
>
>
> In current version following query works:
> {code:java}
> select * from values(1,2) group by grouping sets (col1,col2,col1+col2) order by `(col1#x + col2#y)`
> {code}
> where #x and #y are expression IDs generated for related attributes. This isn't right as it leads to nondeterministic behavior (queries that pass would fail next time). In this issue I propose that we fix that.



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