Move materialized view into init.sql files

This commit is contained in:
Anna Scholtz 2021-03-02 15:49:39 -08:00
Родитель 8094ed7a75
Коммит 789f476cd2
8 изменённых файлов: 3 добавлений и 8 удалений

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

@ -23,11 +23,6 @@ VIEWS_TO_SKIP = (
# Dataset glam-fenix-dev:glam_etl was not found
# TODO: this should be removed if views are to be automatically deployed
*[str(path) for path in Path("sql/glam-fenix-dev").glob("glam_etl/**/view.sql")],
# Materialized views
"telemetry_derived/experiment_events_live_v1/view.sql",
"org_mozilla_firefox_derived/experiment_events_live_v1/view.sql",
"org_mozilla_firefox_beta_derived/experiment_events_live_v1/view.sql",
"org_mozilla_fenix_derived/experiment_events_live_v1/view.sql",
)
# suffixes of datasets with non-user-facing views

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

@ -1,7 +1,7 @@
friendly_name: Experiment Events Live
description: |-
Materialized view of experimentation related events
coming from Fenix clients.
coming from Fenix nightly clients.
owners:
- ascholtz@mozilla.com
labels:

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

@ -1,7 +1,7 @@
friendly_name: Experiment Events Live
description: |-
Materialized view of experimentation related events
coming from Fenix clients.
coming from Fenix release clients.
owners:
- ascholtz@mozilla.com
labels:

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

@ -7,7 +7,7 @@ SELECT
branch,
sum(`enroll_count`) AS value
FROM
`moz-fx-data-shared-prod.telemetry_derived.experiment_enrollment_aggregates_live`
`moz-fx-data-shared-prod.telemetry_derived.experiment_enrollment_aggregates_live_v1`
GROUP BY
1,
2,