apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
11.84k stars 3.12k forks source link

[opt](binlog) support binlog for rename operator #37228

Open lsy3993 opened 2 days ago

lsy3993 commented 2 days ago

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.

github-actions[bot] commented 2 days ago

clang-tidy review says "All clean, LGTM! :+1:"