diff --git a/sql/2021/third-parties/third_parties_blocking_main_thread.sql b/sql/2021/third-parties/third_parties_blocking_main_thread.sql index b8cde89bf43..36206665433 100644 --- a/sql/2021/third-parties/third_parties_blocking_main_thread.sql +++ b/sql/2021/third-parties/third_parties_blocking_main_thread.sql @@ -22,7 +22,7 @@ FROM ( JSON_VALUE(third_party_items, "$.entity.url") AS domain, page, JSON_VALUE(third_party_items, "$.entity.text") AS category, - COUNTIF(SAFE_CAST(JSON_VALUE(third_party_items, "$.blockingTime") AS FLOAT64) > 250) AS blocking, + COUNTIF(SAFE_CAST(JSON_VALUE(report, "$.audits.third-party-summary.details.summary.wastedMs") AS FLOAT64) > 250) AS blocking, SUM(SAFE_CAST(JSON_VALUE(third_party_items, "$.blockingTime") AS FLOAT64)) AS blocking_time, SUM(SAFE_CAST(JSON_VALUE(third_party_items, "$.transferSize") AS FLOAT64) / 1024) AS transfer_size_kib FROM diff --git a/sql/2021/third-parties/third_parties_blocking_main_thread_percentiles.sql b/sql/2021/third-parties/third_parties_blocking_main_thread_percentiles.sql index 1de228cf958..e5ff9551c16 100644 --- a/sql/2021/third-parties/third_parties_blocking_main_thread_percentiles.sql +++ b/sql/2021/third-parties/third_parties_blocking_main_thread_percentiles.sql @@ -20,7 +20,7 @@ FROM ( JSON_VALUE(third_party_items, "$.entity.url") AS domain, page, JSON_VALUE(third_party_items, "$.entity.text") AS category, - COUNTIF(SAFE_CAST(JSON_VALUE(third_party_items, "$.blockingTime") AS FLOAT64) > 250) AS blocking, + COUNTIF(SAFE_CAST(JSON_VALUE(report, "$.audits.third-party-summary.details.summary.wastedMs") AS FLOAT64) > 250) AS blocking, SUM(SAFE_CAST(JSON_VALUE(third_party_items, "$.blockingTime") AS FLOAT64)) AS blocking_time, SUM(SAFE_CAST(JSON_VALUE(third_party_items, "$.transferSize") AS FLOAT64) / 1024) AS transfer_size_kib FROM