From 6f9ea5e5e0ae35cd74fd3cf8d8aa9a3eff74ad6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Lizardo?= Date: Tue, 16 Jul 2024 10:10:43 +0200 Subject: [PATCH] Add environment variables parser to get_log_store_for_table --- src/object_store/factory.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/object_store/factory.rs b/src/object_store/factory.rs index e9faea5c..3f9bde7e 100644 --- a/src/object_store/factory.rs +++ b/src/object_store/factory.rs @@ -18,6 +18,7 @@ use object_store::{ prefix::PrefixStore, ClientOptions, ObjectStore, }; +use object_store_factory; use tracing::info; use url::Url; @@ -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")