Skip to content

Commit e45de7f

Browse files
authored
Improve display output for FFI execution plans (apache#16713)
1 parent 92d8632 commit e45de7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

datafusion/ffi/src/execution_plan.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ impl DisplayAs for ForeignExecutionPlan {
205205
DisplayFormatType::Default | DisplayFormatType::Verbose => {
206206
write!(
207207
f,
208-
"FFI_ExecutionPlan(number_of_children={})",
208+
"FFI_ExecutionPlan: {}, number_of_children={}",
209+
self.name,
209210
self.children.len(),
210211
)
211212
}
@@ -390,7 +391,10 @@ mod tests {
390391
);
391392

392393
let buf = display.one_line().to_string();
393-
assert_eq!(buf.trim(), "FFI_ExecutionPlan(number_of_children=0)");
394+
assert_eq!(
395+
buf.trim(),
396+
"FFI_ExecutionPlan: empty-exec, number_of_children=0"
397+
);
394398

395399
Ok(())
396400
}

0 commit comments

Comments
 (0)