private boolean shouldOutputRenameDdl(HistoryRecord historyRecord, TableId tableId) {
        String ddl = historyRecord.document().getString(Fields.DDL_STATEMENTS);
        if (StringUtils.isBlank(ddl)) {
            return false;
        }
        try {
            Statement statement = CCJSqlParserUtil.parse(ddl);
            if (statement instanceof RenameTableStatement) {
                RenameTableStatement renameTableStatement = (RenameTableStatement) statement;
                Set<Entry<Table, Table>> tableNames = renameTableStatement.getTableNames();
                for (Entry<Table, Table> entry : tableNames) {
                    Table oldTable = entry.getKey();
                    Table newTable = entry.getValue();
                    if (reformatName(oldTable.getName()).equals(tableId.table()) ||
                            reformatName(newTable.getName()).equals(tableId.table())) {
                        return true;
                    }
                }
            }
        } catch (Exception e) {
            LOG.error("parse ddl error {}", historyRecord, e);
        }
        return false;
    }
if rename operation is "rename a to b" where a is the captured table
this method extract table names a and b, if any of table name is the captured table
we should output ddl element.
inlong-sort/sort-flink/sort-flink-v1.13/sort-connectors/mysql-cdc/src/main/java/org/apache/inlong/sort/cdc/mysql/source/reader/MySqlRecordEmitter.java