@@ -16,16 +16,24 @@ SELECT
1616 COUNT (DISTINCT IF(IS_GOOD(fast_fid, avg_fid, slow_fid), origin, NULL )),
1717 COUNT (DISTINCT IF(IS_NON_ZERO(fast_fid, avg_fid, slow_fid), origin, NULL ))
1818 ) AS pct_good_fid,
19+ # Origins with good INP divided by origins with any INP.
20+ SAFE_DIVIDE(
21+ COUNT (DISTINCT IF(IS_GOOD(fast_inp, avg_inp, slow_inp), origin, NULL )),
22+ COUNT (DISTINCT IF(IS_NON_ZERO(fast_inp, avg_inp, slow_inp), origin, NULL ))
23+ ) AS pct_good_inp,
1924 # Origins with good CLS divided by origins with any CLS.
2025 SAFE_DIVIDE(
2126 COUNT (DISTINCT IF(IS_GOOD(small_cls, medium_cls, large_cls), origin, NULL )),
2227 COUNT (DISTINCT IF(IS_NON_ZERO(small_cls, medium_cls, large_cls), origin, NULL ))
2328 ) AS pct_good_cls,
24- # Origins with good LCP, FID, and CLS dividied by origins with any LCP, FID , and CLS.
29+ # Origins with good LCP, FID/INP , and CLS dividied by origins with any LCP, and CLS.
2530 SAFE_DIVIDE(
2631 COUNT (DISTINCT IF(
2732 IS_GOOD(fast_lcp, avg_lcp, slow_lcp) AND
28- IS_GOOD(fast_fid, avg_fid, slow_fid) IS NOT FALSE AND
33+ (
34+ (date >= ' 2024-03-01' AND IS_GOOD(fast_inp, avg_inp, slow_inp) IS NOT FALSE) OR
35+ (date < ' 2024-03-01' AND IS_GOOD(fast_fid, avg_fid, slow_fid) IS NOT FALSE)
36+ ) AND
2937 IS_GOOD(small_cls, medium_cls, large_cls), origin, NULL
3038 )),
3139 COUNT (DISTINCT IF(
0 commit comments