vchiapaikeo commented on code in PR #28444:
URL: https://github.com/apache/airflow/pull/28444#discussion_r1052195894
##########
airflow/providers/google/cloud/transfers/gcs_to_bigquery.py:
##########
@@ -320,8 +320,10 @@ def execute(self, context: Context):
impersonation_chain=self.impersonation_chain,
)
if self.schema_object and self.source_format != "DATASTORE_BACKUP":
- schema_fields = json.loads(gcs_hook.download(self.bucket,
self.schema_object).decode("utf-8"))
- self.log.info("Autodetected fields from schema object: %s",
schema_fields)
+ self.schema_fields = json.loads(
+ gcs_hook.download(self.schema_object_bucket,
self.schema_object).decode("utf-8")
+ )
+ self.log.info("Autodetected fields from schema object: %s",
self.schema_fields)
Review Comment:
Yes, good point.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]