From 93005c79882f86aa22ef1c843a441f48bbfe9b8b Mon Sep 17 00:00:00 2001 From: lucia-vargas-a Date: Sun, 17 Nov 2024 14:20:39 +0100 Subject: [PATCH] Remove uri_count, active_hours from views. Missing 'AS' added to to query. --- .../active_users_aggregates_v4/templates/desktop_query.sql | 4 ++-- sql_generators/active_users_aggregates_v4/templates/view.sql | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sql_generators/active_users_aggregates_v4/templates/desktop_query.sql b/sql_generators/active_users_aggregates_v4/templates/desktop_query.sql index d45aae661a..0b4ecfdf5c 100644 --- a/sql_generators/active_users_aggregates_v4/templates/desktop_query.sql +++ b/sql_generators/active_users_aggregates_v4/templates/desktop_query.sql @@ -5,8 +5,8 @@ WITH todays_metrics AS ( app_name, app_version AS app_version, normalized_channel AS channel, - IFNULL(country, '??') country, - IFNULL(city, '??') city, + IFNULL(country, '??') AS country, + IFNULL(city, '??') AS city, COALESCE(REGEXP_EXTRACT(locale, r'^(.+?)-'), locale, NULL) AS locale, os, COALESCE( diff --git a/sql_generators/active_users_aggregates_v4/templates/view.sql b/sql_generators/active_users_aggregates_v4/templates/view.sql index 9c68170c5f..65bdec76bd 100644 --- a/sql_generators/active_users_aggregates_v4/templates/view.sql +++ b/sql_generators/active_users_aggregates_v4/templates/view.sql @@ -3,7 +3,7 @@ CREATE OR REPLACE VIEW `{{ project_id }}.{{ app_name }}.active_users_aggregates` AS SELECT - * EXCEPT (app_version, app_name, uri_count, active_hours), + * EXCEPT (app_version, app_name), app_name, app_version, `mozfun.norm.browser_version_info`(app_version).major_version AS app_version_major,