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 |
| savepoint_Time | Timestamp indicating when a savepoint was created | Yes |
Example
call create_savepoint('hudi_test1', '20220908155421949');
call show_savepoint(table =>'hudi_test1');
call rollback_savepoint('hudi_test1', '20220908155525378'); 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.
Response
You can view query results on the client.
What is your overall rating for this page?
Thank 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