Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions datafusion/physical-plan/src/union.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Arc<dyn ExecutionPlan>>) -> 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
Expand Down
Loading