GetMCTableSchema
Retrieves the schema of a MaxCompute table.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidesigner:GetMCTableSchema |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/datasources/maxcompute/tables/{TableName}/schema HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TableName |
string |
Yes |
The name of the MaxCompute table. |
table_name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| WorkspaceId |
string |
Yes |
The workspace ID. |
12345 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| Columns |
array<object> |
The column information. |
|
|
object |
The MaxCompute table column. |
||
| Name |
string |
The column name. |
column1 |
| Type |
string |
The column type. |
STRING |
| Preview |
array |
The data preview of the column. |
|
|
string |
The data in the column. |
123 |
|
| PartitionColumns |
array |
The partition columns. If this parameter is empty, the table is a non-partitioned table. |
|
|
string |
The partition column name. |
dt |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"Columns": [
{
"Name": "column1",
"Type": "STRING",
"Preview": [
"123"
]
}
],
"PartitionColumns": [
"dt"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.