You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/23 04:52:46 UTC

[GitHub] [iceberg] sririshindra opened a new pull request, #5616: Spark: Remove backup table after a successful MigrateTable action.

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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org


[GitHub] [iceberg] sririshindra closed pull request #5616: Spark: Remove backup table after a successful MigrateTable action.

Posted by GitBox <gi...@apache.org>.
sririshindra closed pull request #5616: Spark: Remove backup table after a successful MigrateTable action.
URL: https://github.com/apache/iceberg/pull/5616


-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org