morningman opened a new pull request, #51620:
URL: https://github.com/apache/doris/pull/51620

   ### What problem does this PR solve?
   
   ```
   2025-05-13 04:56:37,695 WARN (mysql-nio-pool-0|120) 
[AuditLogHelper.logAuditLog():77] Failed to write audit log.
   java.lang.NullPointerException: Cannot invoke 
"String.equalsIgnoreCase(String)" because the return value of 
"org.apache.doris.nereids.trees.plans.commands.info.CreateTableInfo.getEngineName()"
 is null
   at 
org.apache.doris.nereids.trees.plans.commands.CreateTableCommand.needAuditEncryption(CreateTableCommand.java:247)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.trees.plans.commands.NeedAuditEncryption.geneEncryptionSQL(NeedAuditEncryption.java:36)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.AuditLogHelper.logAuditLogImpl(AuditLogHelper.java:280) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at org.apache.doris.qe.AuditLogHelper.logAuditLog(AuditLogHelper.java:75) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.ConnectProcessor.auditAfterExec(ConnectProcessor.java:230) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.ConnectProcessor.executeQuery(ConnectProcessor.java:377) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.ConnectProcessor.handleQuery(ConnectProcessor.java:249) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.MysqlConnectProcessor.handleQuery(MysqlConnectProcessor.java:233)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.MysqlConnectProcessor.dispatch(MysqlConnectProcessor.java:261)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.qe.MysqlConnectProcessor.processOnce(MysqlConnectProcessor.java:444)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.mysql.ReadListener.lambda$handleEvent$0(ReadListener.java:52) 
~[doris-fe.jar:1.2-SNAPSHOT]
   at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 
~[?:?]
   at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 
~[?:?]
   at java.lang.Thread.run(Thread.java:833) ~[?:?]
   ```
   
   ```
   java.lang.NullPointerException: Cannot read field "start" because 
"properties" is null
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilderForEncryption.visitTableValuedFunction(LogicalPlanBuilderForEncryption.java:124)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilderForEncryption.visitTableValuedFunction(LogicalPlanBuilderForEncryption.java:36)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.DorisParser$TableValuedFunctionContext.accept(DorisParser.java:41762)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilder.plan(LogicalPlanBuilder.java:3226)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilder.visitRelation(LogicalPlanBuilder.java:3142)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilder.withRelations(LogicalPlanBuilder.java:3977)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   at 
org.apache.doris.nereids.parser.LogicalPlanBuilder.lambda$visitRelations$39(LogicalPlanBuilder.java:3152)
 ~[doris-fe.jar:1.2-SNAPSHOT]
   ```
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [ ] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [ ] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [ ] No.
       - [ ] Yes. <!-- Add document PR link here. eg: 
https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should 
merge into -->
   
   


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

Reply via email to