GetDataLakeTable
Retrieves information about a table in a data lake.
Try it now
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
dms:GetDataLakeTable | get | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
CatalogName | string | Yes | The name of the data catalog. | hive |
DbName | string | Yes | The name of the database to which the table belongs. | default |
Name | string | Yes | The name of the table. | 100g_customer |
Tid | integer | No | The tenant ID. Call the GetUserActiveTenant or ListUserTenants operation to get this ID. | 3**** |
WorkspaceId | integer | No | The ID of the workspace. | 12**** |
Response elements
Element | Type | Description | Example |
object | Schema of Response. | ||
RequestId | string | The ID of the request. | 4E1D2B4D-3E53-4ABC-999D-1D2520B3**** |
Success | string | Indicates whether the request was successful. Valid values:
| true |
ErrorCode | string | The error code. | 400 |
ErrorMessage | string | The error message. | Unknown server error |
Table | The information about the table. |
Examples
Success response
JSON format
{
"RequestId": "4E1D2B4D-3E53-4ABC-999D-1D2520B3****",
"Success": "true",
"ErrorCode": "400",
"ErrorMessage": "Unknown server error",
"Table": {
"ViewOriginalText": "\"\"",
"Owner": "zhangsan",
"TableType": "EXTERNAL_TABLE",
"Parameters": {
"EXTERNAL": "TRUE",
"delta.minReaderVersion": "1"
},
"Description": "test",
"CreatorId": 0,
"CreateTime": 1731586286,
"StorageDescriptor": {
"OriginalColumns": [
{
"Comment": "from deserializer",
"Type": "string",
"Name": "col"
}
],
"SortCols": [
{
"Order": 1,
"Col": "col1"
}
],
"Parameters": {
"test": "test",
"test2": 1
},
"SkewedInfo": {
"SkewedColValues": [
[
"\"123\""
]
],
"SkewedColValueLocationMaps": {
"test": "test",
"test2": 1
},
"SkewedColNames": [
"col1"
]
},
"InputFormat": "org.apache.hadoop.mapred.SequenceFileInputFormat",
"OutputFormat": "org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat",
"Columns": [
{
"Comment": "from deserializer",
"Type": "string",
"Name": "col"
}
],
"IsCompressed": false,
"SerdeInfo": {
"SerializationLib": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
"DeserializerClass": "org.apache.hadoop.hive.serde2.OpenCSVSerde",
"Parameters": {
"serialization.format": "1"
},
"Description": "\"serialize\"",
"SerdeType": 0,
"SerializerClass": "org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe",
"Name": "name"
},
"BucketCols": [
"2010"
],
"NumBuckets": -1,
"Location": "oss://xxx"
},
"LastAccessTime": 1608707407,
"Retention": 300,
"Name": "100g_customer",
"OwnerType": "USER",
"ViewExpandedText": "\"\"",
"DbId": 19,
"DbName": "default",
"CatalogName": "hive",
"PartitionKeys": [
{
"Comment": "from deserializer",
"Type": "string",
"Name": "col"
}
],
"ModifierId": 1410769,
"Location": "oss://xxx"
}
}Error codes
See for a complete list.
Release notes
See 变更详情 for a complete list.