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:
Родитель
b3dc8f3456
Коммит
ac4a17c33f
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче