On this page
列表列— GET ddl/database /:db/table /:table/column
Description
列出 HCatalog 表中的列。
URL
http://
* www.myserver.com * /templeton/v1/ddl/database/
*:db * /table/
*:table * /column
Parameters
Name | Description | Required? | Default |
---|---|---|---|
:db | 数据库名称 | Required | None |
:table | 表名 | Required | None |
standard parameters也受支持。
Results
Name | Description |
---|---|
columns | 列名称和类型的列表 |
database | 数据库名称 |
table | 表名 |
Example
Curl Command
% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/my_table/column?user.name=ctdean'
JSON Output
{
"columns": [
{
"name": "id",
"type": "bigint"
},
{
"name": "user",
"comment": "The user name",
"type": "string"
},
{
"name": "my_p",
"type": "string"
},
{
"name": "my_q",
"type": "string"
}
],
"database": "default",
"table": "my_table"
}
Navigation Links
上一个:DELETE ddl/database/:db/table/:table/partition/:partition下一个:GET ddl/database/:db/table/:table/column/:column
一般:DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki 主页 – Hive 项目 site