Support options with underscores and fix incorrect variable
This commit is contained in:
Родитель
244fe8bd2a
Коммит
15640b831f
|
@ -38,6 +38,7 @@ WHERE
|
|||
|
||||
parser = ArgumentParser(description=__doc__)
|
||||
parser.add_argument(
|
||||
"--project_id",
|
||||
"--project-id",
|
||||
default="moz-fx-data-shar-nonprod-efed",
|
||||
help="ID of the project in which to run query jobs",
|
||||
|
@ -55,6 +56,7 @@ parser.add_argument(
|
|||
help="Maximum number of queries to execute concurrently",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--dry_run",
|
||||
"--dry-run",
|
||||
action="store_true",
|
||||
help=(
|
||||
|
@ -111,7 +113,7 @@ def run_deduplication_query(client, live_table, stable_table, date, dry_run):
|
|||
query_job.result()
|
||||
print(
|
||||
"Processed {} bytes to populate {}".format(
|
||||
query_job.total_bytes_processed, destination_table_spec
|
||||
query_job.total_bytes_processed, destination
|
||||
)
|
||||
)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче