Skip to content

Commit

Permalink
CloudStorage conn instantiated by BigQuery conn inherits creds
Browse files Browse the repository at this point in the history
  • Loading branch information
austinweisgrau committed Apr 22, 2024
1 parent 6bcb89b commit 589237c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parsons/google/google_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def copy_s3(

# copy from S3 to GCS
tmp_gcs_bucket = check_env.check("GCS_TEMP_BUCKET", tmp_gcs_bucket)
gcs_client = gcs_client or GoogleCloudStorage()
gcs_client = gcs_client or GoogleCloudStorage(app_creds=self.app_creds)
temp_blob_uri = gcs_client.copy_s3_to_gcs(
aws_source_bucket=bucket,
aws_access_key_id=aws_access_key_id,
Expand Down Expand Up @@ -809,7 +809,7 @@ def copy(
schema.append(schema_row)
job_config.schema = schema

gcs_client = gcs_client or GoogleCloudStorage()
gcs_client = gcs_client or GoogleCloudStorage(app_creds=self.app_creds)
temp_blob_name = f"{uuid.uuid4()}.{data_type}"
temp_blob_uri = gcs_client.upload_table(tbl, tmp_gcs_bucket, temp_blob_name)

Expand Down

0 comments on commit 589237c

Please sign in to comment.