Skip to content

feat: add partnership field to the active_users_aggregates view template #6706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ SELECT
app_version_minor,
app_version_patch_revision,
app_version_is_major_release,
os_grouped
os_grouped,
CASE
WHEN distribution_id LIKE "%vivo%"
THEN "vivo"
ELSE "other"
END AS partnership,
FROM
`moz-fx-data-shared-prod.telemetry.active_users_aggregates_mobile`
UNION ALL
Expand Down Expand Up @@ -68,6 +73,11 @@ SELECT
app_version_minor,
app_version_patch_revision,
app_version_is_major_release,
os_grouped
os_grouped,
CASE
WHEN distribution_id LIKE "%vivo%"
THEN "vivo"
ELSE "other"
END AS partnership,
FROM
`moz-fx-data-shared-prod.firefox_desktop.active_users_aggregates`
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ SELECT
`mozfun.norm.browser_version_info`(app_version).minor_version AS app_version_minor,
`mozfun.norm.browser_version_info`(app_version).patch_revision AS app_version_patch_revision,
`mozfun.norm.browser_version_info`(app_version).is_major_release AS app_version_is_major_release,
`mozfun.norm.os`(os) AS os_grouped
`mozfun.norm.os`(os) AS os_grouped,
FROM
`{{ project_id }}.{{ app_name }}_derived.{{ table_name }}`