mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-21 15:13:01 +00:00
fix(ingest): fix bigquery-usage regex for both partitioned and sharded tables (#3571)
This commit is contained in:
parent
d33d9cbb17
commit
482dac6d2e
@ -37,7 +37,8 @@ GCP_LOGGING_PAGE_SIZE = 1000
|
||||
|
||||
# Handle yearly, monthly, daily, or hourly partitioning.
|
||||
# See https://cloud.google.com/bigquery/docs/partitioned-tables.
|
||||
PARTITIONED_TABLE_REGEX = re.compile(r"^(.+)\$(\d{4}|\d{6}|\d{8}|\d{10})$")
|
||||
# This REGEX handles both Partitioned Tables ($ separator) and Sharded Tables (_ separator)
|
||||
PARTITIONED_TABLE_REGEX = re.compile(r"^(.+)[\$_](\d{4}|\d{6}|\d{8}|\d{10})$")
|
||||
|
||||
# Handle table snapshots
|
||||
# See https://cloud.google.com/bigquery/docs/table-snapshots-intro.
|
||||
|
Loading…
x
Reference in New Issue
Block a user