Drops a partition.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DropPartition |
The operation that you want to perform. Set the value to DropPartition. |
DbName | String | Yes | db001 |
The name of the database to which the partition belongs. |
TableName | String | Yes | tbl001 |
The name of the table to which the partition belongs. |
PartValues | Array of String | Yes | p002 |
The partition that you want to drop. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | String | NO_SUCH_OBJECT |
The error code returned. |
Data | Boolean | false |
Indicates whether the partition is dropped. |
Message | String | Table: tbl001 not exists! |
The error message returned. |
RequestId | String | 9BEAC206-0795-4DE3-B1FD-964BEF432B23 |
The ID of the request. |
Success | Boolean | false |
Indicates whether the request was successful. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DropPartition
&DbName=db001
&TableName=tbl001
&PartValues=["p002"]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<Message>Table: tbl001 not exists!</Message>
<RequestId>9BEAC206-0795-4DE3-B1FD-964BEF432B23</RequestId>
<Data>false</Data>
<Code>NO_SUCH_OBJECT</Code>
<Success>false</Success>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"Message" : "Table: tbl001 not exists!",
"RequestId" : "9BEAC206-0795-4DE3-B1FD-964BEF432B23",
"Data" : "false",
"Code" : "NO_SUCH_OBJECT",
"Success" : "false"
}
Error codes
For a list of error codes, visit the API Error Center.