instantiate client after parsing args
This commit is contained in:
Родитель
a929285ca0
Коммит
55cdf93c5f
|
@ -23,9 +23,6 @@ WILDCARD_RE = re.compile(r"[*?[]")
|
|||
DEFAULT_PATTERN = "telemetry.*"
|
||||
DEFAULT_EXCLUDE = r"*_raw"
|
||||
|
||||
client = bigquery.Client()
|
||||
|
||||
|
||||
def pattern(value: str) -> Tuple[str, str, str]:
|
||||
PATTERN_RE.fullmatch(value).groups(client.project)
|
||||
|
||||
|
@ -59,6 +56,8 @@ except ValueError as e:
|
|||
|
||||
wildcards = set("*?[]")
|
||||
|
||||
client = bigquery.Client()
|
||||
|
||||
|
||||
def uses_wildcards(pattern: str) -> bool:
|
||||
return bool(set("*?[]") & set(pattern))
|
||||
|
|
Загрузка…
Ссылка в новой задаче