sririshindra opened a new pull request, #5616:
URL: https://github.com/apache/iceberg/pull/5616

   Once the MigrateTable action is called, a backup table is created. The 
backup table is used to restore the original table in case the MigrateTable 
action fails. This restoration is done by renaming the backup table to the 
original table. Therefore if the migrate operation fails there is no backup 
table lying around in the catalog. However, if the migration goes through 
successfully, the backup table is not cleaned up leaving the user to find a new 
unknown table in their catalog. 
   
   This PR cleans up the backup table after the migrate table action succeeds.
   
   I tested this manually and I also added additional assertions to the 
existing unit tests to verify that the backup table is cleaned up properly. 


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