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

[FR] COUNT(DISTINCT col1) ... GROUP BY #88

Closed
Minyus opened this issue Nov 25, 2022 · 3 comments
Closed

[FR] COUNT(DISTINCT col1) ... GROUP BY #88

Minyus opened this issue Nov 25, 2022 · 3 comments

Comments

@Minyus
Copy link

Minyus commented Nov 25, 2022

Thank you for the great tool!

I'd like to request feature which works like COUNT(DISTINCT col1) ... GROUP BY of SQL.
I tried count_agg(distinct col1), but got syntax error.

@dcmoura
Copy link
Owner

dcmoura commented Nov 25, 2022

Hi, thank you :-)

The syntax is a little different in SPyQL. Please try:

SELECT count_distinct_agg(col1) ...

You can check the reference for more aggregation functions: https://spyql.readthedocs.io/en/latest/reference.html#module-spyql.agg

Please let me know if you were able to do what you needed. Thanks!

@Minyus
Copy link
Author

Minyus commented Nov 26, 2022

Ok, I'll try. Thank you!

@Minyus
Copy link
Author

Minyus commented Nov 27, 2022

Worked like a charm! Thank you!

@Minyus Minyus closed this as completed Nov 27, 2022
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

No branches or pull requests

2 participants