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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃 COUNT(*) doesn't work on aggregates without GROUP BY #669

Closed
gva-jjoyce opened this issue Nov 17, 2022 · 0 comments
Closed

馃 COUNT(*) doesn't work on aggregates without GROUP BY #669

gva-jjoyce opened this issue Nov 17, 2022 · 0 comments
Assignees
Labels
Bug 馃 Something isn't working

Comments

@gva-jjoyce
Copy link
Contributor

gva-jjoyce commented Nov 17, 2022

SQL statement
Please submit the SQL statement, or a representative example using the sample datasets.

SELECT COUNT(*), COUNT_DISTINCT(id)
  FROM $planets

Column '*' not found

but this query does work:

SELECT COUNT(*), COUNT_DISTINCT(id)
  FROM $planets
 GROUP BY TRUE
@gva-jjoyce gva-jjoyce added the Bug 馃 Something isn't working label Nov 17, 2022
@joocer joocer closed this as completed Nov 20, 2022
joocer added a commit that referenced this issue Nov 20, 2022
joocer added a commit that referenced this issue Nov 20, 2022
#669 `COUNT(*)` cannot be mixed with other aggregates.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 馃 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants