获取给定表的详细信息
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
DbName | String | 是 | db001 |
数据库名称 |
TableName | String | 是 | tbl001 |
表名称 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | NO_SUCH_OBJECT |
如果失败。则返回失败的代码 |
Message | String | No such table: db001.tbl001 |
如果请求失败,则返回失败的详细信息 |
RequestId | String | 9BEAC206-0795-4DE3-B1FD-964BEF432B23 |
本次请求的 RequestId |
Success | Boolean | false |
本次请求是否成功 |
Table | object |
获取的表信息 |
|
CreateTime | Long | 12234 |
表的创建时间 |
DbName | String | db001 |
数据库名称 |
LastAccessTime | Long | 1234 |
表的最后访问时间 |
Owner | String | user001 |
创建表的 DLA username |
Parameters | Map |
表的属性 |
|
String | key001=value001 |
表的属性 |
|
PartitionKeys | Array of PartitionKeys |
表的分区信息 |
|
Comment | String | this is partition comment |
分区注释 |
Name | String | part001 |
分区字段名称 |
Type | String | int |
分区列类型 |
StorageDescriptor | object |
表的 SD 信息 |
|
Cols | Array of Cols |
表的列信息 |
|
Comment | String | this is column comment |
列注释 |
Name | String | col1 |
列名称 |
Type | String | string |
列类型 |
InputFormat | String | org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat |
表的 InputFormat |
Location | String | oss://data/xxxx |
表的路径 |
OutputFormat | String | org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat |
表的 OutputFormat |
Parameters | Map |
SD 属性 |
|
SerDeInfo | object |
SerDe 信息 |
|
Name | String | SerDeName |
SerDe 名字 |
Parameters | Map |
SerDe 属性 |
|
String | key001=value001 |
SerDe 属性 |
|
SerializationLib | String | org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe |
处理 serDe 的类库 |
TableName | String | tbl001 |
表名称 |
TableType | String | VIEW |
表类型,支持 VIEW、MANAGED_TABLE, EXTERNAL_TABLE, VIRTUAL_VIEW |
ViewExpandedText | String | select count(*) from tbl002 |
如果表是视图,则代表视图的扩展 SQL |
ViewOriginalText | String | select count(*) from tbl002 |
如果表是视图,则代表视图的原始 SQL |
示例
请求示例
http(s)://[Endpoint]/?TableName=tbl001
&DbName=db001
&公共请求参数
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交