listPartitionsByNames
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求语法
POST /dlf/v1/{catalogId}/databases/{database}/tables/{table}/partitions/list-by-names HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| catalogId |
string |
是 |
数据目录 ID。 |
clg-paimon-xxxx |
| database |
string |
是 |
数据库名称。 |
database_name |
| table |
string |
是 |
表名称。 |
table_name |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| body |
object |
否 |
请求 Body。 |
|
| specs |
array<object> |
否 |
分区规格列表。 |
|
|
object |
否 |
|||
|
string |
否 |
分区键名和键值。 |
"dt": "20240101" |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| partitions |
array |
分区。 |
|
| Partition |
分区。 |
[] |
示例
正常返回示例
JSON格式
{
"partitions": [
{
"lastFileCreationTime": 1741701564261,
"recordCount": 1,
"fileSizeInBytes": 1,
"fileCount": 1,
"done": true,
"spec": {
"year": "2025"
},
"createdAt": 1747120676378,
"createdBy": "acs:ram::[accountId]:root",
"updatedAt": 1744970111419,
"updatedBy": "acs:ram::[accountId]:root",
"storageClass": "STANDARD",
"storageAction": "COMPLETE",
"storageActionTimestamp": 1758189669915,
"totalBuckets": 1
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。