turbaszek commented on a change in pull request #8858:
URL: https://github.com/apache/airflow/pull/8858#discussion_r427145195
##########
File path: airflow/providers/google/cloud/operators/bigquery.py
##########
@@ -810,22 +826,19 @@ def execute(self, context):
cluster_fields=self.cluster_fields,
labels=self.labels,
view=self.view,
- encryption_configuration=self.encryption_configuration
+ encryption_configuration=self.encryption_configuration,
+ table_resource=self.table_resource,
)
- self.log.info('Table created successfully: %s:%s.%s',
- self.project_id, self.dataset_id, self.table_id)
- except HttpError as err:
- if err.resp.status != 409:
- raise
- else:
- self.log.info('Table %s:%s.%s already exists.',
self.project_id,
- self.dataset_id, self.table_id)
+ self.log.info('Table %s.%s.%s created successfully',
+ table.project, table.dataset_id, table.table_id)
+ except Conflict:
Review comment:
Good catch! Will fix
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]