Skip to content

Commit a6b8863

Browse files
committed
feat: for consistency set country to ?? if null
1 parent 28df48d commit a6b8863

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql_generators/usage_reporting/templates/usage_reporting_active_users.view.sql.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ AS
55
SELECT
66
daily.* EXCEPT(app_channel, normalized_country_code),
77
app_channel AS channel,
8-
normalized_country_code AS country,
8+
IFNULL(normalized_country_code, "??") AS country,
9+
EXTRACT(YEAR FROM first_seen_date) AS first_seen_year,
910
{% if app_name in ("fenix", "firefox_desktop") %}
1011
CASE
1112
WHEN LOWER(distribution_id) = "mozillaonline"
@@ -15,7 +16,6 @@ SELECT
1516
{% else %}
1617
"{{ app_name }}" AS app_name,
1718
{% endif %}
18-
EXTRACT(YEAR FROM first_seen_date) AS first_seen_year,
1919
-- Activity fields to support metrics built on top of activity
2020
CASE
2121
WHEN BIT_COUNT(days_active_bits)

0 commit comments

Comments
 (0)