11 lines
364 B
SQL
11 lines
364 B
SQL
-- SELECT
|
|
-- id,
|
|
-- label,
|
|
-- count() AS c
|
|
-- FROM github_events
|
|
-- LATERAL VIEW explode_split(cast(payload:labels as string), ',') t AS label
|
|
-- WHERE (type IN ('IssuesEvent', 'PullRequestEvent', 'IssueCommentEvent')) AND (cast(payload["action"] as string) IN ('created', 'opened', 'labeled'))
|
|
-- GROUP BY label, id
|
|
-- ORDER BY c, id DESC
|
|
-- LIMIT 50
|