-
Notifications
You must be signed in to change notification settings - Fork 90
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
General SIZE transformation enhancements #90
Comments
This is related to #92 |
Also note that using count distinct to subquery transformation is only necessary for very few DBs like for example MySQL. |
Please also help me with defining what the transformation should do. So far I came up with the following analogous to what was defined in #188. Instead of creating a subquery for the SIZE function when appearing in the select clause, we can transform it into
as long as there are no group bys present. Multiple SIZE usages require to use COUNT(DISTINCT newAlias) which is not possible for some DBs when the relation uses a composite id. This tranformation should be deactivatable via a property. |
I would like to close #188 and have this issue for the planned SIZE transformation enhancements in general. I came up with the following General
JOIN
WHERE
|
At the moment we generate subqueries as soon as we have more than one SIZE or any other collection in the query. We could replace these subqueries by using COUNT(DISTINCT elem).
The text was updated successfully, but these errors were encountered: