Skip to content

Commit

Permalink
Pass AWS Token to Delta Lake if present. (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackson Newhouse authored Nov 28, 2023
1 parent fe577d8 commit fdae839
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arroyo-worker/src/connectors/filesystem/delta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ async fn update_s3_credentials(options: &mut HashMap<String, String>) -> Result<
AmazonS3ConfigKey::SecretAccessKey.as_ref().to_string(),
tmp_credentials.secret_key.clone(),
);
if let Some(token) = tmp_credentials.token.as_ref() {
options.insert(AmazonS3ConfigKey::Token.as_ref().to_string(), token.clone());
}
}
options.insert(AWS_S3_ALLOW_UNSAFE_RENAME.to_string(), "true".to_string());
Ok(())
Expand Down
1 change: 0 additions & 1 deletion arroyo-worker/src/connectors/kafka/sink/test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(clippy::unnecessary_mut_passed)]

use std::io::Write;
use std::time::{Duration, SystemTime};

use crate::engine::{Context, OutQueue};
Expand Down

0 comments on commit fdae839

Please sign in to comment.