Skip to content

Commit c090d24

Browse files
committed
feat: add partnership to telemetry.active_users_aggregates view instead of the template
1 parent c3c3ed4 commit c090d24

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: sql/moz-fx-data-shared-prod/telemetry/active_users_aggregates/view.sql

+12-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ SELECT
3232
app_version_minor,
3333
app_version_patch_revision,
3434
app_version_is_major_release,
35-
os_grouped
35+
os_grouped,
36+
CASE
37+
WHEN distribution_id LIKE "%vivo%"
38+
THEN "vivo"
39+
ELSE "other"
40+
END AS partnership,
3641
FROM
3742
`moz-fx-data-shared-prod.telemetry.active_users_aggregates_mobile`
3843
UNION ALL
@@ -68,6 +73,11 @@ SELECT
6873
app_version_minor,
6974
app_version_patch_revision,
7075
app_version_is_major_release,
71-
os_grouped
76+
os_grouped,
77+
CASE
78+
WHEN distribution_id LIKE "%vivo%"
79+
THEN "vivo"
80+
ELSE "other"
81+
END AS partnership,
7282
FROM
7383
`moz-fx-data-shared-prod.firefox_desktop.active_users_aggregates`

Diff for: sql_generators/active_users_aggregates_v4/templates/mobile_view.sql

-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ CREATE OR REPLACE VIEW
4444
app_version_patch_revision,
4545
app_version_is_major_release,
4646
os_grouped,
47-
CASE
48-
WHEN distribution_id LIKE "%vivo%"
49-
THEN "vivo"
50-
ELSE "other"
51-
END AS partnership,
5247
FROM
5348
`{{ project_id }}.{{ app_dataset_id }}.active_users_aggregates`
5449
{% endfor %}

Diff for: sql_generators/active_users_aggregates_v4/templates/view.sql

-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,5 @@ SELECT
1111
`mozfun.norm.browser_version_info`(app_version).patch_revision AS app_version_patch_revision,
1212
`mozfun.norm.browser_version_info`(app_version).is_major_release AS app_version_is_major_release,
1313
`mozfun.norm.os`(os) AS os_grouped,
14-
CASE
15-
WHEN distribution_id LIKE "%vivo%"
16-
THEN "vivo"
17-
ELSE "other"
18-
END AS partnership,
1914
FROM
2015
`{{ project_id }}.{{ app_name }}_derived.{{ table_name }}`

0 commit comments

Comments
 (0)