MCPcopy Create free account
hub / github.com/apache/datafusion / get_plan_string

Function get_plan_string

datafusion/physical-plan/src/execution_plan.rs:1521–1525  ·  view source on GitHub ↗

Utility function yielding a string representation of the given [`ExecutionPlan`].

(plan: &Arc<dyn ExecutionPlan>)

Source from the content-addressed store, hash-verified

1519
1520/// Utility function yielding a string representation of the given [`ExecutionPlan`].
1521pub fn get_plan_string(plan: &Arc<dyn ExecutionPlan>) -> Vec<String> {
1522 let formatted = displayable(plan.as_ref()).indent(true).to_string();
1523 let actual: Vec<&str> = formatted.trim().lines().collect();
1524 actual.iter().map(|elem| (*elem).to_string()).collect()
1525}
1526
1527/// Indicates the effect an execution plan operator will have on the cardinality
1528/// of its input stream

Callers 3

format_planFunction · 0.85
check_plan_sanityFunction · 0.85

Calls 8

displayableFunction · 0.85
indentMethod · 0.80
collectMethod · 0.80
trimMethod · 0.80
to_stringMethod · 0.45
as_refMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45

Tested by 2

format_planFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…