Gallery
GitHub's event mix, and the day it stopped being comparable
Event types in 58 sampled GH Archive hours from 2015 to 2026, read with read_json over a URL list and probed with VARIANT across a payload change.
A slow drift toward pushes for ten years, then abrupt swings after October 2025
Before the payload change · quarterly, 2015-01 to 2025-09
After · monthly, 2025-10 to 2026-10
From 2015 to September 2025 the mix drifted slowly toward pushes: they were 49.3% of events in the first sampled hour and 64.8% in the last one before the change, about 15 points in ten years, while stars (WatchEvent) fell from 8.9% to 2.4% and issue comments from 10.6% to 4.5%. After the change the mix moved faster than in any earlier year: pushes went from 66.5% in October 2025 to 97.2% in August 2026. The payload itself changed between the 2025-09-15 and 2025-10-15 samples: push payloads lost size and commits, and the share of pull-request events with action closed fell from 47.9% to 4.7%. Nothing in this sample says whether the later swings come from what developers did or from what the feed records, so the points after the change are not comparable with those before it. From September 2026 the files hold a small fraction of the usual events. The 2026-09-15 hour has 81,142 events, about half the median of the four samples before it, with pull requests at 23.9%. The 2026-10-15 hour has 3,582 events, 2.2% of that median, and no push or create events at all. Those two hours measure feed coverage, not the mix, so they are left out of the lines, as are two earlier short hours (2020-07-15 and 2021-10-15).
The payload break, read from the JSON itself
| 2025-07-15 | 164,140 | 100% | 100% | 49.3% | 48 |
| 2025-08-15 | 160,405 | 100% | 100% | 49.2% | 48 |
| 2025-09-15 | 175,991 | 100% | 100% | 47.9% | 48 |
| 2025-10-15 | 143,453 | 0% | 0% | 4.7% | 5 |
| 2025-11-15 | 149,917 | 0% | 0% | 5.5% | 5 |
| 2025-12-15 | 152,440 | 0% | 0% | 3.6% | 5 |
| 2026-01-15 | 146,635 | 0% | 0% | 3.6% | 5 |
Hours left out of the lines: far fewer events than the samples before them
| 2020-07-15 | 55,998 | 51.1% | 8,766 |
| 2021-10-15 | 38,286 | 25.0% | 20,783 |
| 2026-09-15 | 81,142 | 50.3% | 24,180 |
| 2026-10-15 | 3,582 | 2.2% | 0 |
One read_json over 58 URLs, payload probed as VARIANTgallery/g04-github-event-mix/pipeline.sqlShow SQL
SET VARIABLE urls = (SELECT list(url ORDER BY url) FROM samples);
CREATE TABLE hour_counts AS
WITH ev AS (
SELECT filename, type,
CASE WHEN type IN ('PushEvent', 'PullRequestEvent') THEN payload::VARIANT END AS pv
FROM read_json(getvariable('urls'), columns = {'type': 'VARCHAR', 'payload': 'JSON'},
filename = true, format = 'newline_delimited', compression = 'gzip'))
SELECT filename AS url, type, count(*) AS events,
count(*) FILTER (WHERE type = 'PushEvent' AND variant_exists(pv, 'size')) AS push_with_size,
count(*) FILTER (WHERE type = 'PushEvent' AND variant_exists(pv, 'commits')) AS push_with_commits,
count(*) FILTER (WHERE type = 'PullRequestEvent'
AND variant_extract_string(pv, 'action') = 'closed') AS pr_closed,
avg(len(variant_keys(variant_extract(pv, 'pull_request'))))
FILTER (WHERE type = 'PullRequestEvent') AS pr_object_keys
FROM ev GROUP BY ALL;7,139,368 events in 58 files · 3.03 GB fetched · 97 sRuns at build time in DuckDB 2.0; shown for reading.Open file
The sample is 15:00 UTC on the 15th of each quarter through July 2025, then the 15th of every month, so the change is bracketed month by month. Casting the payload to VARIANT lets one query ask which keys an event carries in any year, without declaring a schema per era. The pipeline fails unless every push before 2025-10-07 has size and none after does. The hours are streamed and aggregated in one pass; nothing but the two JSON outputs is written. The 2025-10-07 date is from the GH Archive field audit in this repository's PR #2; the sample only places the change within that month.
duckdb -bail :memory: -c ".read gallery/g04-github-event-mix/pipeline.sql"Full pipeline: gallery/g04-github-event-mix/pipeline.sql.