Skip to content

Commit e63472f

Browse files
committed
QueryJobConfig.labels instead of job_labels
1 parent 9143fa0 commit e63472f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigflow/bigquery/dataset_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def write(self, table_id: str, sql: str, mode: str) -> 'google.cloud.bigquery.ta
288288
job_config.write_disposition = mode
289289

290290
if self.job_labels:
291-
job_config.job_labels = self.job_labels
291+
job_config.labels = self.job_labels
292292

293293
job = self.bigquery_client.query(sql, job_config=job_config)
294294
return job.result()
@@ -323,7 +323,7 @@ def collect(self, sql: str) -> 'pandas.DataFrame':
323323
job_config = bigquery.QueryJobConfig()
324324

325325
if self.job_labels:
326-
job_config.job_labels = self.job_labels
326+
job_config.labels = self.job_labels
327327

328328
return self._query(sql, job_config=job_config).to_dataframe()
329329

0 commit comments

Comments
 (0)