Skip to content

Commit

Permalink
Use from_env when creating the session context
Browse files Browse the repository at this point in the history
This allows us to use envvars like `DATAFUSION_EXECUTION_BATCH_SIZE`
to control various DataFusion parameters.
  • Loading branch information
mildbyte committed Jan 17, 2024
1 parent da2b9a7 commit 1d72155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ pub async fn build_context(cfg: &schema::SeafowlConfig) -> Result<SeafowlContext
runtime_config = runtime_config.with_temp_file_path(temp_dir);
}

let session_config = SessionConfig::new()
let session_config = SessionConfig::from_env()?
.with_information_schema(true)
.with_default_catalog_and_schema(DEFAULT_DB, DEFAULT_SCHEMA);

Expand Down

0 comments on commit 1d72155

Please sign in to comment.