Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.3.0
Description
This patch implements GROUP BY ALL, similar to the one initially implemented in DuckDB. When specified, the analyzer automatically infers the grouping columns based on the expressions specified in the select clause: all expressions that don't include any aggregate expressions are pulled implicitly into the grouping columns. This avoids users having to specify individually the list of grouping columns in most cases.
Examples:
select key, count, sum(score) from table group by all -- rewritten to select key, count, sum(score) from table group by key
Attachments
Issue Links
- is related to
-
SPARK-45806 GROUP BY ALL don't work in ansi mode
- Open
-
SPARK-41637 ORDER BY ALL
- Resolved
- links to
(3 links to)