Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lukaseder opened this issue Aug 27, 2015 · 2 comments

Comments

@lukaseder
Copy link
Member

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

@tkroman
Copy link
Contributor

tkroman commented Sep 14, 2015

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

@lukaseder
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants