forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
348 lines
24 KiB
HTML
348 lines
24 KiB
HTML
<a name="dli_02_0250"></a><a name="dli_02_0250"></a>
|
|
|
|
<h1 class="topictitle1">Listing Partitions (Discarded)</h1>
|
|
<div id="body1581606454759"><div class="section" id="dli_02_0250__s4d7af3a55ba34cc0ad39319579f69b71"><h4 class="sectiontitle">Function</h4><p id="dli_02_0250__p64297182145722">This API is used to list partitions.</p>
|
|
<div class="note" id="dli_02_0250__note794562214412"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0250__dli_02_0298_p69451622184111">This API has been discarded and is not recommended.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__s4d10c112744f4d8298e08964081970c4"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0250__en-us_topic_0069077903_ul49091925"><li id="dli_02_0250__en-us_topic_0069077903_li39174147">URI format<p id="dli_02_0250__en-us_topic_0069077903_p17023004"><a name="dli_02_0250__en-us_topic_0069077903_li39174147"></a><a name="en-us_topic_0069077903_li39174147"></a>GET /v1.0/{project_id}/databases/{database_name}/tables/{table_name}/partitions</p>
|
|
</li><li id="dli_02_0250__li28611846132312">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__en-us_topic_0069077903_table18989315" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dli_02_0250__en-us_topic_0069077903_row37144870"><th align="left" class="cellrowborder" valign="top" width="20.369999999999997%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0250__en-us_topic_0069077903_p621772417152">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.58%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0250__en-us_topic_0069077903_p721818240153">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.73%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0250__p82360535417">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="54.32%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0250__a86c116e114d44f4c8e5ce60e82d3b11f">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__row18156104824111"><td class="cellrowborder" valign="top" width="20.369999999999997%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0250__en-us_topic_0069077803_p43412436">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.58%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0250__en-us_topic_0069077803_p26746391">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.73%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0250__p623645135410">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.32%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0250__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__en-us_topic_0069077903_row42334793"><td class="cellrowborder" valign="top" width="20.369999999999997%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0250__en-us_topic_0069077903_p6566175">database_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.58%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0250__en-us_topic_0069077903_p62098166">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.73%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0250__p13236757541">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.32%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0250__p29276378145758">Name of a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__en-us_topic_0069077903_row38188964"><td class="cellrowborder" valign="top" width="20.369999999999997%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0250__en-us_topic_0069077903_p6298355">table_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.58%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0250__en-us_topic_0069077903_p40404735">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.73%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0250__p172362516549">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="54.32%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0250__p43359460145811">Name of a table.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__table3987551104612" frame="border" border="1" rules="all"><caption><b>Table 2 </b>query parameter description</caption><thead align="left"><tr id="dli_02_0250__row1698715512469"><th align="left" class="cellrowborder" valign="top" width="11.1%" id="mcps1.3.2.2.2.2.2.5.1.1"><p id="dli_02_0250__p89871751154619">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.690000000000001%" id="mcps1.3.2.2.2.2.2.5.1.2"><p id="dli_02_0250__p598719511465">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="12.83%" id="mcps1.3.2.2.2.2.2.5.1.3"><p id="dli_02_0250__p1098795174616">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="63.38%" id="mcps1.3.2.2.2.2.2.5.1.4"><p id="dli_02_0250__p198735164620">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__row4987851134614"><td class="cellrowborder" valign="top" width="11.1%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0250__p1898815118468">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0250__p3988185114618">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.83%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0250__p1198813511465">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.38%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0250__p159888514467">Number of returned records displayed on each page. The default value is <strong id="dli_02_0250__b5208155255620">100</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row15988185194611"><td class="cellrowborder" valign="top" width="11.1%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0250__p199881351104610">offset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0250__p1598825134619">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.83%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0250__p1698845134612">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.38%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0250__p10988651204620">Offset.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row198875119469"><td class="cellrowborder" valign="top" width="11.1%" headers="mcps1.3.2.2.2.2.2.5.1.1 "><p id="dli_02_0250__p098812514461">filter</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.690000000000001%" headers="mcps1.3.2.2.2.2.2.5.1.2 "><p id="dli_02_0250__p14988195174610">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="12.83%" headers="mcps1.3.2.2.2.2.2.5.1.3 "><p id="dli_02_0250__p1498845110468">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="63.38%" headers="mcps1.3.2.2.2.2.2.5.1.4 "><p id="dli_02_0250__p4988135124614">Filtering condition. Currently, only the <strong id="dli_02_0250__b148473271611">=</strong> condition is supported. For example, <strong id="dli_02_0250__b1447213324117">name=name1</strong> indicates that the data whose name is <strong id="dli_02_0250__b208763711112">name1</strong> in the partition is filtered. <strong id="dli_02_0250__b2065144212112">name</strong> indicates the name of the partition column, and <strong id="dli_02_0250__b1924714114">name1</strong> indicates the value of the partition column. The key and value are case insensitive.</p>
|
|
<p id="dli_02_0250__p198818513462">Example: GET /v1.0/{<em id="dli_02_0250__i1670755512110">project_id</em>}/databases/{<em id="dli_02_0250__i490416581119">database_name</em>}/tables/{<em id="dli_02_0250__i1898728216">table_name</em>}/partitions?part=part2</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__sba3aea1255394b83a6b44b56d1443424"><h4 class="sectiontitle">Request</h4><p id="dli_02_0250__p1546192414711">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__s3b91e8001c304b1fab9451feec878c3e"><h4 class="sectiontitle">Response</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__en-us_topic_0069077903_table27982971" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0250__en-us_topic_0069077903_row46534355"><th align="left" class="cellrowborder" valign="top" width="15.509999999999998%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0250__a8492bb7ea9aa47d1a50c3370cc8fd80c">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.04%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0250__p134002501736">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="13.11%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0250__ad5d73f500bd941708658fac31c1a15cb">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="58.34%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0250__en-us_topic_0069077903_p669144151612">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__en-us_topic_0069077903_row48222793"><td class="cellrowborder" valign="top" width="15.509999999999998%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0250__en-us_topic_0069077903_p13732189">is_success</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0250__p9400850732">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.11%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0250__en-us_topic_0069077903_p36799834">Boolean</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.34%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0250__p1096242814143">Whether the request is successfully executed. Value <span class="parmvalue" id="dli_02_0250__parmvalue5716630816104"><b>true</b></span> indicates that the request is successfully executed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__en-us_topic_0069077903_row50642479"><td class="cellrowborder" valign="top" width="15.509999999999998%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0250__en-us_topic_0069077903_p8400114">message</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0250__p134001150234">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.11%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0250__en-us_topic_0069077903_p16771545">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.34%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0250__p3962132820148">System prompt. If execution succeeds, the parameter setting may be left blank.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__en-us_topic_0069077903_row12643388"><td class="cellrowborder" valign="top" width="15.509999999999998%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0250__p532113503362">partitions</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.04%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0250__p1832114503360">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="13.11%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0250__p732115011365">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="58.34%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0250__p6347111617373">Partition information. For details, see <a href="#dli_02_0250__table10945172033612">Table 4</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0250__table10945172033612"></a><a name="table10945172033612"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__table10945172033612" frame="border" border="1" rules="all"><caption><b>Table 4 </b>partitions parameter description</caption><thead align="left"><tr id="dli_02_0250__row894682073619"><th align="left" class="cellrowborder" valign="top" width="20.72%" id="mcps1.3.4.3.2.5.1.1"><p id="dli_02_0250__p494652017368">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="11.18%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0250__p794652043616">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0250__p8946152063618">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.74999999999999%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0250__p2946112073619">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__row10947132016367"><td class="cellrowborder" valign="top" width="20.72%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0250__p1952864354317">total_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0250__p452884344317">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0250__p185281843144319">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.74999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0250__p1827174364817">Total number of partitions.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row16947162083616"><td class="cellrowborder" valign="top" width="20.72%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0250__p1652814384310">partition_infos</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="11.18%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0250__p652834314315">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0250__p25281643194312">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.74999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0250__p38041639174920">List of partitions. For details, see <a href="#dli_02_0250__table118615164215">Table 5</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0250__table118615164215"></a><a name="table118615164215"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__table118615164215" frame="border" border="1" rules="all"><caption><b>Table 5 </b>partition_infos parameter description</caption><thead align="left"><tr id="dli_02_0250__row486214111423"><th align="left" class="cellrowborder" valign="top" width="23.06%" id="mcps1.3.4.4.2.5.1.1"><p id="dli_02_0250__p2086211124218">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.129999999999999%" id="mcps1.3.4.4.2.5.1.2"><p id="dli_02_0250__p17862117422">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.36%" id="mcps1.3.4.4.2.5.1.3"><p id="dli_02_0250__p14862816420">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.45%" id="mcps1.3.4.4.2.5.1.4"><p id="dli_02_0250__p1586231144211">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__row11862111194213"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p19306112916532">partition_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p6306122913539">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p103061929195313">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p4899242175516">Partition name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row88632164218"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p1430672915531">create_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p14306112919530">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p123061229175311">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p2634133418554">Time when a partition is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row1786311194214"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p430711295539">last_access_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p10307202925320">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p11307132925317">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p1122892416559">Last update time.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row08632115427"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p8307129125315">locations</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p1307329125315">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p1307152918533">Array of Strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p197475712544">Path. This parameter is displayed only for non-DLI tables.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row1113174118427"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p1871217718435">last_ddl_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p77121975432">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p5712177174310">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p207121675434">Execution time of the last DDL statement, in seconds.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row9145419425"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p17712873431">num_rows</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p17131575438">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p18713197154310">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p3713197194317">Total rows in the partition.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row2143419426"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p19713197164319">num_files</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p67135784313">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p47132794315">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p13714974433">Number of files in a partition.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row19150415429"><td class="cellrowborder" valign="top" width="23.06%" headers="mcps1.3.4.4.2.5.1.1 "><p id="dli_02_0250__p87144713439">total_size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.129999999999999%" headers="mcps1.3.4.4.2.5.1.2 "><p id="dli_02_0250__p16714578436">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.36%" headers="mcps1.3.4.4.2.5.1.3 "><p id="dli_02_0250__p37142754314">Long</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.45%" headers="mcps1.3.4.4.2.5.1.4 "><p id="dli_02_0250__p10714117164314">Total size of data in the partition, in bytes.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__section1623151901318"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0250__p047717211136">None</p>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__section41378223152310"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0250__screen28241106152330">{
|
|
"is_success": true,
|
|
"message": "list partitions succeed",
|
|
"partitions": {
|
|
"total_count": 5,
|
|
"partition_infos": [
|
|
{
|
|
"partition_name": "name=test",
|
|
"create_time": 1579520179000,
|
|
"last_access_time": 1579520179000,
|
|
"locations": [
|
|
"obs://test/partition"
|
|
]
|
|
},
|
|
{
|
|
"partition_name": "name=test1",
|
|
"create_time": 1579521406000,
|
|
"last_access_time": 1579521406000,
|
|
"locations": [
|
|
"obs://test/partition"
|
|
]
|
|
},
|
|
{
|
|
"partition_name": "name=test2",
|
|
"create_time": 1579521884000,
|
|
"last_access_time": 1579521884000,
|
|
"locations": [
|
|
"obs://test/partition"
|
|
]
|
|
},
|
|
{
|
|
"partition_name": "name=test3",
|
|
"create_time": 1579522085000,
|
|
"last_access_time": 1579522085000,
|
|
"locations": [
|
|
"obs://test/partition"
|
|
]
|
|
},
|
|
{
|
|
"partition_name": "name=name1/age=age1",
|
|
"create_time": 1581409182000,
|
|
"last_access_time": 1581409182000,
|
|
"locations": [
|
|
"obs://test/0117"
|
|
],
|
|
"last_ddl_time": 1581409182,
|
|
"total_size": 2130,
|
|
"num_rows": -1,
|
|
"num_files": 2
|
|
}
|
|
]
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0250__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0250__tb12870f1c5f24b27abd55ca24264af36">Table 6</a> describes the status code.</p>
|
|
|
|
<div class="tablenoborder"><a name="dli_02_0250__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0250__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Status codes</caption><thead align="left"><tr id="dli_02_0250__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0250__ab49d21f312644072a331f43e92baf853">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0250__aea1d3bd107bb4c499da79a88832d256c">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dli_02_0250__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0250__a3153e07b3a9749adba92599fe6628fbf">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0250__p104431642124811">The operation is successful.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0250__p184941532219">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0250__p2049413539219">Request error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dli_02_0250__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0250__p5537171216249">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0250__p953813124249">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="dli_02_0250__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0250__p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0031.html">Table-related APIs (Discarded)</a></div>
|
|
</div>
|
|
</div>
|
|
|