Created
April 20, 2016 17:59
-
-
Save apa512/9c5e4306093e29e6b81915452dafddb3 to your computer and use it in GitHub Desktop.
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
SELECT email | |
FROM ( | |
SELECT | |
JSON_EXTRACT(payload, '$.commits'), | |
REGEXP_EXTRACT( | |
SPLIT( | |
JSON_EXTRACT(payload, '$.commits'), | |
'},{' | |
), | |
r'email":([^,]+),' | |
) | |
AS email | |
FROM [githubarchive:month.201501] | |
WHERE type = 'PushEvent' | |
) | |
GROUP BY | |
LIMIT 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment