Mihailo Aleksic created SPARK-52007: ---------------------------------------
Summary: 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 In current version following query works: select * from values(1,2) group by grouping sets (col1,col2,col1+col2) order by `(col1#x + col2#y)` 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org