Skip to content

Commit 0e57d1f

Browse files
fix: Fix temp table creation retries by now throwing if table already exists. (#787)
1 parent 56dd591 commit 0e57d1f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bigframes/session/_io/bigquery/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ def create_temp_table(
146146
destination.schema = schema
147147
if cluster_columns:
148148
destination.clustering_fields = cluster_columns
149-
bqclient.create_table(destination)
149+
# Ok if already exists, since this will only happen from retries internal to this method
150+
# as the requested table id has a random UUID4 component.
151+
bqclient.create_table(destination, exists_ok=True)
150152
return f"{table_ref.project}.{table_ref.dataset_id}.{table_ref.table_id}"
151153

152154

0 commit comments

Comments
 (0)