Skip to content

Commit 2a7bdae

Browse files
committed
Fix sql queries
1 parent 50e8b67 commit 2a7bdae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sql/2025/sustainability/cdn_adoption.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SELECT
66
total,
77
IF(cdn = '', 'No CDN', cdn) AS cdn,
88
COUNT(0) AS freq,
9-
COUNT(0) / total AS pct
9+
ROUND(100 * COUNT(0) / total, 2) AS pct
1010
FROM (
1111
SELECT
1212
client,

sql/2025/sustainability/content-visibility.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ content_visibility_pages AS (
4545
COUNT(DISTINCT root_page) AS pages_with_content_visibility
4646
FROM
4747
`httparchive.crawl.parsed_css`,
48-
UNNEST(HASCONTENTVISIBILITY(css))
48+
UNNEST(HASCONTENTVISIBILITY(TO_JSON_STRING(css)))
4949
WHERE
5050
date = '2025-06-01' AND
5151
is_root_page

0 commit comments

Comments
 (0)