Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lintsql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
lint:
name: Lint SQL
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ base AS (
canonicalDomain
)


SELECT
canonicalDomain,
total_pages,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ normalized_permissions_policy AS ( -- normalize
merged_permissions_policy
)


SELECT
client,
rank_grouping,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ extracted_origin_trials_from_headers_and_meta_tags AS (
tag_name = 'origin-trial'
)


SELECT
client,
COALESCE(origin_trials_from_custom_metric.featureElem, origin_trials_from_headers_and_meta_tags.featureElem) AS featureElem,
Expand Down
1 change: 0 additions & 1 deletion sql/2021/seo/pages-canonical-stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ try {
''';



SELECT
client,
COUNT(0) AS total,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/css/all_functions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ WITH totals AS (
client
)


SELECT
*
FROM (
Expand Down
1 change: 0 additions & 1 deletion sql/2022/css/layer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ WITH layers AS (
type = 'css'
)


SELECT
client,
COUNT(DISTINCT IF(has_layer, page, NULL)) AS pages,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/css/lcp_initiator_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ requests AS (
date = '2022-06-01'
)


SELECT
client,
type AS lcp_initiator_type,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/css/print_page_pseudo_classes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ WITH totals AS (
client
)


SELECT
client,
pseudo_class,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/css/print_stylesheet_adoption.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ WITH print AS (
`httparchive.pages.2022_07_01_*` -- noqa: CV09
)


SELECT
client,
COUNTIF(has_print_stylesheet) AS pages,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/fonts/font_variant_values.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ WITH totals AS (
client
)


SELECT
client,
prop,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/interoperability/layer_per_page.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ WITH detections AS (
page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/markup/data_attribute_total.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ WITH totals AS (
_TABLE_SUFFIX
)


SELECT
_TABLE_SUFFIX AS client,
COUNT(DISTINCT url) AS pages,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/media/lcp_element_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ CREATE TEMP FUNCTION getLoadingClasses(attributes STRING) RETURNS STRING LANGUAG
''';



WITH
lcp_stats AS (
SELECT
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/bfcache_unload.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pages AS (
`httparchive.summary_pages.2022_06_01_*`
)


SELECT
client,
_rank AS rank,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/cls_animations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ WITH lh AS (
`httparchive.lighthouse.2022_06_01_*`
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/cls_unsized_image_height.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ WITH lh AS (
UNNEST(JSON_QUERY_ARRAY(report, '$.audits.unsized-images.details.items')) AS unsized_image
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/cls_unsized_images.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ WITH lh AS (
`httparchive.lighthouse.2022_06_01_*`
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_host.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ WITH lcp AS (
`httparchive.pages.2022_06_01_*`
)


SELECT
client,
CASE
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_host_3p.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ WITH lcp AS (
`httparchive.pages.2022_06_01_*`
)


SELECT
client,
NET.REG_DOMAIN(url) AS lcp_domain,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_initiator_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ requests AS (
date = '2022-06-01'
)


SELECT
client,
type AS lcp_initiator_type,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_lazy_wordpress.sql
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ wp AS (
app = 'WordPress'
)


SELECT
client,
COUNTIF(wordpress) AS wordpress,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_preload_discoverable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ WITH lcp AS (
`httparchive.pages.2022_06_01_*`
)


SELECT
client,
discoverable,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/performance/lcp_resource_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ WITH lcp AS (
`httparchive.pages.2022_06_01_*`
)


SELECT
client,
CASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ extracted_origin_trials_from_headers_and_meta_tags AS (
tag_name = 'origin-trial'
)


SELECT
client,
COALESCE(origin_trials_from_custom_metric.featureElem, origin_trials_from_headers_and_meta_tags.featureElem) AS featureElem,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/privacy/top100_cookies_set_from_header.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ cookies AS (
websites_per_client
)


SELECT
*
FROM (
Expand Down
1 change: 0 additions & 1 deletion sql/2022/seo/pages-canonical-stats.sql
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ try {
''';



SELECT
client,
COUNT(0) AS total,
Expand Down
1 change: 0 additions & 1 deletion sql/2022/seo/robots-meta-usage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ return results;
''';



SELECT
client,
total,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ base AS (
page
)


SELECT
client,
AVG(pct_1p_legacy) AS avg_pct_1p_legacy,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/bfcache_unload.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ WITH lh AS (
is_root_page
)


SELECT
client,
_rank AS rank,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/cls_animations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/cls_unsized_image_height.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/cls_unsized_images.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_host.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
CASE
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_host_3p.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
NET.REG_DOMAIN(url) AS lcp_domain,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_initiator_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ requests AS (
date = '2023-10-01'
)


SELECT
client,
IFNULL(type, 'unknown') AS lcp_initiator_type,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_lazy_technologies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ tech_totals AS (
technology
)


SELECT
client,
technology,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_preload_discoverable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
discoverable,
Expand Down
1 change: 0 additions & 1 deletion sql/2023/performance/lcp_resource_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
CASE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ domain_scores AS (

'|\\.(gov|mil|gouv|gob|gub|go|govt|gv|nic|government)\\.(taipei|[a-z]{2,3})/' -- Other generic government formats (e.g., gouv.fr, gob.mx, go.jp)


'|\\.gc\\.ca/' -- Canada and provinces
'|\\.canada\\.ca/'
'|\\.alberta\\.ca/'
Expand Down
2 changes: 0 additions & 2 deletions sql/2024/ecommerce/core_web_vitals_yoy.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ GROUP BY
client,
app


UNION ALL

-- Year 2023
Expand Down Expand Up @@ -188,6 +187,5 @@ GROUP BY
client,
app


ORDER BY
origins DESC
1 change: 0 additions & 1 deletion sql/2024/media/lcp_element_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ CREATE TEMP FUNCTION getLoadingClasses(attributes STRING) RETURNS STRING LANGUAG
''';



WITH
lcp_stats AS (
SELECT
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/bfcache_unload.sql
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ WITH lh AS (
date = '2024-06-01'
)


SELECT
client,
_rank AS rank,
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/cls_animations.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/cls_unsized_image_height.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/cls_unsized_images.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ WITH lh AS (
is_root_page
)


SELECT
percentile,
client,
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/lcp_host.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
CASE
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/lcp_host_3p.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ WITH lcp AS (
is_root_page
)


SELECT
client,
NET.REG_DOMAIN(url) AS lcp_domain,
Expand Down
1 change: 0 additions & 1 deletion sql/2024/performance/lcp_initiator_type.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ requests AS (
date = '2024-06-01'
)


SELECT
client,
IFNULL(type, 'unknown') AS lcp_initiator_type,
Expand Down
Loading