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 support for COUNT(DISTINCT a) #700

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

elbertronnie
Copy link
Contributor

PR Info

New Features

  • Add count_distinct in Expr and Func which corresponds to COUNT(DISTINCT a)

Changes

  • Add a new bool parameter to FunctionCall named distinct which will keep track if the DISTINCT modifier needs to be applied for the first argument.

Note:

For now, adding the distinct parameter to FunctionCall may seem like an overkill to support just one use case, but in the future more functions could be added that support the DISTINCT modifier. Technically every aggregate function actually supports it but they are rarely used except for COUNT.

Copy link
Member

@tyt2y3 tyt2y3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution. Sorry for the delay

@tyt2y3 tyt2y3 merged commit c883c4a into SeaQL:master Dec 14, 2023
20 checks passed
Copy link

🎉 Released In 0.30.5 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

@SeaQL SeaQL deleted a comment from github-actions bot Dec 29, 2023
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.

Support COUNT(DISTINCT a.b)
2 participants