This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 6182e4ffe41 [fix](nereids) Pick the stop watch is not reset (#37168)
(#37507)
6182e4ffe41 is described below
commit 6182e4ffe417816b1eaff453b356ee412ed88bfc
Author: meiyi <[email protected]>
AuthorDate: Tue Jul 9 13:45:11 2024 +0800
[fix](nereids) Pick the stop watch is not reset (#37168) (#37507)
Pick https://github.com/apache/doris/pull/37168 and
https://github.com/apache/doris/pull/37095
---
.../src/main/java/org/apache/doris/nereids/NereidsPlanner.java | 10 +++++++---
1 file changed, 7 insertions(+), 3 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 ec645fdda82..2efba2b1ed8 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
@@ -122,9 +122,13 @@ public class NereidsPlanner extends Planner {
NereidsTracer.logImportantTime("EndParsePlan");
setParsedPlan(parsedPlan);
PhysicalProperties requireProperties = buildInitRequireProperties();
- statementContext.getStopwatch().start();
- Plan resultPlan = plan(parsedPlan, requireProperties, explainLevel);
- statementContext.getStopwatch().stop();
+ statementContext.getStopwatch().reset().start();
+ Plan resultPlan = null;
+ try {
+ resultPlan = plan(parsedPlan, requireProperties, explainLevel);
+ } finally {
+ statementContext.getStopwatch().stop();
+ }
setOptimizedPlan(resultPlan);
if (explainLevel.isPlanLevel) {
return;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]