Remove origin_content_blocking view (#3455)

This commit is contained in:
Anna Scholtz 2022-12-13 10:43:48 -08:00 коммит произвёл GitHub
Родитель 2f90d9feb0
Коммит 246fc98015
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 0 добавлений и 33 удалений

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

@ -22,7 +22,6 @@ SKIP = {
"sql/moz-fx-data-shared-prod/telemetry/first_shutdown_summary_v4/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/focus_android_events_v1/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/lockwise_mobile_events_v1/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/origin_content_blocking/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/rocket_android_events_v1/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/simpleprophet_forecasts/view.sql",
"sql/moz-fx-data-shared-prod/telemetry/smoot_usage_day_0/view.sql",

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

@ -380,7 +380,6 @@ SEARCH_IGNORE_TABLES |= {
SEARCH_IGNORE_FIELDS = {
# id is the source for document_id in these tables
("firefox_launcher_process_stable.launcher_process_failure_v1", ID),
("telemetry_derived.origin_content_blocking", ID),
("telemetry_stable.anonymous_v4", ID),
("telemetry_stable.optout_v4", ID),
("telemetry_stable.pre_account_v4", ID),

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

@ -1,31 +0,0 @@
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.telemetry.origin_content_blocking`
AS
WITH most_recent AS (
SELECT
* EXCEPT(_n)
FROM
(
SELECT
*,
ROW_NUMBER() OVER (
PARTITION BY
submission_date,
batch_id,
origin
ORDER BY
TIMESTAMP DESC
) AS _n
FROM
`moz-fx-data-shared-prod.telemetry_derived.origin_content_blocking`
)
WHERE
_n = 1
)
SELECT
submission_date,
batch_id,
origin,
aggregate
FROM
most_recent