From 59c8ff1342d96b614726804ab4f990fb1b00c722 Mon Sep 17 00:00:00 2001 From: thetrueryan Date: Tue, 23 Jun 2026 00:26:45 +0400 Subject: [PATCH] chore: remove deprecated UnionExec::new --- datafusion/physical-plan/src/union.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/datafusion/physical-plan/src/union.rs b/datafusion/physical-plan/src/union.rs index 29624285325a5..d6f664c0059bc 100644 --- a/datafusion/physical-plan/src/union.rs +++ b/datafusion/physical-plan/src/union.rs @@ -111,24 +111,6 @@ pub struct UnionExec { } impl UnionExec { - /// Create a new UnionExec - #[deprecated(since = "44.0.0", note = "Use UnionExec::try_new instead")] - pub fn new(inputs: Vec>) -> Self { - let schema = - union_schema(&inputs).expect("UnionExec::new called with empty inputs"); - // The schema of the inputs and the union schema is consistent when: - // - They have the same number of fields, and - // - Their fields have same types at the same indices. - // Here, we know that schemas are consistent and the call below can - // not return an error. - let cache = Self::compute_properties(&inputs, schema).unwrap(); - UnionExec { - inputs, - metrics: ExecutionPlanMetricsSet::new(), - cache: Arc::new(cache), - } - } - /// Try to create a new UnionExec. /// /// # Errors