[enhancement](Nereids): add LOG info to show the phase of NereidsPlanner. (#26538)

Add LOG info to show the phase of NereidsPlanner, we can use these info to debug.
This commit is contained in:
jakevin
2023-11-07 21:46:54 +08:00
committed by GitHub
parent 2be6c9ff7d
commit ceccc451fa

View File

@ -264,22 +264,28 @@ public class NereidsPlanner extends Planner {
}
private void analyze() {
LOG.info("Start analyze plan");
cascadesContext.newAnalyzer().analyze();
NereidsTracer.logImportantTime("EndAnalyzePlan");
LOG.info("End analyze plan");
}
/**
* Logical plan rewrite based on a series of heuristic rules.
*/
private void rewrite() {
LOG.info("Start rewrite plan");
Rewriter.getWholeTreeRewriter(cascadesContext).execute();
NereidsTracer.logImportantTime("EndRewritePlan");
LOG.info("End rewrite plan");
}
// DependsRules: EnsureProjectOnTopJoin.class
private void optimize() {
LOG.info("Start optimize plan");
new Optimizer(cascadesContext).execute();
NereidsTracer.logImportantTime("EndOptimizePlan");
LOG.info("End optimize plan");
}
private PhysicalPlan postProcess(PhysicalPlan physicalPlan) {