zddr commented on code in PR #53107:
URL: https://github.com/apache/doris/pull/53107#discussion_r2230083423


##########
fe/fe-core/src/main/java/org/apache/doris/qe/ConnectProcessor.java:
##########
@@ -229,6 +229,9 @@ protected void auditAfterExec(String origStmt, 
StatementBase parsedStmt,
 
     // only throw an exception when there is a problem interacting with the 
requesting client
     protected void handleQuery(String originStmt) throws ConnectionException {
+        // Before executing the query, the queryId should be set to empty.
+        // Otherwise, if SQL parsing fails, the audit log will record the 
queryId from the previous query.
+        ctx.resetQueryId();

Review Comment:
   ```.setQueryId(ctx.queryId() == null ? "NaN" : 
DebugUtil.printId(ctx.queryId()))```
   NAN



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to