This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 727e95f1ae9 [fix](nereids) the stop watch is not reset (#37168)
727e95f1ae9 is described below

commit 727e95f1ae9919a7de7288e9f03754f4036b6a09
Author: meiyi <[email protected]>
AuthorDate: Wed Jul 3 22:44:03 2024 +0800

    [fix](nereids) the stop watch is not reset (#37168)
    
    ## Proposed changes
    
    When use JDBC to insert into Doris, after execute several sqls, will get
    `Nereids cost too much time (> 30s )`, but the audit log shows that the
    sql only cost several milliseconds. The reason is that the stop watch is
    never reset.
---
 fe/fe-core/src/main/java/org/apache/doris/nereids/NereidsPlanner.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 b78ca9a4ac9..819b4c371fc 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
@@ -130,7 +130,7 @@ public class NereidsPlanner extends Planner {
         setParsedPlan(parsedPlan);
 
         PhysicalProperties requireProperties = buildInitRequireProperties();
-        statementContext.getStopwatch().start();
+        statementContext.getStopwatch().reset().start();
         Plan resultPlan = null;
         try {
             boolean showPlanProcess = 
showPlanProcess(queryStmt.getExplainOptions());


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to