Skip to content

Commit

Permalink
Fix request queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Jan 13, 2025
1 parent eae67bc commit 5a86818
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions sql/histograms/evalJs.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ FROM (
CAST(FLOAT64(payload['_cpu.EvaluateScript']) / 20 AS INT64) * 20 AS bin
FROM
`httparchive.crawl.requests`
INNER JOIN
`httparchive.crawl.pages`
USING (date, client, is_root_page, rank, page)
WHERE
date = '${YYYY-MM-DD}' AND
is_root_page
Expand Down
2 changes: 1 addition & 1 deletion sql/timeseries/h2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ FROM
`httparchive.crawl.requests` r
INNER JOIN
`httparchive.crawl.pages`
USING (date, client, is_root_page, rank)
USING (date, client, is_root_page, rank, page)
WHERE
is_root_page AND
date >= '2016-07-15'
Expand Down
2 changes: 1 addition & 1 deletion sql/timeseries/h3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ LEFT OUTER JOIN
ON (resp.name = 'alt-svc')
INNER JOIN
`httparchive.crawl.pages`
USING (date, client, is_root_page, rank)
USING (date, client, is_root_page, rank, page)
WHERE
date >= '2020-01-01' AND
is_root_page
Expand Down
4 changes: 2 additions & 2 deletions sql/timeseries/pctHttps.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ SELECT
FROM
`httparchive.crawl.requests`
INNER JOIN
`httparchive.crawl.pages` p
USING (date, client, is_root_page, rank)
`httparchive.crawl.pages`
USING (date, client, is_root_page, rank, page)
WHERE
is_root_page AND
date >= '2016-01-01'
Expand Down

0 comments on commit 5a86818

Please sign in to comment.