doc-exports/docs/dws/tool/DWS_DS_78.html
Lu, Huayi 346ac31da9 DWS TG 8.1.3.200 VERSION
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2023-08-28 09:20:17 +00:00

401 lines
49 KiB
HTML

<a name="EN-US_TOPIC_0000001233922163"></a><a name="EN-US_TOPIC_0000001233922163"></a>
<h1 class="topictitle1">Overview</h1>
<div id="body1584526252526"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11190360145945">Partitioning refers to splitting what is logically one large table into smaller physical pieces based on specific schemes. The table based on the logic is called a partitioned table, and a physical piece is called a partition. Data is stored on these smaller physical pieces, namely, partitions, instead of the larger logical partitioned table.</p>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p46361647">Follow the steps below to define a table in your database:</p>
<ol id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol18669101654716"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li8669816134711"><span>In the <strong id="EN-US_TOPIC_0000001233922163__b165078451193245">Object Browser</strong> pane, right-click <strong id="EN-US_TOPIC_0000001233922163__b30982639993245">Regular Tables</strong>, and choose <strong id="EN-US_TOPIC_0000001233922163__b151403504393245">Create Partition Table</strong>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li120213874716"><span>Define basic table information, such as the table name and table type. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section13466165012317">Providing Basic Information</a>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li0264194144711"><span>Define column information, such as the column name, data type schema, data type, and column constraint. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3109182003214">Defining a Column</a>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li92646410479"><span>Select the data distribution information for the table. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section175791628113519">Change Order of Partition</a>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li1726524119471"><span>Define column constraints for different constraint types. Constraint types include <strong id="EN-US_TOPIC_0000001233922163__b160047166893245">PRIMARY KEY</strong>, <strong id="EN-US_TOPIC_0000001233922163__b81427281793245">UNIQUE</strong>, and <strong id="EN-US_TOPIC_0000001233922163__b92670053793245">CHECK</strong>. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section820017103416">Defining Table Constraints</a>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li3268194114472"><span>Define table index information, such as the index name and access mode. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section17537195584514">Defining an Index</a>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li115372190483"><span>Define the partition information for the table such as partition name, partition column, partition value and so on. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section16127182563613">Defining a Partition</a>.</span><p><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p18348135223415">On the <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b15863194418346">SQL Preview</strong> tab, you can check the automatically generated SQL query. For details, see <a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1221111211255">Checking the SQL Preview</a>.</p>
</p></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li099513711562"><span>To add comments to <strong id="EN-US_TOPIC_0000001233922163__b592491810109">Column</strong> in the <strong id="EN-US_TOPIC_0000001233922163__b892481841011">Create Partition Table</strong> dialog box, add column information in <strong id="EN-US_TOPIC_0000001233922163__b792518182101">Description of Column (Max 5000 chars)</strong> text box and click <strong id="EN-US_TOPIC_0000001233922163__b2092561861019">Add</strong>.</span></li></ol>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section13466165012317"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section13466165012317"></a><a name="en-us_topic_0185264910_section13466165012317"></a><h4 class="sectiontitle">Providing Basic Information</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5099437">Provide the following information to create a table:</p>
</div>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5948481411410">For details, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section1344143101920">Providing Basic Information</a>.</p>
<ul id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ul23727150114156"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li41663505114156">Table Name</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li3382644211436">Schema</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li55514872114222">Options</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li54249909114231">Description of Table</li></ul>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p4245635114118">Perform the following steps to configure other parameters:</p>
<ol id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol11307013535"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li1430606538"><span>Select a table storage mode from the <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b747614421617">Table Orientation</strong> drop-down list.</span><p><div class="note" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_note1992219148539"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p692281418532">If table orientation is selected as ORC, then an HDFS Partitioned table is created.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li369118625314"><span>Enter the ORC version number in the <strong id="EN-US_TOPIC_0000001233922163__b555618115521">ORC Version</strong> field. This is applicable only for HDFS Partitioned table.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li2035412397536"><span>After providing the general information about the table, click <strong id="EN-US_TOPIC_0000001233922163__b14334246205215">Next</strong> to define the columns information for the table.</span><p><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5428217135418">The following table describes the parameters of partitioned tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table1019216532540" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row18192125345414"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.8.3.2.2.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p10192115315412"><strong id="EN-US_TOPIC_0000001233922163__b96719502312">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.8.3.2.2.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1519213539543"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b01928532544">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.8.3.2.2.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11929532545"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b201924536545">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.8.3.2.2.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p3192115310542"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b111921453155410">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row81932539544"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p719313537544">Table Type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p101932053165420">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p167002613537">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p107153655317">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1119345375412"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p6193195317545">If Not Exists</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2193205319546"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p119521335105115"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p89718355513"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row19193105314540"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1319319531545">With OIDS</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p115791906530">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p159490175312">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p7605130185313">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1219385395415"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11193145314549">Fill Factor</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p14193165385420"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p842920325319">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.8.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p124441237536">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li></ol>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3109182003214"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3109182003214"></a><a name="en-us_topic_0185264910_section3109182003214"></a><h4 class="sectiontitle">Defining a Column</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5964205715374">For details, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section546323424">Defining a Column</a>.</p>
</div>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p37165655153858">The following table describes the parameters of partitioned tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table47876818123915" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row7578134123915"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.11.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p21262309154414"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b57143055154414">Field</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.080000000000002%" id="mcps1.3.11.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p65184781154414"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b49792122154414">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.92%" id="mcps1.3.11.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p6630094154414"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b59670846154414">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.11.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1500353154414"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b13503182154414">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row2168908123915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p41463842123915">Array Dimensions</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p3308164820512"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p17419101215315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p54311129534">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row26289745123915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p49094575123915">Data Type</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p53211848105112"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p24421512125316">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p245351245316">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row23226074123915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2263817123915">NOT NULL</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p33351048165117"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11342165112518"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p935595118511"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row21415216123915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p56910922123915">Default</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1534914819516"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p12369551195118"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p133830518517"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row13070010134956"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p52037865134956">UNIQUE</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p33621648105117"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1916161875318">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1117691845316">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1995795513581"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p598163613581">CHECK</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.11.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p16374124875110"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.11.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p71871418155315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.11.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2020091817533">x</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section175791628113519"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section175791628113519"></a><a name="en-us_topic_0185264910_section175791628113519"></a><h4 class="sectiontitle">Change Order of Partition</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1446215464187">You can change the order of partition as required in the table. To change the order, select the required partition and click <strong id="EN-US_TOPIC_0000001233922163__b388045116574">Up</strong> or <strong id="EN-US_TOPIC_0000001233922163__b114591754125720">Down</strong>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1221111211255"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1221111211255"></a><a name="en-us_topic_0185264910_section1221111211255"></a><h4 class="sectiontitle">Checking the SQL Preview</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p882411493251">For details, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section7772325171112">SQL Preview</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3311330142512"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3311330142512"></a><a name="en-us_topic_0185264910_section3311330142512"></a><h4 class="sectiontitle">Editing a Partition</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p165381657192819">Perform the following steps to edit a partition:</p>
<ol id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol172161536183411"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li8216203653417"><span>Select a partition.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li11710144510345"><span>Click <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1681645113346">Edit</strong>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li84461257203415"><span>Edit partition configurations as needed and click <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b10643373514">Update</strong> to save the changes.</span><p><div class="note" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_note22662146350"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1566332273518">You must complete the edit operation and save the changes to continue with other operations.</p>
</div></div>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1150418339359"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1150418339359"></a><a name="en-us_topic_0185264910_section1150418339359"></a><h4 class="sectiontitle">Deleting a Partition</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p197953496351">Perform the following steps to delete a partition:</p>
<ol id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol1224134316356"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li16224124363512"><span>Select a partition.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li17815145933513"><span>Click <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b764718410361">Delete</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section16127182563613"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section16127182563613"></a><a name="en-us_topic_0185264910_section16127182563613"></a><h4 class="sectiontitle">Defining a Partition</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p186777340362">The following table describes the parameters of partitioned tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table18851141814378" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1785221863717"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.16.3.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p28521718113711"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b333561563812">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.16.3.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5852618163714"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1324564819382">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.560000000000002%" id="mcps1.3.16.3.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11852181883717"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1759018494387">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.44%" id="mcps1.3.16.3.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p10852818183716"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b959345611386">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row18852161812377"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p15852171812375">Partition Type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p5852191813372">By Range</p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.16.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p16852918203714">By Range</p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.16.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p18852151803717">By Value</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row2852141812379"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p138521018163719">Partition Name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p175360085214"></p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.16.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p55461409528"></p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.16.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p13522323175313">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row128521818163712"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p285201816374">Partition Value</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.16.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p35581504522"></p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.16.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p9568308522"></p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.16.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1053519239538">x</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p7561134815409">Perform the following steps to define a table partition:</p>
<ol id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol172802033154114"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li1828053334115"><span>If <strong id="EN-US_TOPIC_0000001233922163__b165542362093245">Row</strong> or <strong id="EN-US_TOPIC_0000001233922163__b164859591693245">Column</strong> is selected for <strong id="EN-US_TOPIC_0000001233922163__b147078260293245">Table Orientation</strong> on the <strong id="EN-US_TOPIC_0000001233922163__b192727457993245">General</strong> tab, <strong id="EN-US_TOPIC_0000001233922163__b131469809493245">By Range</strong> will be displayed in the <strong id="EN-US_TOPIC_0000001233922163__b82205609093245">Partition Type</strong> area. If <strong id="EN-US_TOPIC_0000001233922163__b95756526693245">ORC</strong> is selected for <strong id="EN-US_TOPIC_0000001233922163__b22862725493245">Table Orientation</strong> on the <strong id="EN-US_TOPIC_0000001233922163__b186441312493245">General</strong> tab, <strong id="EN-US_TOPIC_0000001233922163__b159585810393245">By Value</strong> will be displayed in the <strong id="EN-US_TOPIC_0000001233922163__b209533539193245">Partition Type</strong> area.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li880117484410"><span>In the <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b178815552410">Available Column</strong> area, select a column and click <span><img id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_image1188655124119" src="figure/en-us_image_0000001188681134.jpg"></span>.</span><p><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p586017604219">The column will be moved to the <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b6860196194215">Partition Column</strong> area.</p>
<div class="note" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_note1776011912427"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ul11726750104215"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li8726195014424">If <strong id="EN-US_TOPIC_0000001233922163__b108876660293245">Table Orientation</strong> is set to <strong id="EN-US_TOPIC_0000001233922163__b185173285893245">Row</strong> or <strong id="EN-US_TOPIC_0000001233922163__b150005775193245">Column</strong>, only one column can be selected for partitioning.</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li052642194314">If <strong id="EN-US_TOPIC_0000001233922163__b89612159993245">Table Orientation</strong> is set to <strong id="EN-US_TOPIC_0000001233922163__b125161062193245">ORC</strong>, up to four columns can be selected for partitioning.</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li116321621114314">A maximum of four columns can be selected to define partitions.</li></ul>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li1850520194218"><span>Enter a partition name.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li1574015219434"><span>Click <span><img id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_image127133582437" src="figure/en-us_image_0000001234042251.jpg"></span> next to <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b2024215459488">Partition Value</strong>.</span><p><ol type="a" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_ol624011216497"><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li17773715494">Enter the value by which you want to partition the table in <strong id="EN-US_TOPIC_0000001233922163__b0909154918141">Value</strong> column.</li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li16241201244912">Click <strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b57734164912">OK</strong>.</li></ol>
</p></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li97888184324"><span>After you enter all information for partition, click <strong id="EN-US_TOPIC_0000001233922163__b133402881718">Add</strong>.</span></li><li id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_li135191420377"><span>After defining all partitions, click <strong id="EN-US_TOPIC_0000001233922163__b1873913388175">Next</strong>.</span></li></ol>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p10572428173815">You can perform the following operations on the partitions of a row-or column-partitioned table, but not on ORC partitioned tables:</p>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2068312414393"><a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section1150418339359">Deleting a Partition</a></p>
<p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1257615536395"><a href="#EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section3311330142512">Editing a Partition</a></p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section17537195584514"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section17537195584514"></a><a name="en-us_topic_0185264910_section17537195584514"></a><h4 class="sectiontitle">Defining an Index</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p095311319341">For details about index definitions, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section082554911302">Defining an Index</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table574120575100" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1574225714103"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.17.3.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11664898113"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b266416951119">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.17.3.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p9665119121120"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b866529181118">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.17.3.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p36651919110"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b56651791116">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.17.3.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p0665199181118"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b18665994119">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row974385791011"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p266612951119">Unique Indexes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1549812705218"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p292413885315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p12597153411539">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1474385791014"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p206669951120">btree</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11511672526"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p14474720205217"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2608234115320">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1574325710108"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p18667898113">gin</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1052397185216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1648532065219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p15621113485312">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row12743135741018"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p166829141116">gist</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p153777115219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p749772018522"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p263343465320">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row3743115713103"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p11669189111120">hash</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p4549197185216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p0511132095215"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p176465346539">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row67441657171010"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p9669898116">psort</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p25626705210"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p9523720165217"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p36571234195314">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row4748105714105"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1670159201114">spgist</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p95736719523"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p186707915118"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p20670153417535">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row117496573106"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p967115951113">Fill Factor</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p67371211195219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p161163017531">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1869514340531">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row15750257151019"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p156725951110">User Defined Expression</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p17518110522"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p772173010536">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p137061134115319">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1275075781017"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p13672691118">Partial Index</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1576661118528"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p68533065315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.17.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p13718173420536">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section820017103416"><a name="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section820017103416"></a><a name="en-us_topic_0185264910_section820017103416"></a><h4 class="sectiontitle">Defining Table Constraints</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p191031523184117">For details about how to define table constraints, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section440110125279">Defining Table Constraints</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table214512591373" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row614815591775"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.18.3.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p41361151581"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1313618516819">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.18.3.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p6136351181"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b161361350819">Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.95%" id="mcps1.3.18.3.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p613645986"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b12136852815">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.05%" id="mcps1.3.18.3.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p181361251589"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1313645988">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row131486591672"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p141369513810">Check</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p57179151525"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.18.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1356094518532">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.18.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1157294512536">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row814985911712"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p81361556814">Unique</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p7729215155210"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.18.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p2058484515537">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.18.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1960034515310">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row2149185915720"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p181373510814">Primary Key</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.18.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p874415151529"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.18.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p17612104515538">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.18.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1862314459532">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_section183471438456"><h4 class="sectiontitle">Configuring Data Distribution</h4><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p387191110459">For details about how to select a distribution type, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001234200603__en-us_topic_0185264992_section728115301265">Selecting Data Distribution</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_table3771123317918" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row37737336916"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.19.3.2.5.1.1"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1775254716918"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b16752947897">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.19.3.2.5.1.2"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p20752647598"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1975234718914">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.19.3.2.5.1.3"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1975211471393"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1575216471793">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.19.3.2.5.1.4"><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p77527471699"><strong id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_b1875224715918">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1377319333912"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p47523479913">DEFAULT DISTRIBUTION</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p17137123085216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1150163055211"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p49131849195312">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row15773433599"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p775310471993">Hash</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p41631530125214"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p217510306520"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p54461733115218"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_row1777443312915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p1875313479914">Replication</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p181881530105214"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p4200133045219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.19.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001233922163__en-us_topic_0185264910_p18754047594">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_77.html">Creating Partition Table</a></div>
</div>
</div>