feat: add geo.subdivision1 to baseline_clients_daily_v1 query tempalte (glean_usage generator) (#5611)

This commit is contained in:
kik-kik 2024-05-17 23:45:33 +02:00 коммит произвёл GitHub
Родитель 1162edfc20
Коммит b4602805d9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
5 изменённых файлов: 26 добавлений и 0 удалений

Просмотреть файл

@ -25,6 +25,7 @@ WITH base AS (
normalized_os,
normalized_os_version,
metrics.string.metrics_distribution_id AS distribution_id,
metadata.geo.subdivision1 AS geo_subdivision,
FROM
`{{ baseline_table }}`
-- Baseline pings with 'foreground' reason were first introduced in early April 2020;
@ -92,6 +93,7 @@ windowed AS (
udf.mode_last(ARRAY_AGG(device_model) OVER w1) AS device_model,
udf.mode_last(ARRAY_AGG(telemetry_sdk_build) OVER w1) AS telemetry_sdk_build,
udf.mode_last(ARRAY_AGG(distribution_id) OVER w1) AS distribution_id,
udf.mode_last(ARRAY_AGG(geo_subdivision) OVER w1) AS geo_subdivision,
FROM
with_date_offsets
WHERE

Просмотреть файл

@ -275,6 +275,12 @@
"type": "STRING",
"name": "glean_baseline_locale",
"mode": "NULLABLE"
},
{
"description": "",
"type": "STRING",
"name": "metrics_distribution_id",
"mode": "NULLABLE"
}
],
"type": "RECORD",

Просмотреть файл

@ -275,6 +275,12 @@
"type": "STRING",
"name": "glean_baseline_locale",
"mode": "NULLABLE"
},
{
"description": "",
"type": "STRING",
"name": "metrics_distribution_id",
"mode": "NULLABLE"
}
],
"type": "RECORD",

Просмотреть файл

@ -275,6 +275,12 @@
"type": "STRING",
"name": "glean_baseline_locale",
"mode": "NULLABLE"
},
{
"description": "",
"type": "STRING",
"name": "metrics_distribution_id",
"mode": "NULLABLE"
}
],
"type": "RECORD",

Просмотреть файл

@ -275,6 +275,12 @@
"type": "STRING",
"name": "glean_baseline_locale",
"mode": "NULLABLE"
},
{
"description": "",
"type": "STRING",
"name": "metrics_distribution_id",
"mode": "NULLABLE"
}
],
"type": "RECORD",