From 8ea1be7ef8673a45cfce5236c820363b85b838be Mon Sep 17 00:00:00 2001 From: lihangyu <15605149486@163.com> Date: Fri, 1 Nov 2024 16:02:57 +0800 Subject: [PATCH] [fix](auditlog) set isQuery to true when query is short circuited (#42647) --- fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 1 + 1 file changed, 1 insertion(+) 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 16600536aac1b9..d0dbc6c6061004 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 @@ -1898,6 +1898,7 @@ public void executeAndSendResult(boolean isOutfileQuery, boolean isSendFields, : new ShortCircuitQueryContext(planner, (Queriable) parsedStmt); coordBase = new PointQueryExecutor(shortCircuitQueryContext, context.getSessionVariable().getMaxMsgSizeOfResultReceiver()); + context.getState().setIsQuery(true); } else if (planner instanceof NereidsPlanner && ((NereidsPlanner) planner).getDistributedPlans() != null) { coord = new NereidsCoordinator(context, analyzer, planner, context.getStatsErrorEstimator(),