列表列— GET ddl/database /:db/table /:table/column

Description

列出 HCatalog 表中的列。

URL

http:// * www.myserver.com * /templeton/v1/ddl/database/ *:db * /table/ *:table * /column

Parameters

NameDescriptionRequired?Default
:db数据库名称RequiredNone
:table表名RequiredNone

standard parameters也受支持。

Results

NameDescription
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 ResourcesWebHCat ReferenceWebHCat ManualHCatalog ManualHive Wiki 主页Hive 项目 site