diff --git a/target_bigquery/core.py b/target_bigquery/core.py index 2b48ce0..362534b 100644 --- a/target_bigquery/core.py +++ b/target_bigquery/core.py @@ -316,7 +316,8 @@ def __init__( and self._is_upsert_candidate() ): self.merge_target = copy(self.table) - self.table = BigQueryTable(name=f"{self.table_name}__{uuid.uuid4()}", **opts) + self.table = BigQueryTable( + name=f"{self.table_name}__{time.strftime('%Y%m%d%H%M%S')}__{uuid.uuid4()}", **opts) self.table.create_table( self.client, self.apply_transforms, @@ -334,7 +335,8 @@ def __init__( time.sleep(2.5) # Wait for eventual consistency elif self._is_overwrite_candidate(): self.overwrite_target = copy(self.table) - self.table = BigQueryTable(name=f"{self.table_name}__{uuid.uuid4()}", **opts) + self.table = BigQueryTable( + name=f"{self.table_name}__{time.strftime('%Y%m%d%H%M%S')}__{uuid.uuid4()}", **opts) self.table.create_table( self.client, self.apply_transforms,