This is an automated email from the ASF dual-hosted git repository. dataroaring pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new af7b69da48b [fix](nereids) Pick the stop watch is not reset (#37168) (#37397) af7b69da48b is described below commit af7b69da48bf72ea294eb9e810cb0f5391e517d5 Author: meiyi <myime...@gmail.com> AuthorDate: Mon Jul 8 10:28:03 2024 +0800 [fix](nereids) Pick the stop watch is not reset (#37168) (#37397) Pick https://github.com/apache/doris/pull/37168 and https://github.com/apache/doris/pull/37095 --- .../main/java/org/apache/doris/nereids/NereidsPlanner.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java index 667784ad119..02170e63d4e 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java @@ -113,10 +113,14 @@ public class NereidsPlanner extends Planner { NereidsTracer.logImportantTime("EndParsePlan"); setParsedPlan(parsedPlan); PhysicalProperties requireProperties = buildInitRequireProperties(); - statementContext.getStopwatch().start(); - boolean showPlanProcess = showPlanProcess(queryStmt.getExplainOptions()); - Plan resultPlan = plan(parsedPlan, requireProperties, explainLevel, showPlanProcess); - statementContext.getStopwatch().stop(); + statementContext.getStopwatch().reset().start(); + Plan resultPlan = null; + try { + boolean showPlanProcess = showPlanProcess(queryStmt.getExplainOptions()); + resultPlan = plan(parsedPlan, requireProperties, explainLevel, showPlanProcess); + } finally { + statementContext.getStopwatch().stop(); + } setOptimizedPlan(resultPlan); if (explainLevel.isPlanLevel) { return; --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org