We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf6da16 commit 8d09506Copy full SHA for 8d09506
βairflow/providers/google/cloud/transfers/gcs_to_bigquery.py
@@ -264,7 +264,11 @@ def execute(self, context):
264
delegate_to=self.delegate_to,
265
impersonation_chain=self.impersonation_chain,
266
)
267
- schema_fields = json.loads(gcs_hook.download(self.bucket, self.schema_object).decode("utf-8"))
+ blob = gcs_hook.download(
268
+ bucket_name=self.bucket,
269
+ object_name=self.schema_object,
270
+ )
271
+ schema_fields = json.loads(blob.decode("utf-8"))
272
elif self.schema_object is None and self.autodetect is False:
273
raise AirflowException(
274
'At least one of `schema_fields`, `schema_object`, or `autodetect` must be passed.'
0 commit comments