Skip to content

Commit

Permalink
QueryJobConfig.labels instead of job_labels
Browse files Browse the repository at this point in the history
  • Loading branch information
artnowo-alle committed May 24, 2024
1 parent 9143fa0 commit e63472f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bigflow/bigquery/dataset_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def write(self, table_id: str, sql: str, mode: str) -> 'google.cloud.bigquery.ta
job_config.write_disposition = mode

if self.job_labels:
job_config.job_labels = self.job_labels
job_config.labels = self.job_labels

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

if self.job_labels:
job_config.job_labels = self.job_labels
job_config.labels = self.job_labels

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

Expand Down

0 comments on commit e63472f

Please sign in to comment.