Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upCannot select aggregate and non-aggregate fields #772
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jasonl commentedMar 1, 2017
•
edited
With a table
I cannot do:
mrr_by_date .group_by(date) .select((sum(mrr), date)) .filter(account_id.eq(123))Because I get the following error:
(I have edited the code and error messages slightly to remove what I believe is non-relevant information, am happy to share the full error messages privately).
Am I reading this correctly as there isn't support for combining aggregate and non-aggregate fields in a select statement, despite the SQL intended to be produced being valid:
Or am I doing something wrong here?