This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 4282c45ffb Remove deprecated config setup functions (#12486)
4282c45ffb is described below
commit 4282c45ffb665ba4e4ad3eed5d76b2c1a8db0462
Author: Piotr Findeisen <[email protected]>
AuthorDate: Mon Sep 16 20:38:07 2024 +0200
Remove deprecated config setup functions (#12486)
These were deprecated since v 32.
---
datafusion/core/src/execution/context/mod.rs | 19 ------------------
datafusion/core/src/execution/session_state.rs | 27 --------------------------
2 files changed, 46 deletions(-)
diff --git a/datafusion/core/src/execution/context/mod.rs
b/datafusion/core/src/execution/context/mod.rs
index 621b214818..27c0e9c832 100644
--- a/datafusion/core/src/execution/context/mod.rs
+++ b/datafusion/core/src/execution/context/mod.rs
@@ -312,13 +312,6 @@ impl SessionContext {
Self::new_with_config_rt(config, runtime)
}
- /// Creates a new `SessionContext` using the provided
- /// [`SessionConfig`] and a new [`RuntimeEnv`].
- #[deprecated(since = "32.0.0", note = "Use
SessionContext::new_with_config")]
- pub fn with_config(config: SessionConfig) -> Self {
- Self::new_with_config(config)
- }
-
/// Creates a new `SessionContext` using the provided
/// [`SessionConfig`] and a [`RuntimeEnv`].
///
@@ -341,13 +334,6 @@ impl SessionContext {
Self::new_with_state(state)
}
- /// Creates a new `SessionContext` using the provided
- /// [`SessionConfig`] and a [`RuntimeEnv`].
- #[deprecated(since = "32.0.0", note = "Use
SessionState::new_with_config_rt")]
- pub fn with_config_rt(config: SessionConfig, runtime: Arc<RuntimeEnv>) ->
Self {
- Self::new_with_config_rt(config, runtime)
- }
-
/// Creates a new `SessionContext` using the provided [`SessionState`]
pub fn new_with_state(state: SessionState) -> Self {
Self {
@@ -404,11 +390,6 @@ impl SessionContext {
ctx
}
- /// Creates a new `SessionContext` using the provided [`SessionState`]
- #[deprecated(since = "32.0.0", note = "Use
SessionContext::new_with_state")]
- pub fn with_state(state: SessionState) -> Self {
- Self::new_with_state(state)
- }
/// Returns the time this `SessionContext` was created
pub fn session_start_time(&self) -> DateTime<Utc> {
self.session_start_time
diff --git a/datafusion/core/src/execution/session_state.rs
b/datafusion/core/src/execution/session_state.rs
index 5e8d22b6cc..f656fae401 100644
--- a/datafusion/core/src/execution/session_state.rs
+++ b/datafusion/core/src/execution/session_state.rs
@@ -258,17 +258,6 @@ impl SessionState {
.build()
}
- /// Returns new [`SessionState`] using the provided
- /// [`SessionConfig`] and [`RuntimeEnv`].
- #[deprecated(since = "32.0.0", note = "Use SessionStateBuilder")]
- pub fn with_config_rt(config: SessionConfig, runtime: Arc<RuntimeEnv>) ->
Self {
- SessionStateBuilder::new()
- .with_config(config)
- .with_runtime_env(runtime)
- .with_default_features()
- .build()
- }
-
/// Returns new [`SessionState`] using the provided
/// [`SessionConfig`], [`RuntimeEnv`], and [`CatalogProviderList`]
#[deprecated(since = "40.0.0", note = "Use SessionStateBuilder")]
@@ -285,22 +274,6 @@ impl SessionState {
.build()
}
- /// Returns new [`SessionState`] using the provided
- /// [`SessionConfig`] and [`RuntimeEnv`].
- #[deprecated(since = "32.0.0", note = "Use SessionStateBuilder")]
- pub fn with_config_rt_and_catalog_list(
- config: SessionConfig,
- runtime: Arc<RuntimeEnv>,
- catalog_list: Arc<dyn CatalogProviderList>,
- ) -> Self {
- SessionStateBuilder::new()
- .with_config(config)
- .with_runtime_env(runtime)
- .with_catalog_list(catalog_list)
- .with_default_features()
- .build()
- }
-
pub(crate) fn resolve_table_ref(
&self,
table_ref: impl Into<TableReference>,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]