exchange partition ddl schema and table name set to the unexpected value
Open
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 56
- Forks
- 63
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 34
Description
ALTER TABLE `partition_table`.`t1` EXCHANGE PARTITION `p3` WITH TABLE `partition_table2`.`t2`
I think the DDL event should set the schemaName to partition_table, and tableName to t1.
In reality, schemaName is set to partition_table2, tableName is set to t2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at TiCDC's DDL event handling for EXCHANGE PARTITION and reproduce the issue with the ALTER TABLE statement shown. Confirm that the emitted event uses partition_table and t1 rather than partition_table2 and t2, and add or update coverage for this statement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100