Rename Table — POST ddl/database/:db/table/:table
Table of Contents |
---|
Description
Rename an HCatalog table.
...
Example
Curl Command
No Format |
---|
% curl -s -d user.name=ctdean \ -d rename=test_table_2 \ 'http://localhost:50111/templeton/v1/ddl/database/default/table/test_table?user.name=ekoifman' |
JSON Output
No Format |
---|
{
"table": "test_table_2",
"database": "default"
}
|
JSON Output (error)
No Format |
---|
{
"error": "Table test_table does not exist",
"errorCode": 404,
"database": "default",
"table": "test_table_2"
}
|
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Previous: PUT ddl/database/:db/table/:table General: DDL Resources – WebHCat Reference – WebHCat Manual – HCatalog Manual – Hive Wiki Home – Hive Project Site |