Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion crates/core/src/delta_datafusion/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,21 @@ impl TableProviderFactory for DeltaTableFactory {
open_table(table_url).await?
} else {
let table_url = ensure_table_uri(&cmd.to_owned().location)?;
open_table_with_storage_options(table_url, cmd.to_owned().options).await?
open_table_with_storage_options(
table_url,
// remove "aws." prefixes from options
cmd.to_owned()
.options
.iter()
.filter_map(|(k, v)| {
if k.starts_with("aws.") {
Some((k.trim_start_matches("aws.").to_string(), v.to_string()))
} else {
Some((k.to_string(), v.to_string()))
}
})
.collect::<HashMap<String, String>>(),
).await?
};
Ok(Arc::new(provider))
}
Expand Down