Files
doc-exports/docs/dws/tool/DWS_DS_018.html
luhuayi a5e3903f6b DWS TG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-04-23 13:53:01 +00:00

407 lines
48 KiB
HTML

<a name="EN-US_TOPIC_0000001813598940"></a><a name="EN-US_TOPIC_0000001813598940"></a>
<h1 class="topictitle1">Creating a Partitioned Table</h1>
<div id="body1584526252526"><p id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_p46361647">Follow the steps below to define a table in your database:</p>
<ol id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_ol18669101654716"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li8669816134711"><span>In the <strong id="EN-US_TOPIC_0000001813598940__b165078451193245">Object Browser</strong> pane, right-click <strong id="EN-US_TOPIC_0000001813598940__b30982639993245">Regular Tables</strong>, and choose <strong id="EN-US_TOPIC_0000001813598940__b151403504393245">Create Partition Table</strong>.</span></li><li id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_section13466165012317">Providing Basic Information</a>.</span></li><li id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_section3109182003214">Defining a Column</a>.</span></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li92646410479"><span>Select the data distribution information for the table. For details, see <a href="#EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section183471438456">Configuring Data Distribution</a>.</span></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li1726524119471"><span>Define column constraints for different constraint types. Constraint types include <strong id="EN-US_TOPIC_0000001813598940__b160047166893245">PRIMARY KEY</strong>, <strong id="EN-US_TOPIC_0000001813598940__b81427281793245">UNIQUE</strong>, and <strong id="EN-US_TOPIC_0000001813598940__b92670053793245">CHECK</strong>. For details, see <a href="#EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section820017103416">Defining Table Constraints</a>.</span></li><li id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_section17537195584514">Defining an Index</a>.</span></li><li id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_section16127182563613">Defining a Partition</a>.</span><p><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p18348135223415">On the <strong id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_section1221111211255">SQL Preview</a>.</p>
</p></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li099513711562"><span>To add comments to <strong id="EN-US_TOPIC_0000001813598940__b140526488393245">Column</strong> in the <strong id="EN-US_TOPIC_0000001813598940__b91319589893245">Create Partition Table</strong> dialog box, add column information in <strong id="EN-US_TOPIC_0000001813598940__b45452608393245">Description of Column (Max 5000 chars)</strong> text box and click <strong id="EN-US_TOPIC_0000001813598940__b203414373893245">Add</strong>.</span></li></ol>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section13466165012317"><a name="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_p5099437">If you create a table in a schema, the current schema will be used as the schema of the table. Perform the following steps to create a partitioned table:</p>
</div>
<ol id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_ol11307013535"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li1430606538"><span>Select a table storage mode from the <strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b747614421617">Table Orientation</strong> drop-down list.</span><p><div class="note" id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_p692281418532">If table orientation is selected as ORC, then an HDFS Partitioned table is created. Enter the ORC version number in <strong id="EN-US_TOPIC_0000001813598940__b768755918019">ORC Version</strong>.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li2035412397536"><span>After providing the general information about the table, click <strong id="EN-US_TOPIC_0000001813598940__b14334246205215">Next</strong> to define the columns information for the table.</span><p><p id="EN-US_TOPIC_0000001813598940__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_0000001813598940__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_0000001813598940__en-us_topic_0185264910_row18192125345414"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.2.2.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p10192115315412"><strong id="EN-US_TOPIC_0000001813598940__b96719502312">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.2.2.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1519213539543"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b01928532544">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.2.2.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11929532545"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b201924536545">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.2.2.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p3192115310542"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b111921453155410">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row81932539544"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p719313537544">Table Type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p101932053165420">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p167002613537">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p107153655317">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1119345375412"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p6193195317545">If Not Exists</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p2193205319546"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p119521335105115"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p89718355513"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row19193105314540"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1319319531545">With OIDS</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p115791906530">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p159490175312">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p7605130185313">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1219385395415"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11193145314549">Fill Factor</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p14193165385420"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p842920325319">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p124441237536">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li></ol>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section3109182003214"><a name="EN-US_TOPIC_0000001813598940__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_0000001813598940__p278915378357">The following table describes the parameters of partitioned tables.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001813598940__table517094519355" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001813598940__row8171194513357"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.3.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__p3171114523514"><strong id="EN-US_TOPIC_0000001813598940__b1874096568">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.080000000000002%" id="mcps1.3.6.3.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__p1817164511358"><strong id="EN-US_TOPIC_0000001813598940__b2043236568">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.92%" id="mcps1.3.6.3.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__p1617110456352"><strong id="EN-US_TOPIC_0000001813598940__b1977300944">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.6.3.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__p17171124533513"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b13503182154414">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__row12171945163515"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p717124513517">Array Dimensions</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p1617194593514"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p8171545123518">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p1117254513353">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__row19172645133518"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p21726450357">Data Type</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p191721045183518"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p7172114563512">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p1617294573511">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__row13172645133514"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p11172154533519">NOT NULL</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p517244512352"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p1172745173516"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p17172745143520"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__row51721945183517"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p017284511359">Default</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p217294593515"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p21721745163517"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p81727457359"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__row717384593512"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p617384514359">UNIQUE</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p15173245153513"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p8173345143510">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p0173134512356">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__row3173445193516"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__p1817344513353">CHECK</p>
</td>
<td class="cellrowborder" valign="top" width="25.080000000000002%" headers="mcps1.3.6.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__p15173845193518"></p>
</td>
<td class="cellrowborder" valign="top" width="24.92%" headers="mcps1.3.6.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__p1317374583515">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.6.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__p21731745183511">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="EN-US_TOPIC_0000001813598940__p78331329163210">You can add, delete, and edit columns, and adjust the sequence of columns.</p>
<p id="EN-US_TOPIC_0000001813598940__p1282571063220">You can change the order of partitions in the table as required. To change the order, select the required partition and click <strong id="EN-US_TOPIC_0000001813598940__b44820221076">Up</strong> or <strong id="EN-US_TOPIC_0000001813598940__b1454452516713">Down</strong>.</p>
<p id="EN-US_TOPIC_0000001813598940__p8732104173614"><span><img id="EN-US_TOPIC_0000001813598940__image1339816516360" src="figure/en-us_image_0000001813599320.png" width="497.42" height="128.55780000000001" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0000001813598940__p206061321201712"></p>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section1221111211255"><a name="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section1221111211255"></a><a name="en-us_topic_0185264910_section1221111211255"></a><h4 class="sectiontitle">SQL Preview</h4><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_p17177639">Data Studio generates a DDL statement based on the inputs provided in <strong id="EN-US_TOPIC_0000001813598940__b665111191782">Create New table</strong> wizard.</p>
<p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_p20381027">You can only view, select, and copy the query. You cannot edit the query.</p>
<ul id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_ul49211517"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_li9266704">To select all queries, press <strong id="EN-US_TOPIC_0000001813598940__b8218089881347">Ctrl+A</strong> or right-click and select <strong id="EN-US_TOPIC_0000001813598940__b8155727981347">Select All</strong>.</li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_li44541364">To copy the selected query, press <strong id="EN-US_TOPIC_0000001813598940__b36829805281347">Ctrl+C</strong> or right-click and select <strong id="EN-US_TOPIC_0000001813598940__b27612659281347">Copy</strong>.</li></ul>
<p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_p26709911">Click <strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_b12761425105">Finish</strong> to create the table. On clicking the <strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264992_b11583123014016">Finish</strong> button, the generated query will be sent to the server. Any errors are displayed in the dialog box and status bar.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section16127182563613"><a name="EN-US_TOPIC_0000001813598940__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_0000001813598940__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_0000001813598940__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_0000001813598940__en-us_topic_0185264910_row1785221863717"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.12.3.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p28521718113711"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b333561563812">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.12.3.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p5852618163714"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1324564819382">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.560000000000002%" id="mcps1.3.12.3.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11852181883717"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1759018494387">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.44%" id="mcps1.3.12.3.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p10852818183716"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b959345611386">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row18852161812377"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p15852171812375">Partition Type</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p5852191813372">By Range</p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.12.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p16852918203714">By Range</p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.12.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p18852151803717">By Value</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row2852141812379"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p138521018163719">Partition Name</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p175360085214"></p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.12.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p55461409528"></p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.12.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p13522323175313">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row128521818163712"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p285201816374">Partition Value</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.12.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p35581504522"></p>
</td>
<td class="cellrowborder" valign="top" width="24.560000000000002%" headers="mcps1.3.12.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p9568308522"></p>
</td>
<td class="cellrowborder" valign="top" width="25.44%" headers="mcps1.3.12.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1053519239538">x</p>
</td>
</tr>
</tbody>
</table>
</div>
<ol id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_ol172802033154114"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li1828053334115"><span>If <strong id="EN-US_TOPIC_0000001813598940__b165542362093245">Row</strong> or <strong id="EN-US_TOPIC_0000001813598940__b164859591693245">Column</strong> is selected for <strong id="EN-US_TOPIC_0000001813598940__b147078260293245">Table Orientation</strong> on the <strong id="EN-US_TOPIC_0000001813598940__b192727457993245">General</strong> tab, <strong id="EN-US_TOPIC_0000001813598940__b131469809493245">By Range</strong> will be displayed in the <strong id="EN-US_TOPIC_0000001813598940__b82205609093245">Partition Type</strong> area. If <strong id="EN-US_TOPIC_0000001813598940__b95756526693245">ORC</strong> is selected for <strong id="EN-US_TOPIC_0000001813598940__b22862725493245">Table Orientation</strong> on the <strong id="EN-US_TOPIC_0000001813598940__b186441312493245">General</strong> tab, <strong id="EN-US_TOPIC_0000001813598940__b159585810393245">By Value</strong> will be displayed in the <strong id="EN-US_TOPIC_0000001813598940__b209533539193245">Partition Type</strong> area.</span></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li880117484410"><span>In the <strong id="EN-US_TOPIC_0000001813598940__b14853114136">Available Column</strong> area, select a column and click the Right Arrow button. The column will be moved to the <strong id="EN-US_TOPIC_0000001813598940__b137011731311">Partition Column</strong> area.</span><p><div class="note" id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_ul11726750104215"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li8726195014424">If <strong id="EN-US_TOPIC_0000001813598940__b108876660293245">Table Orientation</strong> is set to <strong id="EN-US_TOPIC_0000001813598940__b185173285893245">Row</strong> or <strong id="EN-US_TOPIC_0000001813598940__b150005775193245">Column</strong>, only one column can be selected for partitioning.</li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li052642194314">If <strong id="EN-US_TOPIC_0000001813598940__b89612159993245">Table Orientation</strong> is set to <strong id="EN-US_TOPIC_0000001813598940__b125161062193245">ORC</strong>, up to four columns can be selected for partitioning.</li><li id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_li1850520194218"><span>Enter a partition name.</span></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li1574015219434"><span>Click the <strong id="EN-US_TOPIC_0000001813598940__b17511114212202">Enter Partition Value</strong> button next to <strong id="EN-US_TOPIC_0000001813598940__b2618155310152">Partition Value</strong>. Enter the value by which you want to partition the table in <strong id="EN-US_TOPIC_0000001813598940__b187718317162">Value</strong> column. Click <strong id="EN-US_TOPIC_0000001813598940__b4849171210169">OK</strong>.</span></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li97888184324"><span>After you enter all information for partition, click <strong id="EN-US_TOPIC_0000001813598940__b133402881718">Add</strong>.</span><p><p id="EN-US_TOPIC_0000001813598940__p1873462515429">You can add, delete, edit and move a column.</p>
<p id="EN-US_TOPIC_0000001813598940__p1373422524219">Change the partition sequence according to the requirements in the table. To change the order, select the required partition and click <strong id="EN-US_TOPIC_0000001813598940__b77956569581347">Up</strong> or <strong id="EN-US_TOPIC_0000001813598940__b4033031181347">Down</strong>.</p>
<p id="EN-US_TOPIC_0000001813598940__p1426551764210"><span><img id="EN-US_TOPIC_0000001813598940__image1826541716429" src="figure/en-us_image_0000001860319237.png" width="497.42" height="133.01330000000002" title="Click to enlarge" class="imgResize"></span></p>
<p id="EN-US_TOPIC_0000001813598940__p4472185914409"></p>
<p id="EN-US_TOPIC_0000001813598940__p618073512409"></p>
</p></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_li135191420377"><span>After defining all partitions, click <strong id="EN-US_TOPIC_0000001813598940__b1873913388175">Next</strong>.</span></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section17537195584514"><a name="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_p095311319341">For details about index definitions, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001860199097__en-us_topic_0185264992_section082554911302">Defining an Index</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_row1574225714103"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.13.3.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11664898113"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b266416951119">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.13.3.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p9665119121120"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b866529181118">Row-store Table</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.13.3.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p36651919110"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b56651791116">Column-store Table</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.13.3.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p0665199181118"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b18665994119">ORC Table</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row974385791011"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p266612951119">Unique Indexes</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1549812705218"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p292413885315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p12597153411539">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1474385791014"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p206669951120">btree</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11511672526"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p14474720205217"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p2608234115320">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1574325710108"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p18667898113">gin</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1052397185216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1648532065219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p15621113485312">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row12743135741018"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p166829141116">gist</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p153777115219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p749772018522"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p263343465320">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row3743115713103"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p11669189111120">hash</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p4549197185216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p0511132095215"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p176465346539">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row67441657171010"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p9669898116">psort</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p25626705210"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p9523720165217"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p36571234195314">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row4748105714105"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1670159201114">spgist</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p95736719523"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p186707915118"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p20670153417535">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row117496573106"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p967115951113">Fill Factor</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p67371211195219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p161163017531">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1869514340531">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row15750257151019"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p156725951110">User Defined Expression</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p17518110522"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p772173010536">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p137061134115319">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1275075781017"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p13672691118">Partial Index</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1576661118528"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p68533065315">x</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.13.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p13718173420536">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section820017103416"><a name="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_p191031523184117">For details about how to define table constraints, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001860199097__en-us_topic_0185264992_section440110125279">Defining Table Constraints</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_row614815591775"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.14.3.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p41361151581"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1313618516819">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.14.3.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p6136351181"><strong id="EN-US_TOPIC_0000001813598940__b14329716103111">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.95%" id="mcps1.3.14.3.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p613645986"><strong id="EN-US_TOPIC_0000001813598940__b1825103312315">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.05%" id="mcps1.3.14.3.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p181361251589"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1313645988">ORC Table</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row131486591672"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p141369513810">Check</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p57179151525"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.14.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1356094518532">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.14.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1157294512536">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row814985911712"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p81361556814">Unique</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p7729215155210"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.14.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p2058484515537">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.14.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1960034515310">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row2149185915720"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p181373510814">Primary Key</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.14.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p874415151529"></p>
</td>
<td class="cellrowborder" valign="top" width="24.95%" headers="mcps1.3.14.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p17612104515538">x</p>
</td>
<td class="cellrowborder" valign="top" width="25.05%" headers="mcps1.3.14.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1862314459532">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section183471438456"><a name="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_section183471438456"></a><a name="en-us_topic_0185264910_section183471438456"></a><h4 class="sectiontitle">Configuring Data Distribution</h4><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p387191110459">For details about how to configure a distribution type, see <a href="DWS_DS_72.html#EN-US_TOPIC_0000001860199097__en-us_topic_0185264992_section728115301265">Selecting Data Distribution</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001813598940__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_0000001813598940__en-us_topic_0185264910_row37737336916"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.15.3.2.5.1.1"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1775254716918"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b16752947897">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.15.3.2.5.1.2"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p20752647598"><strong id="EN-US_TOPIC_0000001813598940__b1696784812318">Row Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.15.3.2.5.1.3"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1975211471393"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1575216471793">Column Partition</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.15.3.2.5.1.4"><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p77527471699"><strong id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_b1875224715918">ORC Partition</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1377319333912"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p47523479913">DEFAULT DISTRIBUTION</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p17137123085216"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1150163055211"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p49131849195312">x</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row15773433599"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p775310471993">Hash</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p41631530125214"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p217510306520"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p54461733115218"></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_row1777443312915"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.1 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p1875313479914">Replication</p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.2 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p181881530105214"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.3 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p4200133045219"></p>
</td>
<td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.15.3.2.5.1.4 "><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264910_p18754047594">x</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__section3169163624918"><h4 class="sectiontitle">Dropping a Partition</h4><ol id="EN-US_TOPIC_0000001813598940__ol2097802520175"><li id="EN-US_TOPIC_0000001813598940__li39781256177"><span>Right-click the selected index and select <strong id="EN-US_TOPIC_0000001813598940__b269312911200">Drop Partition</strong>.</span><p><p id="EN-US_TOPIC_0000001813598940__p097862519178"><strong id="EN-US_TOPIC_0000001813598940__b86800367204">Drop Partition Table</strong> dialog box is displayed.</p>
</p></li><li id="EN-US_TOPIC_0000001813598940__li297872513178"><span>Click <strong id="EN-US_TOPIC_0000001813598940__b5979625181712">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001813598940__p15979925151716">The partition is deleted from the table. Data Studio displays the status of the operation in the status bar.</p>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001813598940__section0418135911495"><h4 class="sectiontitle">Renaming a partition</h4><ol id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264998_ol1069445911102"><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264998_li56941659171014"><span>Right-click the selected partition and select <strong id="EN-US_TOPIC_0000001813598940__b168178340211">Rename Partition</strong>.</span><p><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264998_p1953013531076"><strong id="EN-US_TOPIC_0000001813598940__b48052182220">Rename Partition Table</strong> dialog box is displayed prompting you to provide the new name for the partition.</p>
</p></li><li id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264998_li17694115914107"><span>Enter new name and click <strong id="EN-US_TOPIC_0000001813598940__b1029236112210">OK</strong>.</span><p><p id="EN-US_TOPIC_0000001813598940__en-us_topic_0185264998_p8694659131013">Data Studio displays the status of the operation in the status bar.</p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_016.html">Table Management</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>