table_renamed = hc.rename_table("old_table_name", "new_table_name", "database_name")
Result:
This method returns True if succeeds. Otherwise, “ValueError” exception will be raised.
Parameter description:
Parameters | Description | Required |
---|---|---|
old_table_name (str) | Old table name | Yes |
new_table_name (str) | New table name | Yes |
database_name (str) | Database where the table is created | No, defaults to "default" database |