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
The following commit(s) were added to refs/heads/branch-2.1 by this push: new 530bad3d14b Set isQuery audit log correctly when fallback to old planner. (#49959) 530bad3d14b is described below commit 530bad3d14ba14bb03e33165e985c8dfc35ebf33 Author: James <lijib...@selectdb.com> AuthorDate: Thu Apr 10 23:27:54 2025 +0800 Set isQuery audit log correctly when fallback to old planner. (#49959) --- fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 4 ++++ 1 file changed, 4 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 c268ff4d4a4..1e9ce44ca6d 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 @@ -890,6 +890,10 @@ public class StmtExecutor { try { // parsedStmt maybe null here, we parse it. Or the predicate will not work. parseByLegacy(); + // set isQuery here because when fallback from Nereids, parsedStmt is null, so the above set will be skipped + if (parsedStmt instanceof QueryStmt) { + context.getState().setIsQuery(true); + } if (context.isTxnModel() && !(parsedStmt instanceof InsertStmt) && !(parsedStmt instanceof TransactionStmt)) { throw new TException("This is in a transaction, only insert, commit, rollback is acceptable."); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org