Add comments to refactored scripts

This commit is contained in:
Anna Scholtz 2020-03-31 13:55:58 -07:00
Родитель 2102eb2a38
Коммит 29295f0507
3 изменённых файлов: 17 добавлений и 1 удалений

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

@ -1,5 +1,13 @@
#!/bin/sh
# Generate one view definition file per document type in '_stable' tables.
#
# If there are existing view definitions in the destination directory then those will be
# kept instead.
#
# Run as:
# ./script/generate_views 'moz-fx-data-shared-prod:*_stable.*'
cd "$(dirname "$0")/.."
exec python3 -m bigquery_etl.generate_views "$@"
exec python3 -m bigquery_etl.generate_views "$@"

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

@ -1,5 +1,7 @@
#!/bin/sh
# Update metadata of BigQuery tables and views.
cd "$(dirname "$0")/.."
exec python3 -m bigquery_etl.publish_metadata "$@"

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

@ -1,5 +1,11 @@
#!/bin/sh
# Generate and publish views for publicly available tables.
# Generate view definitions for queries that are written to the
# public data project and execute them. Views are published to
# an internal project so that data is also accessible in private
# datasets.
cd "$(dirname "$0")/.."
exec python3 -m bigquery_etl.public_data.publish_public_data_views "$@"