On this page
描述列— GET ddl/database /:db/table /:table/column /:column
Description
描述 HCatalog 表中的单个列。
URL
http:// * www.myserver.com * /templeton/v1/ddl/database/ *:db * /table/ *:table * /column/ *:column *
Parameters
| Name | Description | Required? | Default |
|---|---|---|---|
| :db | 数据库名称 | Required | None |
| :table | 表名 | Required | None |
| :column | 列名 | Required | None |
standard parameters也受支持。
Results
| Name | Description |
|---|---|
| database | 数据库名称 |
| table | 表名 |
| column | 包含列名称,类型和 Comments(如果有)的 JSON 对象 |
Example
Curl Command
% curl -s 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table/column/price?user.name=ctdean'
JSON Output
{
"database": "default",
"table": "test_table",
"column": {
"name": "price",
"comment": "The unit price",
"type": "float"
}
}
Navigation Links
上一个:GET ddl/database/:db/table/:table/column下一个:PUT ddl/database/:db/table/:table/column/:column
一般:DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki 主页 – Hive 项目 site