doris
doris copied to clipboard
[opt](binlog) support rename binlog
Proposed changes
Rename operator doesn't have binlog now. This PR will create binlog when execute rename. The rename operator means :
- rename table : ALTER TABLE table1 RENAME table2;
- rename rollup : ALTER TABLE example_table RENAME ROLLUP rollup1 rollup2;
- rename partition : ALTER TABLE example_table RENAME PARTITION p1 p2;
After SQL analyzing, we can get the old and new table name (rollup name or partition name) , then record the info to binlog, so we can use the info from binlog.