SAVE_POINT
Function
Manages savepoints of Hudi tables.
Syntax
Parameter Description
Parameter |
Description |
Mandatory |
---|---|---|
table_name |
Name of the table to be queried. The value can be in the database.tablename format. |
Yes |
commit_Time |
Specified creation or rollback timestamp |
Yes |
user |
User who creates a savepoint |
No |
comments |
Description of the savepoint |
No |
Example
call create_savepoints('hudi_test1', '20220908155421949'); call show_savepoints(table =>'hudi_test1'); call rollback_savepoints('hudi_test1', '20220908155421949');
Precautions
- MOR tables do not support savepoints.
- The commit-related files before the latest savepoint are not cleaned.
- If there are multiple savepoints, perform the rollback from the latest savepoint. The logic is as follows: roll back the latest savepoint; delete the savepoint; and roll back the next savepoint.
System Response
You can view query results on the client.
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