RoanHeNaN opened a new issue, #69893:
URL: https://github.com/apache/doris/issues/69893

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   4.x
   
   ### What's Wrong?
   
   ### Problem
   
   The audit log records stmt_type as SELECT after executing SHOW FULL TABLES 
with a WHERE clause. The logged statement type should match the SQL statement 
issued by the user: SHOW.
   
   ### What You Expected?
   
   Corrent stmt_type.
   
   ### How to Reproduce?
   
     ### Steps to reproduce
   
     In a Doris environment with audit logging enabled, run:
   
     CREATE DATABASE IF NOT EXISTS show_tables_issue;
     USE show_tables_issue;
     CREATE TABLE IF NOT EXISTS t1 (id INT) DISTRIBUTED BY HASH(id) BUCKETS 1;
   
     SHOW FULL TABLES WHERE Table_type = 'BASE TABLE';
   
     Check the audit log entry for the SHOW FULL TABLES statement. The actual 
stmt_type is SELECT; the expected value is SHOW.
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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