Skip to content

Commit

Permalink
[enhancement](Nereids): add LOG info to show the phase of NereidsPlan…
Browse files Browse the repository at this point in the history
…ner. (apache#26542)
  • Loading branch information
jackwener authored Nov 9, 2023
1 parent ea676de commit 1c3e93b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,22 +280,28 @@ private void initCascadesContext(LogicalPlan plan, PhysicalProperties requirePro
}

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) {
Expand Down

0 comments on commit 1c3e93b

Please sign in to comment.