You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this is part of the implicit group by generation functionality I don't see this as a bug per se.
Almost all DBs except for PostgreSQL require that all columns from (complex) expressions need to be listed in GROUP BY although the (complex) expression containing these very columns is already listed in the GROUP BY clause. Try if we can workaround that by using select aliases or ordinales. If not, I am not sure how we could retain the same semantics. Any ideas?
The text was updated successfully, but these errors were encountered:
Since this was required to work correctly for the SIZE to COUNT transformation, I implemented it.
Note that DB2, SQL Server and Oracle were problematic because
When parameters occur in an expression, the DBs can't match the expression because of potential different parameter values even if the parameters get the same values assigned
When a subquery occurs in an expression, the DBs fail to group by that per definition. Instead, surrounding expressions and correlated columns have to be put into the group by
When non-deterministic expressions are used like e.g. CURRENT_TIMESTAMP, SQL Server fails to group by that with a cryptic error
Additionally MySQL was problematic in the sense that the HAVING clause strictly required that all columns which are used in it's expressions to appear in the GROUP BY clause. Other databases could match more complex expressions like CASE WHEN and others which already appear in the GROUP BY and thus allow these expressions to be used in the HAVING clause.
Since this is part of the implicit group by generation functionality I don't see this as a bug per se.
Almost all DBs except for PostgreSQL require that all columns from (complex) expressions need to be listed in
GROUP BY
although the (complex) expression containing these very columns is already listed in theGROUP BY
clause. Try if we can workaround that by using select aliases or ordinales. If not, I am not sure how we could retain the same semantics. Any ideas?The text was updated successfully, but these errors were encountered: