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

starocean999 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 3c1ac52f6ad [fix](nereids)should set isForwardedToMaster and 
redirectStatus to null before fallback to legacy planner (#44332)
3c1ac52f6ad is described below

commit 3c1ac52f6add418d31098dfb830cc896c844e76b
Author: starocean999 <[email protected]>
AuthorDate: Thu Nov 21 10:25:35 2024 +0800

    [fix](nereids)should set isForwardedToMaster and redirectStatus to null 
before fallback to legacy planner (#44332)
    
    pick from master https://github.com/apache/doris/pull/44163
---
 fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index b39af6efeb1..2e87d6fac28 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -597,6 +597,8 @@ public class StmtExecutor {
                     }
                     parsedStmt = null;
                     planner = null;
+                    isForwardedToMaster = null;
+                    redirectStatus = null;
                     // Attention: currently exception from nereids does not 
mean an Exception to user terminal
                     // unless user does not allow fallback to lagency planner. 
But state of query
                     // has already been set to Error in this case, it will 
have some side effect on profile result


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

Reply via email to