migrates old pingcentre onboarding artifacts to new firefox_desktop view (#4457)

* migrates old pingcentre onboarding artifacts to new firefox_desktop view

* generate event rollup dag

* generate review checker dag

* update messaging system dag

* incl project in table names

---------

Co-authored-by: Anna Scholtz <anna@scholtzan.net>
This commit is contained in:
Mike Williams 2023-11-20 15:15:46 -05:00 коммит произвёл GitHub
Родитель dc3864fbc4
Коммит 4d0b0cb370
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 3 добавлений и 3 удалений

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

@ -9,7 +9,7 @@ WITH microsurvey_responses AS (
'SHOPPING_MICROSURVEY_(\\d)_SHOPPING_MICROSURVEY_SCREEN_.*'
) AS question_index
FROM
messaging_system.onboarding
`moz-fx-data-shared-prod.firefox_desktop.onboarding`
WHERE
DATE(submission_timestamp) = @submission_date
AND message_id LIKE '%SHOPPING%'

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

@ -28,4 +28,4 @@ SELECT
(SELECT ARRAY_AGG(STRUCT(key, value.branch AS value)) FROM UNNEST(experiments)) AS experiments,
* EXCEPT (experiments)
FROM
`moz-fx-data-shared-prod.messaging_system_stable.onboarding_v1`
`moz-fx-data-shared-prod.firefox_desktop.onboarding`

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

@ -10,7 +10,7 @@ WITH windowed AS (
udf.mode_last(ARRAY_AGG(metadata.geo.country) OVER w1) AS country,
udf.mode_last(ARRAY_AGG(version) OVER w1) AS version
FROM
messaging_system.onboarding
`moz-fx-data-shared-prod.firefox_desktop.onboarding`
WHERE
-- Reprocess all dates by running this query with --parameter=submission_date:DATE:NULL
(@submission_date IS NULL OR @submission_date = DATE(submission_timestamp))