Skip to content

Commit

Permalink
Merge branch 'dependabot/pip/src/sqlfluff-3.0.6' of github.com:HTTPAr…
Browse files Browse the repository at this point in the history
…chive/almanac.httparchive.org into dependabot/pip/src/sqlfluff-3.0.6
  • Loading branch information
tunetheweb committed May 20, 2024
2 parents 041bc3d + ce5dea3 commit 9ea7798
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions sql/2022/privacy/most_common_purposes_for_iab_tcf_v2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
# https://stackoverflow.com/a/65054751/7391782
# Warning: fails if there are colons in the keys/values, but these are not expected

CREATE TEMPORARY FUNCTION ExtractKeyValuePairs(input STRING) RETURNS ARRAY<STRUCT<
CREATE TEMPORARY FUNCTION ExtractKeyValuePairs(input STRING) RETURNS ARRAY < STRUCT <
key STRING,
value STRING
>> AS (
> > AS (
(
SELECT
ARRAY(
Expand Down Expand Up @@ -43,8 +43,8 @@ WITH pages_iab_tcf_v2 AS (
SELECT
client,
field,
result.key AS key,
result.value AS value,
result.key,
result.value,
COUNT(0) AS number_of_websites_with_purpose
FROM
(
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/privacy/nb_sites_with_cname_tracking.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WITH websites_using_cname_tracking AS (

totals AS (
SELECT
_TABLE_SUFFIX AS _TABLE_SUFFIX,
_TABLE_SUFFIX,
count(0) AS total_pages
FROM
`httparchive.summary_pages.2022_06_01_*`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WITH websites_using_cname_tracking AS (

totals AS (
SELECT
_TABLE_SUFFIX AS _TABLE_SUFFIX,
_TABLE_SUFFIX,
count(0) AS total_pages
FROM
`httparchive.summary_pages.2022_06_01_*`
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/privacy/nb_sites_with_cname_tracking_per_rank.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ WITH websites_using_cname_tracking AS (

totals AS (
SELECT
_TABLE_SUFFIX AS _TABLE_SUFFIX,
_TABLE_SUFFIX,
rank_grouping,
count(0) AS total_pages
FROM
Expand Down
2 changes: 1 addition & 1 deletion sql/2022/privacy/number_of_websites_using_each_cmp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WITH totals AS (
SELECT
_TABLE_SUFFIX AS client,
app,
total_websites AS total_websites,
total_websites,
COUNT(DISTINCT url) AS number_of_websites,
COUNT(DISTINCT url) / total_websites AS percent_of_websites
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WITH totals AS (
SELECT
_TABLE_SUFFIX AS client,
app,
total_websites AS total_websites,
total_websites,
COUNT(DISTINCT url) AS number_of_websites,
COUNT(DISTINCT url) / total_websites AS percent_of_websites
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WITH totals AS (
SELECT
_TABLE_SUFFIX AS client,
app,
total_websites AS total_websites,
total_websites,
COUNT(DISTINCT url) AS number_of_websites,
COUNT(DISTINCT url) / total_websites AS percent_of_websites
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ WITH totals AS (
SELECT
_TABLE_SUFFIX AS client,
app,
total_websites AS total_websites,
total_websites,
COUNT(DISTINCT url) AS number_of_websites,
COUNT(DISTINCT url) / total_websites AS percent_of_websites
FROM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
feature,
num_urls,
total_urls,
pct_urls AS pct_urls
pct_urls
FROM
`httparchive.blink_features.usage`
WHERE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SELECT DISTINCT
feature,
num_urls,
total_urls,
pct_urls AS pct_urls
pct_urls
FROM
`httparchive.blink_features.usage`
WHERE
Expand Down

0 comments on commit 9ea7798

Please sign in to comment.