From dc36bc478ec632d7e1179fc19ff400f7953baedf Mon Sep 17 00:00:00 2001 From: Max Lapan Date: Thu, 19 Oct 2023 14:29:22 +0200 Subject: [PATCH] Update exasol-s3/src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java Co-authored-by: Christoph Pirkl --- .../src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exasol-s3/src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java b/exasol-s3/src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java index 579f214..d73779d 100644 --- a/exasol-s3/src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java +++ b/exasol-s3/src/main/java/com/exasol/spark/s3/BaseQueryGenerator.java @@ -88,8 +88,9 @@ protected Map.Entry getAWSCredentials() { if (this.options.containsKey(Option.AWS_ACCESS_KEY_ID.key())) { awsAccessKeyId = this.options.get(Option.AWS_ACCESS_KEY_ID.key()); - if (this.options.containsKey(Option.AWS_SECRET_ACCESS_KEY.key())) + if (this.options.containsKey(Option.AWS_SECRET_ACCESS_KEY.key())) { awsSecretAccessKey = this.options.get(Option.AWS_SECRET_ACCESS_KEY.key()); + } } else { // Retrieve access key and secret access key from environment variables awsAccessKeyId = System.getenv(ACCESS_KEY_ENV_VAR);