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
From PostgreSQL documentation: In case of ambiguity, a GROUP BY name will be interpreted as an input-column name rather than an output column name.
So as the internal query (input) had a column called 'timestamp' the GROUP BY was choosing that instead of the one declared in the 'SELECT'.
Changing the name in the SELECT was an option but the possibility of clashing would always be there, but I GROUP BY N with N being the ordinal of the select column is safe.
Due to name conflicts the 'GROUP BY' clause is incorrect and you might get several bins with the same number. For example:
It's not directly related to https://github.com/CartoDB/support/issues/1071 but appeared while testing it.
The text was updated successfully, but these errors were encountered: