forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
47 lines
4.9 KiB
HTML
47 lines
4.9 KiB
HTML
<a name="mrs_01_1435"></a><a name="mrs_01_1435"></a>
|
|
|
|
<h1 class="topictitle1">REGISTER INDEX TABLE</h1>
|
|
<div id="body8662426"><div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_sd8e4ffaa71fc4034a9e2882d7c664984"><h4 class="sectiontitle">Function</h4><p id="mrs_01_1435__en-us_topic_0000001219149093_a5196137f907243259747ce96c5c8b405">This command is used to register an index table with the primary table.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_s62a70620dabc4e4eb96778f71c580e7f"><h4 class="sectiontitle">Syntax</h4><p id="mrs_01_1435__en-us_topic_0000001219149093_a876a375878f34475b81778d30639af9e"><b><span class="cmdname" id="mrs_01_1435__en-us_topic_0000001219149093_cmdname163911923016">REGISTER INDEX TABLE</span></b> <i><span class="varname" id="mrs_01_1435__en-us_topic_0000001219149093_varname13194898613">indextable_name</span></i> ON <i><span class="varname" id="mrs_01_1435__en-us_topic_0000001219149093_varname15994132611617">db_name.maintable_name</span></i>;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_sd00174c8f3e8417ea0037e034192d094"><h4 class="sectiontitle">Parameter Description</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1435__en-us_topic_0000001219149093_td330633f0f1a4e839893ee60997ac66b" frame="border" border="1" rules="all"><caption><b>Table 1 </b>REFRESH INDEX TABLE parameters</caption><thead align="left"><tr id="mrs_01_1435__en-us_topic_0000001219149093_r520a27852cb34cb7928beb87ae57c383"><th align="left" class="cellrowborder" valign="top" width="30.91%" id="mcps1.3.3.2.2.3.1.1"><p id="mrs_01_1435__en-us_topic_0000001219149093_a2d7b4ba625ae4e73b3de582488dc2354">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.08999999999999%" id="mcps1.3.3.2.2.3.1.2"><p id="mrs_01_1435__en-us_topic_0000001219149093_a13d327fe75f04ee5aa721ffef31b1687">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1435__en-us_topic_0000001219149093_r29602039075d4ee29712ba3776de3028"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1435__en-us_topic_0000001219149093_aa52e22f2600e4f7cb864be20ae67a97f">db_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1435__en-us_topic_0000001219149093_a75965636f150489ab9dbf4e657309412">Database name. If this parameter is not specified, the current database is selected.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1435__en-us_topic_0000001219149093_re6d39247ca1244249d7687ea10dcd0c8"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1435__en-us_topic_0000001219149093_a94889b6d62534a839457c1f3f6ecc741">indextable_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1435__en-us_topic_0000001219149093_a9cc3bd83b1044286b7a79068ee33df1e">Index table name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1435__en-us_topic_0000001219149093_row12412581684"><td class="cellrowborder" valign="top" width="30.91%" headers="mcps1.3.3.2.2.3.1.1 "><p id="mrs_01_1435__en-us_topic_0000001219149093_p154112580813">maintable_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.08999999999999%" headers="mcps1.3.3.2.2.3.1.2 "><p id="mrs_01_1435__en-us_topic_0000001219149093_p17416589816">Primary table name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_sa2d037069b6d4ccba70108f63dcd4897"><h4 class="sectiontitle">Precautions</h4><p id="mrs_01_1435__en-us_topic_0000001219149093_p1657072114332">Before running this command, run <strong id="mrs_01_1435__en-us_topic_0000001219149093_b13914357141110">REFRESH TABLE</strong> to register the primary table and secondary index table with the Hive metastore.</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_s02de0ffe591b41d9b8435c03f68288f4"><h4 class="sectiontitle">Examples</h4><p id="mrs_01_1435__en-us_topic_0000001219149093_p177320369216"><b><span class="cmdname" id="mrs_01_1435__en-us_topic_0000001219149093_cmdname155157187319">REGISTER INDEX TABLE</span></b> <em id="mrs_01_1435__en-us_topic_0000001219149093_i75773468158">productNameIndexTable </em>ON <em id="mrs_01_1435__en-us_topic_0000001219149093_i5577546151511">productdb</em>.<em id="mrs_01_1435__en-us_topic_0000001219149093_i15397437923">productSalesTable</em>;</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_1435__en-us_topic_0000001219149093_sc1e4d30b28cb4317b1b12496c7d2b1d6"><h4 class="sectiontitle">System Response</h4><p id="mrs_01_1435__en-us_topic_0000001219149093_a1d061e440570489199ac5d773bb2c76f">By running this command, the index table will be registered to the primary table.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1424.html">DDL</a></div>
|
|
</div>
|
|
</div>
|
|
|