Hippo supports renaming the table.
curl -u shiva:shiva -XPUT 'localhost:8902/hippo/v1/_rename_table?pretty' -H 'Content-Type: application/json' -d'{
"database_name" : "book",
"table_name" : "book",
"new_table_name" : "new_book"
}';
Result:
{
"acknowledged" : true
}
Parameter description:
Parameters | Description | Required |
---|---|---|
table_name | Table to be renamed | Yes |
new_table_name | New table name | Yes |
database_name | The database where the table is located | No, defaults to "default" database |