GET ddl/database/:db/table/:table/column/:column
Description
Describe a single column in an HCatalog table.
URL
http://www.myserver.com/templeton/v1/ddl/database/:db/table/:table/column/:column
Parameters
Name | Description | Required? | Default |
---|---|---|---|
:db | The database name | Required | None |
:table | The table name | Required | None |
:column | The column name | Required | None |
Results
Name | Description |
---|---|
database | The database name |
table | The table name |
column | A JSON object containing the column name, type, and comment (if any) |
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" } }