make explain output stable (#44)

This commit is contained in:
Matthew Cramerus
2025-03-12 12:42:44 -05:00
committed by GitHub
parent 6632011f60
commit f77260cf9c
+4 -1
View File
@@ -274,7 +274,10 @@ impl UserDefinedLogicalNodeCore for OneOf {
}
fn inputs(&self) -> Vec<&LogicalPlan> {
self.branches.iter().collect_vec()
self.branches
.iter()
.sorted_by(|a, b| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal))
.collect_vec()
}
fn schema(&self) -> &datafusion_common::DFSchemaRef {