Retrieves a list of partitions for a data lake table based on filter conditions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListDataLakePartitionByFilter |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DataRegion |
string |
Yes |
The region where the data lake is located. |
cn-hangzhou |
| Tid |
integer |
No |
The tenant ID. Note
You can obtain the tenant ID by moving the pointer over the profile picture in the upper-right corner of the console. For more information, see View tenant information. |
3*** |
| 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 |
| Filter |
string |
Yes |
The conditional expression. The following operators are supported:
|
ds>20241201 |
| NextToken |
string |
No |
The token for the next query.
|
f056501ada12c1cc |
| MaxResults |
integer |
No |
The page size. Maximum value: 100. |
20 |
| WorkspaceId |
integer |
No |
The workspace ID. |
12**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D |
| Success |
boolean |
Specifies whether the call was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code returned when a request exception occurs. |
UnknownError |
| ErrorMessage |
string |
The error message returned when the call fails. |
UnknownError |
| PartitionList |
array |
The list of partitions. |
|
| DLPartition |
The partition information of the lakehouse table. |
||
| NextToken |
string |
The token information. |
NesLoKLEdIZrKhDT7I2gS**** |
| MaxResults |
integer |
The page size. |
20 |
Examples
Success response
JSON format
{
"RequestId": "427688B8-ADFB-4C4E-9D45-EF5C1FD6E23D",
"Success": true,
"ErrorCode": "UnknownError",
"ErrorMessage": "UnknownError",
"PartitionList": [
{
"CatalogName": "hive",
"DbName": "default",
"TableName": "table_name",
"Values": [
"part_val1"
],
"CreateTime": 1735109884,
"LastAccessTime": 1608707407,
"Sd": {
"OriginalColumns": [
{
"Name": "col",
"Type": "string",
"Comment": "from deserializer"
}
],
"Parameters": {
"test": "test",
"test2": 1
},
"OutputFormat": "org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat",
"Columns": [
{
"Name": "col",
"Type": "string",
"Comment": "from deserializer"
}
],
"SerdeInfo": {
"Name": "name",
"SerializationLib": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
"Parameters": {
"serialization.format": "1"
},
"Description": "\"serialize\"",
"SerializerClass": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
"DeserializerClass": "org.apache.hadoop.hive.serde2.OpenCSVSerde",
"SerdeType": 0
},
"NumBuckets": -1,
"SortCols": [
{
"Col": "col1",
"Order": 1
}
],
"SkewedInfo": {
"SkewedColValues": [
[
"\"123\""
]
],
"SkewedColValueLocationMaps": {
"test": "test",
"test2": 1
},
"SkewedColNames": [
"col1"
]
},
"InputFormat": "org.apache.hadoop.mapred.SequenceFileInputFormat",
"IsCompressed": false,
"BucketCols": [
"2010"
],
"Location": "oss://xxx"
},
"Parameters": {
"key": "{\"key\":\"value\"}"
}
}
],
"NextToken": "NesLoKLEdIZrKhDT7I2gS****",
"MaxResults": 20
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.