peerdb icon indicating copy to clipboard operation
peerdb copied to clipboard

ch: consolidate schema when destination table missing columns

Open serprex opened this issue 6 months ago • 1 comments

when processing schema changes, we refresh schema from source

this can bring in changes we haven't reached yet in cdc, which results in attempting to insert into non-existent columns on destination

detect this scenario (error code 16 from clickhouse) & add columns reactively

serprex avatar Jun 13 '25 00:06 serprex

this looks a bit wrong since it skips checking table mappings, but in this scenario I doubt table mappings are relevant

serprex avatar Jun 13 '25 02:06 serprex