Last active
January 17, 2020 05:23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* count of issues opened, closed, and reopened on 2019/01/01 */ | |
SELECT event as issue_status, COUNT(*) as cnt FROM ( | |
SELECT type, repo.name, actor.login, | |
JSON_EXTRACT(payload, '$.action') as event, | |
FROM `githubarchive.day.20190101` | |
WHERE type = 'IssuesEvent' | |
) | |
GROUP by issue_status; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It might be useful to fully-specify the table name, e.g.,
[githubarchive:day.events_]