xunliu commented on PR #5751:
URL: https://github.com/apache/gravitino/pull/5751#issuecomment-2516040254

   > How to handle the case if we rename a metalake?
   
   @jerqi I already add rename metalake operation in the `onMetadataUpdated`.
   
   ```
     public Boolean onMetadataUpdated(MetadataObjectChange... changes) throws 
RuntimeException {
       for (MetadataObjectChange change : changes) {
         if (change instanceof MetadataObjectChange.RenameMetadataObject) {
           ....
           if (metadataObject.type() == MetadataObject.Type.METALAKE
               && newMetadataObject.type() == MetadataObject.Type.METALAKE) {
             // Modify the metalake name
             this.metalake = newMetadataObject.name();
           }
   ```


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

Reply via email to