Retrieves the details of partition data profiles.
Operation description
To use data profiles, you must first enable location hosting for the OSS bucket of the table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dlf:ListPartitionsProfile |
list |
*All Resource
|
None | None |
Request syntax
GET /webapi/metastorehouse/catalog/database/tableprofile/partitionprofile/listPartitionsProfile HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CatalogId |
string |
No |
The ID of the data catalog. By default, the ID of the Alibaba Cloud account is used. |
1344371 |
| DatabaseName |
string |
Yes |
The name of the metastore database. |
test_db |
| TableName |
string |
No |
The name of the metadata table. |
test_tbl |
| PageNumber |
integer |
No |
The page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
20 |
| PartitionNames |
array |
No |
The list of partition names. |
|
|
string |
No |
The partition name. |
year=3/month=1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response |
||
| Code |
string |
The error code. |
- |
| Message |
string |
The error message. |
- |
| RequestId |
string |
The request ID. |
97434FA4-A6B2-1AE4-A174-76964F29C759 |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
| Total |
integer |
The total number of entries. |
10 |
| Data |
array |
The list of partition data profiles. |
|
| PartitionProfile |
The partition data profile. |
||
| LatestDate |
string |
The update time of the metastore. The time is in the YYYY-MM-DD HH:mm:ss format. |
2023-08-30 19:16:10 |
| LatestAccessNumDate |
string |
[Deprecated] The update time of the access frequency. |
- |
Examples
Success response
JSON format
{
"Code": "-",
"Message": "-",
"RequestId": "97434FA4-A6B2-1AE4-A174-76964F29C759",
"Success": true,
"Total": 10,
"Data": [
{
"DatabaseName": "test_db",
"TableName": "test_tbl",
"PartitionName": "year=2023/month=1",
"ArchiveStatus": "STANDARD",
"CreateTime": "2023-08-16 18:02:22",
"LastModifyTime": "2023-08-16 18:02:25",
"LastAccessTime": "2023-08-22 12:14:42",
"LastAccessNumTime": "",
"Location": "oss://mybucket.cn-hangzhou.oss-dls.aliyuncs.com/test_tb/test_tbl/year=2023/month=1",
"FileSize": 13,
"ObjectSize": 13,
"FileCnt": 1,
"ObjectCnt": 1,
"AccessNum": 0,
"AccessNumWeekly": 0,
"AccessNumMonthly": 0,
"ObjectAccessNum": 0,
"ObjectAccessNumWeekly": 4,
"ObjectAccessNumMonthly": 4,
"DataSourceType": "OSS_HDFS"
}
],
"LatestDate": "2023-08-30 19:16:10",
"LatestAccessNumDate": "-"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.