-
Notifications
You must be signed in to change notification settings - Fork 124
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
Implement COUNT DISTINCT #869
Implement COUNT DISTINCT #869
Comments
You can work around this limitation using the following query: SELECT COUNT(commit_author_name), repository_id
FROM (
SELECT DISTINCT commit_author_name, repository_id
FROM commits
WHERE repository_id = 'data-intelligence'
) t
GROUP BY repository_id |
We should either:
/cc @smola @ajnavarro |
we can start with the second choice, throw an error. |
Reopened because is not fixed on gitbase. Right now we are going to return an error, but this issue should be kept to remind a future implementation. |
Waiting on src-d/go-mysql-server#785 |
I'm running a query and seems to be having a problem
I'm using source{d} CE and I'm trying to see the unique collaborators for a specific repo.
I'm querying the "commits" table, and my query is:
and I get the number 57.
However, when I run the query:
I get the distinct names of
Marcelo Novaes
Fernanda Gomes
Máximo Cuadros
So, the unique number of collaborators is 3 but I get 57 if I do
COUNT(DISTINCT commit_author_name)
.I don't understand why.
The version of source{d} CE I'm using is v0.14.0-beta.3
The text was updated successfully, but these errors were encountered: