Skip to content

Commit 3988306

Browse files
authored
fix: allow to_gbq to run without bigquery.tables.create permission. (#539)
1 parent 439d588 commit 3988306

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas_gbq/load.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def load_parquet(
119119
):
120120
job_config = bigquery.LoadJobConfig()
121121
job_config.write_disposition = "WRITE_APPEND"
122+
job_config.create_disposition = "CREATE_NEVER"
122123
job_config.source_format = "PARQUET"
123124

124125
if schema is not None:
@@ -148,6 +149,7 @@ def load_csv(
148149
):
149150
job_config = bigquery.LoadJobConfig()
150151
job_config.write_disposition = "WRITE_APPEND"
152+
job_config.create_disposition = "CREATE_NEVER"
151153
job_config.source_format = "CSV"
152154
job_config.allow_quoted_newlines = True
153155

0 commit comments

Comments
 (0)