Skip to content

Allow multiple keys in GroupBy #56

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

Merged
merged 3 commits into from
Dec 30, 2024

Conversation

michalliss
Copy link
Contributor

@michalliss michalliss commented Dec 27, 2024

This pull request extends the GroupBy class so it can use multiple fields as keys.
I've also added two tests to make sure it works fine and that I did not break filtering (HAVING) feature.
Fixes #52

@michalliss
Copy link
Contributor Author

I've moved the tests. I found it hard to find meaningful example for such groupBy on the customer-data. The world-data was much better for this. Regardless, the generated SQL looks good.

@lihaoyi lihaoyi merged commit 4213f04 into com-lihaoyi:main Dec 30, 2024
6 checks passed
@lihaoyi
Copy link
Member

lihaoyi commented Dec 30, 2024

Thanks @michalliss !

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

Successfully merging this pull request may close these issues.

GROUP BY with more then one field is not supported
2 participants