Skip to content

Apache DataFusion SQL Query Engine

chore: remove DisplayableExecutionPlan::to_stringified (#24550)

Yongting Youb87936e88c8f
diff --git a/datafusion/physical-plan/src/display.rs b/datafusion/physical-plan/src/display.rs
index 24a559b27f..3c1a180393 100644
--- a/datafusion/physical-plan/src/display.rs
+++ b/datafusion/physical-plan/src/display.rs
@@ -25,7 +25,7 @@ use std::time::Duration;
use arrow::datatypes::SchemaRef;
-use datafusion_common::display::{GraphvizBuilder, PlanType, StringifiedPlan};
+use datafusion_common::display::GraphvizBuilder;
use datafusion_expr::display_schema;
use datafusion_physical_expr::LexOrdering;
@@ -518,21 +518,6 @@ impl<'a> DisplayableExecutionPlan<'a> {
metric_names: self.metric_names.clone(),
}
}
-
- #[deprecated(since = "47.0.0", note = "indent() or tree_render() instead")]
- pub fn to_stringified(
- &self,
- verbose: bool,
- plan_type: PlanType,
- explain_format: DisplayFormatType,
- ) -> StringifiedPlan {
- match (&explain_format, &plan_type) {
- (DisplayFormatType::TreeRender, PlanType::FinalPhysicalPlan) => {
- StringifiedPlan::new(plan_type, self.tree_render().to_string())
- }
- _ => StringifiedPlan::new(plan_type, self.indent(verbose).to_string()),
- }
- }
}
/// Enum representing the different levels of metrics to display