Add list of authorized views to exempt from publishing

Related to CI failures addressed in https://github.com/mozilla/bigquery-etl/issues/653
This commit is contained in:
Jeff Klukas 2020-01-09 09:48:54 -05:00
Родитель b3dc8f3456
Коммит ac4a17c33f
3 изменённых файлов: 14 добавлений и 0 удалений

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

@ -11,7 +11,13 @@ from google.cloud import bigquery
import sqlparse
AUTHORIZED_VIEWS_TO_SKIP = ("sql/activity_stream/tile_id_types/view.sql",)
def process_file(client, args, filepath):
if filepath in AUTHORIZED_VIEWS_TO_SKIP:
print(f"Skipping authorized view definition {filepath}")
return
with open(filepath) as f:
sql = f.read()
parsed = sqlparse.parse(sql)[0]

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

@ -1,3 +1,7 @@
-- This is an authorized view that allows us to read specific data from
-- a project owned by the Pocket team; if the definition here changes,
-- it may need to be manually redeployed by Data Ops.
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.activity_stream.tile_id_types`
AS

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

@ -1,3 +1,7 @@
-- This is an authorized view that allows us to read specific data from
-- a project owned by the Pocket team; if the definition here changes,
-- it may need to be manually redeployed by Data Ops.
CREATE OR REPLACE VIEW
`moz-fx-data-shared-prod.activity_stream.tile_id_types`
AS