yiguolei commented on code in PR #48906: URL: https://github.com/apache/doris/pull/48906#discussion_r1988600148
########## fe/fe-core/src/main/java/org/apache/doris/plugin/audit/AuditLogBuilder.java: ########## @@ -109,14 +110,22 @@ private void auditQueryLog(AuditEvent event) throws IllegalAccessException { continue; } - if (af.value().equals("Timestamp")) { - continue; + Object fieldValue = f.get(event); + if (af.value().equals("Time(ms)")) { + queryTime = (long) fieldValue; } - if (af.value().equals("Time(ms)")) { - queryTime = (long) f.get(event); + if (af.value().equals("Timestamp")) { + try { + fieldValue = TimeUtils.longToTimeStringWithms(Long.valueOf(fieldValue.toString())); Review Comment: Long.valueOf(fieldValue.toString() 这个不要这么写,直接强制类型转换就可以了 -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org