Savepoint
Savepoints are used to save and restore custom version data.
Savepoints provided by Hudi can save different commits so that the cleaner program does not delete them. You can use rollback to restore them later.
Use spark-sql to manage savepoints.
Example:
- Creating a savepoint
call create_savepoints('hudi_test1', '20220908155421949');
- Viewing all existing savepoints
call show_savepoints(table =>'hudi_test1');
- Rolling back a savepoint
call rollback_savepoints('hudi_test1', '20220908155421949');
![](https://support.huaweicloud.com/intl/en-us/cmpntguide-lts-mrs/public_sys-resources/note_3.0-en-us.png)
The savepoint rollback command is the same as the commit rollback commands. Both must be rolled back from the latest instant one by one.
MRS 3.1.2 version: MOR tables do not support savepoints.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot