Skip to content

Commit be27589

Browse files
authored
fix(queries): ensure we include the AS name (#68)
I figured that, if we are showing the available ASNs in an area it's definitely nicer to also show their name. Test the queries by rerunning the pipeline and generating new data that is now available at https://github.com/m-lab/iqb/releases/tag/v0.1.0 as assets attached to the release.
1 parent b47cf41 commit be27589

File tree

3 files changed

+28
-16
lines changed

3 files changed

+28
-16
lines changed

data/ghcache.json

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,36 @@
11
{
22
"files": {
33
"cache/v1/20241001T000000Z/20241101T000000Z/downloads_by_country_city_asn/data.parquet": {
4-
"sha256": "92162c968ff13bf975816f0e01f05d36c448ab78c7933daf5a4dda4117ed6fae",
5-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/92162c968ff1__cache__v1__20241001T000000Z__20241101T000000Z__downloads_by_country_city_asn__data.parquet"
4+
"sha256": "299b0ec13c673f5d31a7e5cb5b8a9fbda660ce605fcdff39abe73169c7c17b41",
5+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/299b0ec13c67__cache__v1__20241001T000000Z__20241101T000000Z__downloads_by_country_city_asn__data.parquet"
66
},
77
"cache/v1/20241001T000000Z/20241101T000000Z/downloads_by_country_city_asn/stats.json": {
8-
"sha256": "51053e78cee26caed62d4146513592ff619de2df812e68ce3960a91c50a023e4",
9-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/51053e78cee2__cache__v1__20241001T000000Z__20241101T000000Z__downloads_by_country_city_asn__stats.json"
8+
"sha256": "f895676e67e516d91e27f30d3b91e2d13d946e6f1c3b410dced4d1e18888eb3e",
9+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/f895676e67e5__cache__v1__20241001T000000Z__20241101T000000Z__downloads_by_country_city_asn__stats.json"
1010
},
1111
"cache/v1/20241001T000000Z/20241101T000000Z/uploads_by_country_city_asn/data.parquet": {
12-
"sha256": "f86833aee1439116e8fc5194dcf76c0cbc6cc9f202b664826577392b2bbfa581",
13-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/f86833aee143__cache__v1__20241001T000000Z__20241101T000000Z__uploads_by_country_city_asn__data.parquet"
12+
"sha256": "5ddb0f9d167d8e9b6de6ba7ce7e64eb5bd5a70f92a526ca3069979dbcf687948",
13+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/5ddb0f9d167d__cache__v1__20241001T000000Z__20241101T000000Z__uploads_by_country_city_asn__data.parquet"
1414
},
1515
"cache/v1/20241001T000000Z/20241101T000000Z/uploads_by_country_city_asn/stats.json": {
16-
"sha256": "5bf42dc256d2602a9228c018146c2ad0aa38ec69e9553e89afd854487eee57dd",
17-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/5bf42dc256d2__cache__v1__20241001T000000Z__20241101T000000Z__uploads_by_country_city_asn__stats.json"
16+
"sha256": "6c0db9078c72dba89a8905636d891626b28db87c83d89e2db0c9b61c5d0f8484",
17+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/6c0db9078c72__cache__v1__20241001T000000Z__20241101T000000Z__uploads_by_country_city_asn__stats.json"
1818
},
1919
"cache/v1/20251001T000000Z/20251101T000000Z/downloads_by_country_city_asn/data.parquet": {
20-
"sha256": "31f70c002e82044662c8afa3b90dd6d970cb46edede5196d54864e104c87fccb",
21-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/31f70c002e82__cache__v1__20251001T000000Z__20251101T000000Z__downloads_by_country_city_asn__data.parquet"
20+
"sha256": "ae4b63315688d5e181434c4075f2155f7040d0ec4e2e5764d523f4995b2cab17",
21+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/ae4b63315688__cache__v1__20251001T000000Z__20251101T000000Z__downloads_by_country_city_asn__data.parquet"
2222
},
2323
"cache/v1/20251001T000000Z/20251101T000000Z/downloads_by_country_city_asn/stats.json": {
24-
"sha256": "8498d95733361e6e19dd10c613129917abadf7dae933c7b8684da203f8258802",
25-
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/8498d9573336__cache__v1__20251001T000000Z__20251101T000000Z__downloads_by_country_city_asn__stats.json"
24+
"sha256": "ad04cf493eb1a5b56f71ca75435bc1277be76015a9120bc2382562edf8813cc9",
25+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/ad04cf493eb1__cache__v1__20251001T000000Z__20251101T000000Z__downloads_by_country_city_asn__stats.json"
26+
},
27+
"cache/v1/20251001T000000Z/20251101T000000Z/uploads_by_country_city_asn/data.parquet": {
28+
"sha256": "36a8b75d123dede83c78b96b305ac1ab54a3c52d59533cb085c0e2c97c6e754b",
29+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/36a8b75d123d__cache__v1__20251001T000000Z__20251101T000000Z__uploads_by_country_city_asn__data.parquet"
30+
},
31+
"cache/v1/20251001T000000Z/20251101T000000Z/uploads_by_country_city_asn/stats.json": {
32+
"sha256": "8ba2a3d857929c4bbc476f9f4b64cf4bb6519392320d95d50f17764e843a4949",
33+
"url": "https://github.com/m-lab/iqb/releases/download/v0.1.0/8ba2a3d85792__cache__v1__20251001T000000Z__20251101T000000Z__uploads_by_country_city_asn__stats.json"
2634
}
2735
},
2836
"v": 0

library/src/iqb/queries/downloads_by_country_city_asn.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SELECT
22
client.Geo.CountryCode as country_code,
33
client.Geo.city as city,
44
client.Network.ASNumber as asn,
5+
client.Network.ASName as as_name,
56
COUNT(*) as sample_count,
67

78
-- ============================================================================
@@ -74,8 +75,9 @@ WHERE
7475
AND client.Geo.CountryCode IS NOT NULL
7576
AND client.Geo.city IS NOT NULL
7677
AND client.Network.ASNumber IS NOT NULL
78+
AND client.Network.ASName IS NOT NULL
7779
AND a.MeanThroughputMbps IS NOT NULL
7880
AND a.MinRTT IS NOT NULL
7981
AND a.LossRate IS NOT NULL
80-
GROUP BY country_code, city, asn
81-
ORDER BY country_code, city, asn
82+
GROUP BY country_code, city, asn, as_name
83+
ORDER BY country_code, city, asn, as_name

library/src/iqb/queries/uploads_by_country_city_asn.sql

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SELECT
22
client.Geo.CountryCode as country_code,
33
client.Geo.city as city,
44
client.Network.ASNumber as asn,
5+
client.Network.ASName as as_name,
56
COUNT(*) as sample_count,
67

78
-- ============================================================================
@@ -34,6 +35,7 @@ WHERE
3435
AND client.Geo.CountryCode IS NOT NULL
3536
AND client.Geo.city IS NOT NULL
3637
AND client.Network.ASNumber IS NOT NULL
38+
AND client.Network.ASName IS NOT NULL
3739
AND a.MeanThroughputMbps IS NOT NULL
38-
GROUP BY country_code, city, asn
39-
ORDER BY country_code, city, asn
40+
GROUP BY country_code, city, asn, as_name
41+
ORDER BY country_code, city, asn, as_name

0 commit comments

Comments
 (0)