A year in Discourse - Recap of 2015

Had a little play with BigQuery, first time I have so you might want to check for errors:

This is just for the github.com/discourse/discourse project.

SELECT
count(*) as count,
type as type,
STRFTIME_UTC_USEC(TIMESTAMP_TO_USEC(created_at), "%Y-%m-%d") as date
FROM (
  TABLE_DATE_RANGE([githubarchive:day.events_], 
    TIMESTAMP('2015-01-01'), 
    TIMESTAMP('2015-12-31')
  )) 
WHERE repo.name = "discourse/discourse"
AND NOT type contains "Comment"
GROUP BY date, type
ORDER BY date, type

I can provide a Google Sheet or CSV perhaps if needed.
Google Sheet here

4 лайка