Skip to content

Commit f77260c

Browse files
authored
make explain output stable (datafusion-contrib#44)
1 parent 6632011 commit f77260c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rewrite/exploitation.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,10 @@ impl UserDefinedLogicalNodeCore for OneOf {
274274
}
275275

276276
fn inputs(&self) -> Vec<&LogicalPlan> {
277-
self.branches.iter().collect_vec()
277+
self.branches
278+
.iter()
279+
.sorted_by(|a, b| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal))
280+
.collect_vec()
278281
}
279282

280283
fn schema(&self) -> &datafusion_common::DFSchemaRef {

0 commit comments

Comments
 (0)