Skip to content

Add support for CUBE and ROLLUP with composite sets#17007

Merged
martint merged 2 commits intotrinodb:masterfrom
martint:grouping-sets
Apr 17, 2023
Merged

Add support for CUBE and ROLLUP with composite sets#17007
martint merged 2 commits intotrinodb:masterfrom
martint:grouping-sets

Conversation

@martint
Copy link
Member

@martint martint commented Apr 13, 2023

Previously, CUBE and ROLLUP only allowed simple groups composed of single column references. This change makes it possible to specify composite groups such as:

GROUP BY CUBE ((a,b), c, (d, e, f))

Fixes #16981

Release notes

(x) Release notes are required, with the following suggested text:

# Section
* Add support for CUBE and ROLLUP with composite sets ({issue}`16981`)

@cla-bot cla-bot bot added the cla-signed label Apr 13, 2023
martint added 2 commits April 14, 2023 08:27
Previously, CUBE and ROLLUP only allowed simple groups
composed of single column references. This change makes
it possible to specify composite groups such as:

    GROUP BY CUBE ((a,b), c, (d, e, f))
GroupingElement, Cube and Rollup contain the same information
and look very similar. Replace them with a single class and
and enum to indicate the type of grouping sets clause they
represent.
@martint martint requested a review from kasiafi April 14, 2023 22:32
@martint martint merged commit 4ab52e4 into trinodb:master Apr 17, 2023
@martint martint deleted the grouping-sets branch April 17, 2023 15:40
@github-actions github-actions bot added this to the 414 milestone Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Parser mistakes grouping set specification for ROW in ROLLUP and CUBE

2 participants