From 4e69e81fb160b93fbfc9d43dbbbe14fcb5a6f86d Mon Sep 17 00:00:00 2001 From: David Barrat Date: Thu, 7 Dec 2023 16:17:06 +0100 Subject: [PATCH] chore: address type casting issues --- src/queries/eds/rum-pageviews-cwv-count-threshold.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/queries/eds/rum-pageviews-cwv-count-threshold.sql b/src/queries/eds/rum-pageviews-cwv-count-threshold.sql index efd4a65b..d59b458f 100644 --- a/src/queries/eds/rum-pageviews-cwv-count-threshold.sql +++ b/src/queries/eds/rum-pageviews-cwv-count-threshold.sql @@ -87,8 +87,9 @@ url_above_cwv_count_threshold AS ( current_rum_by_url_and_weight AS cru ON filtered_data.url = cru.url WHERE - filtered_data.cwv_count > @cwv_count_threshold - AND (ce.events * cru.weight) > @interval * @avg_daily_pageviews_factor + CAST(filtered_data.cwv_count AS INT64) > CAST(@cwv_count_threshold AS INT64) + AND CAST((ce.events * cru.weight) AS INT64) + > CAST(@interval * @avg_daily_pageviews_factor AS INT64) ) SELECT