This commit is contained in:
Pere Miquel Brull 2023-01-28 18:39:59 +01:00 committed by GitHub
parent 34c26c542f
commit 47d814d059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ def read_parquet_from_s3(client: Any, key: str, bucket_name: str):
Read the parquet file from the s3 bucket and return a dataframe
"""
s3_fs = s3fs.S3FileSystem()
if client.awsAccessKeyId and client.awsSecretAccessKeyx:
if client.awsAccessKeyId and client.awsSecretAccessKey:
s3_fs = s3fs.S3FileSystem(
key=client.awsAccessKeyId,
secret=client.awsSecretAccessKey.get_secret_value(),