[Bug] Ineligible table warning shows empty schema and table_id=0
Open
@tenfyzhong is already working on this.
Since Mar 30, 2026.
severity/minor
type/bug
- Dominant language
- Go
- Stars
- 56
- Forks
- 63
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 34
Description
Description
When creating a changefeed for a table without a primary key or a NOT NULL unique key, the warning prompt may display an ineligible table with an empty schema name and table_id=0.
Steps to Reproduce
- Create a table without PK/NOT NULL UK (for example
test.history). - Create a changefeed with default
force-replicate = false. - Observe the CLI warning/prompt for ineligible tables.
Example output:
[WARN] Some tables are not eligible to replicate, because they do not have a primary key or a not-null unique key: []v2.TableName{v2.TableName{Schema:"", Table:"history", TableID:0, IsPartition:false}}
Could you agree to ignore those tables, and continue to replicate [Y/N]
Note: If you don't want to ignore those tables, please set `force-replicate to` true in the changefeed config file.
Expected Behavior
The warning should show the full table identity, including the schema/database name and a valid table ID (if available), so users can clearly identify which table is ineligible.
Actual Behavior
The warning shows Schema:"" and TableID:0 for the ineligible table entry.
Impact
This is confusing when multiple databases contain tables with the same table name.
Environment
- Repository:
pingcap/ticdc - Observed on branch:
master - Local commit:
f08ab832
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.
Assessment
This issue has not been assessed yet.