Skip to content

Commit 8e640e6

Browse files
committed
feat(DENG-9583): Fix normalized_app_id and uri_count
1 parent d33d4db commit 8e640e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sql_generators/glean_usage/templates/clients_last_seen_joined.query.sql

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ WITH baseline AS (
66
{% if app_name != "firefox_desktop" %}
77
normalized_app_id,
88
{% endif %}
9-
{% if app_name == "firefox_ios" %}
10-
uri_count,
11-
{% endif %}
129
days_since_seen,
1310
days_since_active,
1411
days_since_created_profile,
@@ -71,12 +68,15 @@ metrics AS (
7168
submission_date,
7269
client_id,
7370
sample_id,
71+
{% if app_name == "firefox_desktop" %}
72+
profile_group_id,
73+
{% endif %}
74+
{% if app_name == "firefox_ios" %}
75+
uri_count,
76+
{% endif %}
7477
normalized_channel,
7578
n_metrics_ping,
7679
days_sent_metrics_ping_bits,
77-
{% if app_name == "firefox_desktop" %}
78-
profile_group_id
79-
{% endif %}
8080
FROM
8181
`{{ project_id }}.{{ app_name }}.metrics_clients_last_seen`
8282
WHERE
@@ -92,11 +92,11 @@ SELECT
9292
{% if app_name == "firefox_desktop" %}
9393
baseline.days_since_desktop_active,
9494
{% endif %}
95-
{% if app_name != "firefox_desktop" %}
95+
{% if app_name not in ["firefox_desktop", "mozphab", "burnham", "firefox_desktop_background_update"] %}
9696
baseline.normalized_app_id,
9797
{% endif %}
9898
{% if app_name == "firefox_ios" %}
99-
baseline.uri_count,
99+
metrics.uri_count,
100100
{% endif %}
101101
baseline.days_since_seen,
102102
baseline.days_since_active,

0 commit comments

Comments
 (0)