Skip to content

Commit

Permalink
Add environment variables parser to get_log_store_for_table
Browse files Browse the repository at this point in the history
  • Loading branch information
lizardoluis committed Jul 16, 2024
1 parent f8a18b6 commit 6f9ea5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/object_store/factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use object_store::{
prefix::PrefixStore,
ClientOptions, ObjectStore,
};
use object_store_factory;
use tracing::info;
use url::Url;

Expand Down Expand Up @@ -202,6 +203,9 @@ impl ObjectStoreFactory {
used_options.insert("region".to_string(), region.to_string());
};

let env_variables =
object_store_factory::parse_env_variables(&key.url);
used_options.extend(env_variables.into_iter());
let mut store = parse_url_opts(&key.url, &used_options)?.0.into();

if !(key.url.scheme() == "file" || key.url.scheme() == "memory")
Expand Down

0 comments on commit 6f9ea5e

Please sign in to comment.