[fix](nereids) explain shape refactor #18399
previous pr 18296 has a bug when parse SHAPE_PLAN.
This commit is contained in:
@ -218,8 +218,6 @@ public class NereidsPlanner extends Planner {
|
||||
String tree = physicalPlan.treeString();
|
||||
LOG.info(tree);
|
||||
}
|
||||
|
||||
System.out.println(physicalPlan.shape(" "));
|
||||
if (explainLevel == ExplainLevel.OPTIMIZED_PLAN
|
||||
|| explainLevel == ExplainLevel.ALL_PLAN
|
||||
|| explainLevel == ExplainLevel.SHAPE_PLAN) {
|
||||
|
||||
@ -1772,6 +1772,9 @@ public class LogicalPlanBuilder extends DorisParserBaseVisitor<Object> {
|
||||
if (planTypeContext.PARSED() != null) {
|
||||
return ExplainLevel.PARSED_PLAN;
|
||||
}
|
||||
if (planTypeContext.SHAPE() != null) {
|
||||
return ExplainLevel.SHAPE_PLAN;
|
||||
}
|
||||
return ExplainLevel.ALL_PLAN;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user