TangSiyang2001 commented on code in PR #17249:
URL: https://github.com/apache/doris/pull/17249#discussion_r1122584990


##########
fe/fe-core/src/main/java/org/apache/doris/analysis/InsertStmt.java:
##########
@@ -304,7 +304,9 @@ public void analyze(Analyzer analyzer) throws UserException 
{
 
         db = 
analyzer.getEnv().getCatalogMgr().getCatalog(tblName.getCtl()).getDbOrAnalysisException(tblName.getDb());
         // create label and begin transaction
-        long timeoutSecond = ConnectContext.get().getExecTimeout();
+        ConnectContext ctx = ConnectContext.get();
+        int timeoutSecond = Math.max(ctx.getExecTimeout(), 
ctx.getSessionVariable().getInsertTimeoutS());
+        ctx.setExecTimeout(timeoutSecond);

Review Comment:
   Once we call setExecTimeout here, the ConnectContext has already got the 
required exec_timeout.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to