This is an automated email from the ASF dual-hosted git repository.
yiguolei 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 ced86e8bdb8 [fix](query state) Print correct DML state (#30489)
ced86e8bdb8 is described below
commit ced86e8bdb8a18b4e8c4ca20249fe774d0e2086f
Author: zhiqiang <[email protected]>
AuthorDate: Mon Jan 29 15:01:46 2024 +0800
[fix](query state) Print correct DML state (#30489)
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 5 +++++
1 file changed, 5 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 250375c4549..94a9fa5712c 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
@@ -502,6 +502,11 @@ public class StmtExecutor {
LOG.debug("fall back to legacy planner on statement:\n{}",
originStmt.originStmt);
parsedStmt = null;
planner = 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
+ // and audit log. So we need to reset state to OK if query
cancel be processd by lagency.
+ context.getState().reset();
context.getState().setNereids(false);
executeByLegacy(queryId);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]