This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 90c080617877855b3b9adc85f1fccb28d69f3107 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]
