Rename Table

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:

ParametersDescriptionRequired
old_table_name (str)Old table nameYes
new_table_name (str)New table nameYes
database_name (str)Database where the table is createdNo, defaults to "default" database
Table 57 Rename Table (Python API)