Retrieves the details of a table's data profile.
Operation description
To use data profiles, you must first host the table's OSS bucket on DLF.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dlf:GetTableProfile | *All Resource
| None | None |
Request syntax
GET /webapi/metastorehouse/catalog/database/tableprofile HTTP/1.1Request parameters
Parameter | Type | Required | Description | Example |
CatalogId | string | No | The catalog ID. | 1344371 |
DatabaseName | string | Yes | The name of the database. | test_db |
TableName | string | Yes | The name of the table. | test_tbl |
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 was successful. Valid values:
| true |
TableProfile | The data profile of the table. |
Examples
Success response
JSON format
{
"Code": "-",
"Message": "-",
"RequestId": "97434FA4-A6B2-1AE4-A174-76964F29C759",
"Success": true,
"TableProfile": {
"PartitionCnt": 2,
"FileCnt": 10,
"ObjectCnt": 5,
"FileSize": 192841,
"ObjectSize": 31,
"RecordCnt": 2,
"IsPartitioned": true,
"LastModifyTime": "2023-02-01 19:33:00",
"LastAccessTime": "2023-02-02 19:00:00",
"DatabaseName": "530_db",
"TableName": "test_table_20201223",
"CreateTime": "2023-02-01 19:29:12",
"Location": "oss://opg211-prod-ds-lake/datalake/tvapp_push_content/_delta_log/00000000000000000005.json",
"AccessNum": 3,
"AccessNumWeekly": 5,
"AccessNumMonthly": 10,
"LastAccessNumTime": "",
"LatestDate": "2023-03-13",
"LatestAccessNumDate": "",
"LastDdlTime": "2023-08-16 18:02:24",
"ObjectAccessNum": 0,
"ObjectAccessNumWeekly": 18,
"ObjectAccessNumMonthly": 18,
"DataSourceType": "OSS_HDFS"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.