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

42 lines
2.8 KiB
HTML

<a name="mrs_01_24803"></a><a name="mrs_01_24803"></a>
<h1 class="topictitle1">ROLL_BACK</h1>
<div id="body0000001585034881"><div class="section" id="mrs_01_24803__section143972345248"><h4 class="sectiontitle">Function</h4><p id="mrs_01_24803__p19553184312246">Rolls back a specified commit.</p>
</div>
<div class="section" id="mrs_01_24803__section27787498240"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_24803__p119041357134413"><strong id="mrs_01_24803__b1811742642913">call rollback_to_instant(table =&gt; '[table_name]', instant_time =&gt; '[instant]');</strong></p>
</div>
<div class="section" id="mrs_01_24803__section96316555241"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24803__table213494418406" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24803__row121345446404"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_24803__p17134184474014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_24803__p4134174415408">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_24803__row20134114424016"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_24803__p813474424017">table_name</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_24803__p1513417441406">Mandatory. Name of the Hudi table to be rolled back.</p>
</td>
</tr>
<tr id="mrs_01_24803__row1613417445409"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_24803__p313410443408">instant</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_24803__p1637119342455">Mandatory. Commit instant timestamp of the Hudi table to be rolled back.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="mrs_01_24803__section16795334255"><h4 class="sectiontitle">Example</h4><pre class="screen" id="mrs_01_24803__screen17680191075716">call rollback_to_instant(table =&gt; 'h1', instant_time=&gt;'20220915113127525');</pre>
</div>
<div class="section" id="mrs_01_24803__section1142451142514"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_24803__p1791516173253">Only the latest commit timestamps can be rolled back in sequence.</p>
</div>
<div class="section" id="mrs_01_24803__section7720121912517"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_24803__p4696926125913">You can view command execution results in the driver log or on the client.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24739.html">CALL COMMAND</a></div>
</div>
</div>