Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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