Skip to content

Apache DataFusion SQL Query Engine

chore(catalog): remove deprecated ViewTable try_new (Closes #23080 - partial) (#23131)

Giorgio Maria Federico Birnthaler91f30b93d583
diff --git a/datafusion/catalog/src/view.rs b/datafusion/catalog/src/view.rs
index 45084e65f2..723634c34c 100644
--- a/datafusion/catalog/src/view.rs
+++ b/datafusion/catalog/src/view.rs
@@ -59,17 +59,6 @@ impl ViewTable {
}
}
- #[deprecated(
- since = "47.0.0",
- note = "Use `ViewTable::new` instead and apply TypeCoercion to the logical plan if needed"
- )]
- pub fn try_new(
- logical_plan: LogicalPlan,
- definition: Option<String>,
- ) -> Result<Self> {
- Ok(Self::new(logical_plan, definition))
- }
-
/// Get definition ref
pub fn definition(&self) -> Option<&String> {
self.definition.as_ref()