Creates a partition for a data lake table.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dms:CreateDataLakePartition | create | *All Resource
| None | None |
Request syntax
POST HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
CatalogName | string | Yes | The name of the data catalog. | hive |
DbName | string | Yes | The name of the database. | default |
TableName | string | Yes | The name of the table. | test_table |
PartitionInput | Yes | The information about the new partition. | ||
IfNotExists | boolean | No | Specifies whether to ignore an exception if a partition with the same name already exists. | true |
NeedResult | boolean | No | Specifies whether to return information about the new partition. If you set this parameter to true, the Partition parameter is returned. Valid values:
| true |
Tid | integer | No | The tenant ID. Note Hover over your profile picture in the upper-right corner of the DMS console to obtain the tenant ID. For details, see View tenant information. | 3**** |
WorkspaceId | integer | No | The workspace ID. | 12**** |
Response elements
Element | Type | Description | Example |
object | Schema of Response. | ||
RequestId | string | The request ID, used for log tracing and troubleshooting. | 427688B8-ADFB-4C4E-9D45-EF5C1FD6**** |
ErrorCode | string | The error code returned if the request fails. | UnknownError |
ErrorMessage | string | The error message returned if the request fails. | UnknownError |
Partition | The partition information. | ||
Success | boolean | Indicates whether the request was successful. Valid values:
| true |
Examples
Success response
JSON format
{
"RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6****",
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"Partition": {
"TableName": "",
"Sd": {
"OriginalColumns": [
{
"Comment": "",
"Type": "",
"Name": ""
}
],
"SortCols": [
{
"Order": 0,
"Col": ""
}
],
"Parameters": {
"test": "test",
"test2": 1
},
"SkewedInfo": {
"SkewedColValues": [
[
""
]
],
"SkewedColValueLocationMaps": {
"test": "test",
"test2": 1
},
"SkewedColNames": [
""
]
},
"InputFormat": "",
"OutputFormat": "",
"Columns": [
{
"Comment": "",
"Type": "",
"Name": ""
}
],
"IsCompressed": true,
"SerdeInfo": {
"SerializationLib": "",
"DeserializerClass": "",
"Parameters": {
"test": "test",
"test2": 1
},
"Description": "",
"SerdeType": 0,
"SerializerClass": "",
"Name": ""
},
"BucketCols": [
""
],
"NumBuckets": 0,
"Location": ""
},
"Parameters": {
"key": ""
},
"CreateTime": 0,
"Values": [
""
],
"CatalogName": "",
"DbName": "",
"LastAccessTime": 0
},
"Success": true
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.