List Partition Infos For Schema And Table - List Partition Infos For Schema And Table
列出架构中表的所有分区信息。
列出架构中表的所有分区信息
GET {endpoint}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitionInfos?api-version=2021-04-01
GET {endpoint}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/partitionInfos?api-version=2021-04-01&continuationToken={continuationToken}&maxPageSize={maxPageSize}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
database
|
path | True |
string |
数据库名称。 |
endpoint
|
path | True |
string (url) |
工作区开发终结点,例如 |
schema
|
path | True |
string |
架构名称。 |
table
|
path | True |
string |
表名。 |
api-version
|
query | True |
string |
Synapse 客户端 API 版本。 |
continuation
|
query |
string |
用于获取下一页的继续标记。 |
|
max
|
query |
integer (int64) |
最大页面大小。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功返回架构中表的分区信息 |
|
Other Status Codes |
SyMS 错误响应。 |
示例
List all partition information for a table in schema
示例请求
GET exampleWorkspace.dev.azuresynapse.net/databases/exampleDatabase/schemas/schemaName/tables/tableName/partitionInfos?api-version=2021-04-01
示例响应
{
"items": [
{
"name": "examplePartitionInfoName1",
"type": "PARTITIONINFO",
"properties": {}
},
{
"name": "examplePartitionInfoName2",
"type": "PARTITIONINFO",
"properties": {}
}
]
}
{
"error": {
"code": "Error code",
"message": "SyMS response error message"
}
}
定义
名称 | 说明 |
---|---|
Cloud |
定义Azure Synapse错误响应结构的对象。 |
Query |
查询项目响应。 |
CloudError
定义Azure Synapse错误响应结构的对象。
名称 | 类型 | 说明 |
---|---|---|
error.code |
string |
错误代码。 |
error.details |
包含其他错误详细信息的数组。 |
|
error.message |
string |
错误消息。 |
error.target |
string |
与错误关联的请求中的属性名称/路径。 |
QueryArtifactsResponse
查询项目响应。
名称 | 类型 | 说明 |
---|---|---|
continuationToken |
string |
用于获取下一页的继续标记。 |
items |
object[] |
MDEntity (Database/Table/Schema/View/PartitionInfo/PermissionAssignment |