Specify that --project-id is required for bqetl backfill (#2396)
This commit is contained in:
Родитель
19decdb66b
Коммит
dde5278671
|
@ -489,7 +489,7 @@ def _backfill_query(
|
|||
)
|
||||
@click.argument("name")
|
||||
@sql_dir_option
|
||||
@project_id_option()
|
||||
@project_id_option(required=True)
|
||||
@click.option(
|
||||
"--start_date",
|
||||
"--start-date",
|
||||
|
|
|
@ -125,7 +125,7 @@ parallelism_option = click.option(
|
|||
)
|
||||
|
||||
|
||||
def project_id_option(default=None):
|
||||
def project_id_option(default=None, required=False):
|
||||
"""Generate a project-id option, with optional default."""
|
||||
return click.option(
|
||||
"--project-id",
|
||||
|
@ -133,6 +133,7 @@ def project_id_option(default=None):
|
|||
help="GCP project ID",
|
||||
default=default,
|
||||
callback=is_valid_project,
|
||||
required=required,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ The [Creating derived datasets tutorial](https://mozilla.github.io/bigquery-etl/
|
|||
1. Merge pull-request
|
||||
1. Backfill data
|
||||
* Option 1: via Airflow interface
|
||||
* Option 2: `./bqetl query backfill <dataset>.<table>_<version>`
|
||||
* Option 2: `./bqetl query backfill --project-id <project id> <dataset>.<table>_<version>`
|
||||
|
||||
## Update an existing query
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче