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

FilterProcessor: Force parentheses around columns in count distinct #108

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nilmerg
Copy link
Member

@nilmerg nilmerg commented May 8, 2023

No description provided.

@nilmerg
Copy link
Member Author

nilmerg commented May 8, 2023

Not refined and not tested with MySQL yet.

@nilmerg nilmerg removed this from the v0.5.2 milestone May 15, 2023
@nilmerg
Copy link
Member Author

nilmerg commented Jul 6, 2023

MySQL uses a non-standard syntax (COUNT(DISTINCT col1, col2, col3)) to achieve a count distinct over multiple columns. However, it does not support COUNT(DISTINCT (col1, col2, col3)) as PostgreSQL does. Since I didn't find an alternative for either version which is supported by MySQL and PostgreSQL at the same time, generating the queries vendor related seems to be the only way.

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

Successfully merging this pull request may close these issues.

None yet

1 participant