We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
metrics_to_string
1 parent f9e5d0c commit f928b26Copy full SHA for f928b26
query_engine/src/datafusion_impl/physical_plan.rs
@@ -140,12 +140,13 @@ impl PhysicalPlan for DataFusionPhysicalPlanAdapter {
140
}
141
142
fn metrics_to_string(&self) -> String {
143
- let executed_opt = &*self.executed_plan.read().unwrap();
+ let executed_opt = { self.executed_plan.read().unwrap().clone() };
144
+
145
match executed_opt {
146
Some(plan) => DisplayableExecutionPlan::with_metrics(plan.as_ref())
147
.indent(true)
148
.to_string(),
- None => "Plan is not executed yet".to_string(),
149
+ None => "plan is not executed yet".to_string(),
150
151
152
0 commit comments