Yang, Tong 48706b7552 MRS COMP-LTS 320-lts.1 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-04-12 12:51:10 +00:00

2.8 KiB

ROLL_BACK

Function

Rolls back a specified commit.

Syntax

call rollback_to_instant(table => '[table_name]', instant_time => '[instant]');

Parameter Description

Table 1 Parameters

Parameter

Description

table_name

Mandatory. Name of the Hudi table to be rolled back.

instant

Mandatory. Commit instant timestamp of the Hudi table to be rolled back.

Example

call rollback_to_instant(table => 'h1', instant_time=>'20220915113127525');

Precautions

Only the latest commit timestamps can be rolled back in sequence.

System Response

You can view command execution results in the driver log or on the client.