Skip to content

Commit 762ce58

Browse files
committed
feat(DENG-9583): Add normalized_app_id and uri_count
1 parent 3acb791 commit 762ce58

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

sql_generators/glean_usage/templates/clients_last_seen_joined.query.sql

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ WITH baseline AS (
33
{% if app_name == "firefox_desktop" %}
44
days_since_desktop_active,
55
{% endif %}
6+
{% if app_name not in ["firefox_desktop", "mozphab", "burnham", "firefox_desktop_background_update"] %}
7+
normalized_app_id,
8+
{% endif %}
69
days_since_seen,
710
days_since_active,
811
days_since_created_profile,
@@ -65,12 +68,15 @@ metrics AS (
6568
submission_date,
6669
client_id,
6770
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 %}
6877
normalized_channel,
6978
n_metrics_ping,
7079
days_sent_metrics_ping_bits,
71-
{% if app_name == "firefox_desktop" %}
72-
profile_group_id
73-
{% endif %}
7480
FROM
7581
`{{ project_id }}.{{ app_name }}.metrics_clients_last_seen`
7682
WHERE
@@ -86,6 +92,12 @@ SELECT
8692
{% if app_name == "firefox_desktop" %}
8793
baseline.days_since_desktop_active,
8894
{% endif %}
95+
{% if app_name not in ["firefox_desktop", "mozphab", "burnham", "firefox_desktop_background_update"] %}
96+
baseline.normalized_app_id,
97+
{% endif %}
98+
{% if app_name == "firefox_ios" %}
99+
metrics.uri_count,
100+
{% endif %}
89101
baseline.days_since_seen,
90102
baseline.days_since_active,
91103
baseline.days_since_created_profile,

0 commit comments

Comments
 (0)