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

   ### What problem does this PR solve?
   
   Problem Summary: CREATE FUNCTION added the new function to the catalog and 
wrote the edit log before registering the function in Nereids. If Nereids 
registration failed, rollback removed the whole overload list for that function 
name, so a failed overload creation could delete existing overloads. This 
change registers the function in Nereids before journaling it and rolls back 
only the just-created overload when registration fails.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test:
       - Unit Test: ./run-fe-ut.sh --run 
org.apache.doris.catalog.CreateFunctionTest
       - Regression test: ./run-regression-test.sh --run -d fault_injection_p0 
-s test_create_function_rollback (local config selected the suite but skipped 
docker body because excludeDockerTest=true)
   - Behavior changed: Yes. Failed CREATE FUNCTION Nereids registration no 
longer journals the failed function or removes existing overloads.
   - Does this need documentation: No


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