Creates a new `SessionContext` using the provided [`SessionConfig`] and a [`RuntimeEnv`]. # Resource Limits By default, each new `SessionContext` creates a new `RuntimeEnv`, and therefore will not enforce memory or disk limits for queries run on different `SessionContext`s. To enforce resource limits (e.g. to limit the total amount of memory used) across all DataFusion queries in a process, all
(config: SessionConfig, runtime: Arc<RuntimeEnv>)
| 355 | /// all `SessionContext`'s should be configured with the |
| 356 | /// same `RuntimeEnv`. |
| 357 | pub fn new_with_config_rt(config: SessionConfig, runtime: Arc<RuntimeEnv>) -> Self { |
| 358 | let state = SessionStateBuilder::new() |
| 359 | .with_config(config) |
| 360 | .with_runtime_env(runtime) |
| 361 | .with_default_features() |
| 362 | .build(); |
| 363 | Self::new_with_state(state) |
| 364 | } |
| 365 | |
| 366 | /// Creates a new `SessionContext` using the provided [`SessionState`] |
| 367 | pub fn new_with_state(state: SessionState) -> Self { |
nothing calls this directly
no test coverage detected