Ben Temple
03/21/2023, 9:48 AMopen_table_with_storage_options
, but not sure how to do this from the lambda itself
ThanksYousry Mohamed
03/21/2023, 10:05 AMlet mut backend_config: HashMap<String, String> = HashMap::new();
backend_config.insert("AWS_PROFILE".to_string(), profile);
backend_config.insert("AWS_REGION".to_string(), region);
backend_config.insert("AWS_ACCESS_KEY_ID".to_string(), key.to_string());
backend_config.insert("AWS_SECRET_ACCESS_KEY".to_string(), secret.to_string());
backend_config.insert("AWS_S3_LOCKING_PROVIDER".to_string(), "dynamodb".to_string());
backend_config.insert("DYNAMO_LOCK_TABLE_NAME".to_string(), lock_table_name.to_string());
let mut table = DeltaTableBuilder::from_uri(path)
.with_storage_options(backend_config)
.build()
.unwrap();
Matthew Powers
03/21/2023, 8:58 PMNick Karpov
03/21/2023, 11:42 PMYousry Mohamed
03/21/2023, 11:59 PMrtyler
03/22/2023, 12:06 AMMatthew Powers
03/22/2023, 12:09 AMYousry Mohamed
03/22/2023, 12:19 AMNick Karpov
03/22/2023, 12:26 AMYousry Mohamed
03/22/2023, 12:29 AMrtyler
03/22/2023, 12:29 AMYousry Mohamed
04/05/2023, 2:47 AM