jOOL icon indicating copy to clipboard operation
jOOL copied to clipboard

Add a way to specify general grouping sets and special ones like rollup and cube

Open lukaseder opened this issue 9 years ago • 2 comments

It would be nice to implement accumulators / collectors that implement SQL's GROUPING SET semantics by duplicating data into possible grouping set permutations.

Possibly, this is only feasible via #105

lukaseder avatar Aug 27 '15 11:08 lukaseder

Hey @lukaseder, can you provide an example/specification on this one?

tkroman avatar Sep 14 '15 08:09 tkroman

Interested in contributing? :)

GROUPING SETS are a very SQL OLAP operator. The following SQL Server documentation page explains nicely, how they work: https://technet.microsoft.com/en-us/library/bb522495(v=sql.105).aspx

In other words, they're combining GROUP BY and UNION ALL operations in a concise way, which is useful specifically with aggregations.

It may well be that this isn't really possible in a sensible way in functional programming....

lukaseder avatar Sep 14 '15 15:09 lukaseder