Skip to content

Commit 4282c45

Browse files
authored
Remove deprecated config setup functions (#12486)
These were deprecated since v 32.
1 parent 9faf3d4 commit 4282c45

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

datafusion/core/src/execution/context/mod.rs

-19
Original file line numberDiff line numberDiff line change
@@ -312,13 +312,6 @@ impl SessionContext {
312312
Self::new_with_config_rt(config, runtime)
313313
}
314314

315-
/// Creates a new `SessionContext` using the provided
316-
/// [`SessionConfig`] and a new [`RuntimeEnv`].
317-
#[deprecated(since = "32.0.0", note = "Use SessionContext::new_with_config")]
318-
pub fn with_config(config: SessionConfig) -> Self {
319-
Self::new_with_config(config)
320-
}
321-
322315
/// Creates a new `SessionContext` using the provided
323316
/// [`SessionConfig`] and a [`RuntimeEnv`].
324317
///
@@ -341,13 +334,6 @@ impl SessionContext {
341334
Self::new_with_state(state)
342335
}
343336

344-
/// Creates a new `SessionContext` using the provided
345-
/// [`SessionConfig`] and a [`RuntimeEnv`].
346-
#[deprecated(since = "32.0.0", note = "Use SessionState::new_with_config_rt")]
347-
pub fn with_config_rt(config: SessionConfig, runtime: Arc<RuntimeEnv>) -> Self {
348-
Self::new_with_config_rt(config, runtime)
349-
}
350-
351337
/// Creates a new `SessionContext` using the provided [`SessionState`]
352338
pub fn new_with_state(state: SessionState) -> Self {
353339
Self {
@@ -404,11 +390,6 @@ impl SessionContext {
404390
ctx
405391
}
406392

407-
/// Creates a new `SessionContext` using the provided [`SessionState`]
408-
#[deprecated(since = "32.0.0", note = "Use SessionContext::new_with_state")]
409-
pub fn with_state(state: SessionState) -> Self {
410-
Self::new_with_state(state)
411-
}
412393
/// Returns the time this `SessionContext` was created
413394
pub fn session_start_time(&self) -> DateTime<Utc> {
414395
self.session_start_time

datafusion/core/src/execution/session_state.rs

-27
Original file line numberDiff line numberDiff line change
@@ -258,17 +258,6 @@ impl SessionState {
258258
.build()
259259
}
260260

261-
/// Returns new [`SessionState`] using the provided
262-
/// [`SessionConfig`] and [`RuntimeEnv`].
263-
#[deprecated(since = "32.0.0", note = "Use SessionStateBuilder")]
264-
pub fn with_config_rt(config: SessionConfig, runtime: Arc<RuntimeEnv>) -> Self {
265-
SessionStateBuilder::new()
266-
.with_config(config)
267-
.with_runtime_env(runtime)
268-
.with_default_features()
269-
.build()
270-
}
271-
272261
/// Returns new [`SessionState`] using the provided
273262
/// [`SessionConfig`], [`RuntimeEnv`], and [`CatalogProviderList`]
274263
#[deprecated(since = "40.0.0", note = "Use SessionStateBuilder")]
@@ -285,22 +274,6 @@ impl SessionState {
285274
.build()
286275
}
287276

288-
/// Returns new [`SessionState`] using the provided
289-
/// [`SessionConfig`] and [`RuntimeEnv`].
290-
#[deprecated(since = "32.0.0", note = "Use SessionStateBuilder")]
291-
pub fn with_config_rt_and_catalog_list(
292-
config: SessionConfig,
293-
runtime: Arc<RuntimeEnv>,
294-
catalog_list: Arc<dyn CatalogProviderList>,
295-
) -> Self {
296-
SessionStateBuilder::new()
297-
.with_config(config)
298-
.with_runtime_env(runtime)
299-
.with_catalog_list(catalog_list)
300-
.with_default_features()
301-
.build()
302-
}
303-
304277
pub(crate) fn resolve_table_ref(
305278
&self,
306279
table_ref: impl Into<TableReference>,

0 commit comments

Comments
 (0)