diff --git a/query/src/sessions/session_mgr.rs b/query/src/sessions/session_mgr.rs index 683ca3761a3f..6c4cc952fb87 100644 --- a/query/src/sessions/session_mgr.rs +++ b/query/src/sessions/session_mgr.rs @@ -395,6 +395,8 @@ impl SessionManager { let mut config = self.conf.write(); let config_file = config.config_file.clone(); *config = Config::load_from_file(&config_file)?; + // ensure the environment variables are immutable + *config = Config::load_from_env(&config)?; config.config_file = config_file; config.clone() };