htyoung opened a new issue, #27474: URL: https://github.com/apache/doris/issues/27474
### 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 - 1.2.7.1 - 2.0.x ### What's Wrong? - CreateTableStmt parsedSql generated by function toSql() put comment in wrong place <img width="1227" alt="image" src="https://github.com/apache/doris/assets/9734567/1b0f8288-786a-4bc9-8429-a2bfdb6d8d90"> - CreateTableStmt engineName will be upperCase,when user does't have Create_priv and engine in CreateTable DDL String is upperCase <img width="1955" alt="image" src="https://github.com/apache/doris/assets/9734567/2b960afc-fb7a-46bb-b550-a4d873b1ea8a"> ### What You Expected? - CreateTableStmt toSql get correct dll - engineName will ignore case ### How to Reproduce? 1. In AuditPlugin, if user has no create_priv, the AuditEvent.stmt will get wrong parsed sql becauseof comment in wrong place; 2. In AuditPlugin, if user has no create_priv and user's create table ddl's ENGINE is OLAP, engineName in the instance of CreateTableStmt will be upperCase; ### Anything Else? _No response_ ### Are you willing to submit PR? - [X] 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]
