From 03b197189acc1357f6f0cc856de231bf73a65ead Mon Sep 17 00:00:00 2001 From: starocean999 Date: Wed, 27 Nov 2024 11:16:56 +0800 Subject: [PATCH] [fix](nereids)should set isForwardedToMaster and redirectStatus to null before fallback to legacy planner (#44178) 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 5b413ac9f016d0..3469350af2df23 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 @@ -624,6 +624,8 @@ public void execute(TUniqueId queryId) throws Exception { } 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