Remove origin_content_blocking view (#3455)
This commit is contained in:
Родитель
2f90d9feb0
Коммит
246fc98015
|
@ -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
|
Загрузка…
Ссылка в новой задаче