RENAME TABLE
Enabling Schema Evolution
Set the following parameter:
hoodie.schema.evolution.enable=true
Function
The ALTER TABLE ... RENAME command is used to change the table name.
Syntax
ALTER TABLE tableName RENAME TO newTableName
Parameter Description
| Parameter | Description |
|---|---|
| tableName | Table name. |
| newTableName | New table name. |
Example
ALTER TABLE table1 RENAME TO table2
System Response
You can run the SHOW TABLES command to view the new table name.