Skip to content
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

Bug-1860814-amo_prod__desktop_addons_by_client_fix #4489

Merged
merged 1 commit into from
Oct 27, 2023
Merged
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 @@ -38,17 +38,13 @@ per_clients_without_addons AS (
sample_id,
-- We always want to take the most recent seen version per
-- https://bugzilla.mozilla.org/show_bug.cgi?id=1693308
ARRAY_AGG(
application.version
ORDER BY
mozfun.norm.truncate_version(application.version, "minor") DESC
)[SAFE_OFFSET(0)] AS app_version,
ARRAY_AGG(version ORDER BY mozfun.norm.truncate_version(version, "minor") DESC)[
SAFE_OFFSET(0)
] AS app_version,
mozfun.stats.mode_last(
ARRAY_AGG(normalized_country_code ORDER BY submission_timestamp)
) AS country,
mozfun.stats.mode_last(
ARRAY_AGG(environment.settings.locale ORDER BY submission_timestamp)
) AS locale,
mozfun.stats.mode_last(ARRAY_AGG(locale ORDER BY submission_timestamp)) AS locale,
mozfun.stats.mode_last(ARRAY_AGG(normalized_os ORDER BY submission_timestamp)) AS app_os,
FROM
filtered_main
Expand All @@ -62,7 +58,7 @@ per_clients_just_addons_base AS (
DATE(submission_timestamp) AS submission_date,
client_id,
sample_id,
payload.info.addons
addons
FROM
filtered_main
GROUP BY
Expand Down