Skip to content
Merged
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
4 changes: 4 additions & 0 deletions rust/lance-io/src/object_store/providers/oss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ impl ObjectStoreProvider for OssStoreProvider {
config_map.insert("region".to_string(), region.clone());
}

if let Some(security_token) = storage_options.0.get("oss_security_token") {
config_map.insert("security_token".to_string(), security_token.clone());
}

if !config_map.contains_key("endpoint") {
return Err(Error::invalid_input(
"OSS endpoint is required. Please provide 'oss_endpoint' in storage options or set OSS_ENDPOINT environment variable",
Expand Down
Loading