forked from docs/doc-exports
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>
45 lines
5.0 KiB
HTML
45 lines
5.0 KiB
HTML
<a name="mrs_01_24276"></a><a name="mrs_01_24276"></a>
|
|
|
|
<h1 class="topictitle1">DELETE Hudi Data</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_se3b246829d4149768297e4d1c472eeab"><h4 class="sectiontitle">Function</h4><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_a8adcf45335aa490b90f435984dbe1cbe">This command is used to delete records from a Hudi table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_s1671eb7942fc4963bdf01350bb3fa47f"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_24276__en-us_topic_0000001173630810_p418465132518"><strong id="mrs_01_24276__en-us_topic_0000001173630810_b969065118581">DELETE from</strong> <em id="mrs_01_24276__en-us_topic_0000001173630810_i1044065415812">tableIdentifier [ WHERE boolExpression]</em></p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_se8c89a51ff704cbf8568c24dab46efb1"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_t4fe72c117c47406da504174f64aa1549" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_r88ce278ab29947e9a817bb019e1322ef"><th align="left" class="cellrowborder" valign="top" width="23.68%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_a16956298285c4692affaac5242b12032">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="76.32%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_aaab8b5e3259f49988eabaa067b4aae3a">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_r5bb5a24bf8e5448e8ff37c26fe720684"><td class="cellrowborder" valign="top" width="23.68%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_a704fefb2f0924b5aa5fe933b5dedadd5">tableIdentifier</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="76.32%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_a45f6c012ef244869bc9073b46cbeb907">Name of the Hudi table to delete records.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_24276__en-us_topic_0000001173630810_row18490572326"><td class="cellrowborder" valign="top" width="23.68%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_24276__en-us_topic_0000001173630810_p7491157153212">boolExpression</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="76.32%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_24276__en-us_topic_0000001173630810_p64919713324">Filtering conditions for deleting records.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_sf2d9a80e0de7460491ccd7ee39a7aa01"><h4 class="sectiontitle">Examples</h4><ul id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_ufb19c81351334a25b726a85292cb3e40"><li id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_lc13110809af04b36ad53274a35007628">Example 1:<pre class="screen" id="mrs_01_24276__en-us_topic_0000001173630810_screen18061475597">delete from h0 where column1 = 'country';</pre>
|
|
</li><li id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_l154f85221d0b4004ac9615e9cfe2bcf9">Example 2:<pre class="screen" id="mrs_01_24276__en-us_topic_0000001173630810_screen1442671365916">delete from h0 where column1 IN ('country1', 'country2');</pre>
|
|
</li><li id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_lf7278378393f48cc952a2f478817151c">Example 3:<pre class="screen" id="mrs_01_24276__en-us_topic_0000001173630810_screen1217118198594">delete from h0 where column1 IN (select column11 from sourceTable2);</pre>
|
|
</li><li id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_leee0e228547d4f3f82b4857d4f669e84">Example 4:<pre class="screen" id="mrs_01_24276__en-us_topic_0000001173630810_screen9798182485919">delete from h0 where column1 IN (select column11 from sourceTable2 where column1 = 'USA');</pre>
|
|
</li><li id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_l8025e9664b134c37904731a9e45ce108">Example 5:<pre class="screen" id="mrs_01_24276__en-us_topic_0000001173630810_screen137943175912">delete from h0;</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_s823f2687a8cc4162854ad8fcaa12a93a"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_24276__en-us_topic_0000001173630810_en-us_topic_0265792799_a19642f6cad0c4884a78f569abd795022">You can view the result in driver logs or on the client.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_24272.html">Hudi DML</a></div>
|
|
</div>
|
|
</div>
|
|
|