diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java index 0a6c1e298ff9b06..0cbedfb6aea9c35 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java @@ -589,7 +589,7 @@ public String getExplainString(ExplainOptions explainOptions) { plan = rewrittenPlan.treeString(); break; case OPTIMIZED_PLAN: - plan = "cost = " + cost + "\n" + optimizedPlan.treeString() + mvSummary; + plan = "cost = " + cost + "\n" + optimizedPlan.treeString(); break; case SHAPE_PLAN: plan = optimizedPlan.shape(""); @@ -597,8 +597,7 @@ public String getExplainString(ExplainOptions explainOptions) { case MEMO_PLAN: plan = cascadesContext.getMemo().toString() + "\n\n========== OPTIMIZED PLAN ==========\n" - + optimizedPlan.treeString() - + mvSummary; + + optimizedPlan.treeString(); break; case DISTRIBUTED_PLAN: StringBuilder distributedPlanStringBuilder = new StringBuilder(); @@ -642,7 +641,7 @@ public String getExplainString(ExplainOptions explainOptions) { } if (statementContext != null) { if (statementContext.isHasUnknownColStats()) { - plan += "planed with unknown column statistics\n"; + plan += "\nplaned with unknown column statistics\n"; } if (statementContext.getDisableJoinReorderReason().isPresent()) { plan += "\ndisable join reorder reason\n";