MCPcopy Create free account
hub / github.com/apache/datafusion / new_with_config_rt

Method new_with_config_rt

datafusion/core/src/execution/context/mod.rs:357–364  ·  view source on GitHub ↗

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>)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

newFunction · 0.85
with_default_featuresMethod · 0.80
buildMethod · 0.45
with_runtime_envMethod · 0.45
with_configMethod · 0.45

Tested by

no test coverage detected