doris icon indicating copy to clipboard operation
doris copied to clipboard

[opt](binlog) support rename binlog

Open lsy3993 opened this issue 8 months ago • 21 comments

Proposed changes

Rename operator doesn't have binlog now. This PR will create binlog when execute rename. The rename operator means :

  1. rename table : ALTER TABLE table1 RENAME table2;
  2. rename rollup : ALTER TABLE example_table RENAME ROLLUP rollup1 rollup2;
  3. 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.

lsy3993 avatar Jun 29 '24 14:06 lsy3993