[fix](nereids) explain shape refactor #18399

previous pr 18296 has a bug when parse SHAPE_PLAN.
This commit is contained in:
minghong
2023-04-06 08:55:05 +08:00
committed by GitHub
parent d12c4c6361
commit 60bad33e7e
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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;
}