Utility function yielding a string representation of the given [`ExecutionPlan`].
(plan: &Arc<dyn ExecutionPlan>)
| 1519 | |
| 1520 | /// Utility function yielding a string representation of the given [`ExecutionPlan`]. |
| 1521 | pub 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 |
searching dependent graphs…