Skip to content

Commit

Permalink
join via CTE
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Jan 21, 2025
1 parent db51a7e commit 2b1f6c2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions definitions/output/core_web_vitals/technologies.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ audits AS (
client,
page,
performance_opportunities.id
FROM pages,
UNNEST(extract_audits(lighthouse)) AS performance_opportunities
FROM pages
LEFT JOIN UNNEST(extract_audits(pages.lighthouse)) AS performance_opportunities
WHERE
performance_opportunities.savings_ms > 0 OR
performance_opportunities.savings_bytes > 0
Expand Down Expand Up @@ -234,8 +234,7 @@ summary_stats AS (
SAFE.FLOAT64(lighthouse.categories['best-practices'].score) AS best_practices,
SAFE.FLOAT64(lighthouse.categories.performance.score) AS performance,
SAFE.FLOAT64(lighthouse.categories.pwa.score) AS pwa,
SAFE.FLOAT64(lighthouse.categories.seo.score) AS seo,
extract_audits(lighthouse) AS performance_opportunities
SAFE.FLOAT64(lighthouse.categories.seo.score) AS seo
FROM pages
),
Expand Down

0 comments on commit 2b1f6c2

Please sign in to comment.