CockroachDB connector: populate DEFAULT on existing destination rows when a column is added
AnsweredTitle: CockroachDB connector: populate DEFAULT on existing destination rows when a column is added
Connector: CockroachDB
Scenario: ALTER TABLE ... ADD COLUMN <col> <type> NOT NULL DEFAULT <literal>. Because the connector uses the nobackfill changefeed option, every row synced before the change keeps NULL in the destination until that row is next written in the source. The source column is NOT NULL, so the destination is wrong for those rows.
Impact: we have hit this on six columns in ten weeks across carts, payments, shipping and catalogs, on tables up to 960 million rows. Each one needs a manual full table re-sync, and the wrong values are silent until someone compares against the source.
Request: when the connector processes ADD COLUMN with a literal DEFAULT, write that default into existing destination rows (as the MySQL connector does), or offer a column-level backfill that does not require re-syncing the whole table.
-
Hi Shoaib,
Thanks for creating the request. We're looking into the feasibility of this, and will give an update here once I have more info.
Thanks,
Val Kulichenko, Fivetran Product Team -
Hi Valentin,
Just following up here to see if there's any further information you need from us, or any updates on the status of this request.
Thank you,
Ishaan Upadhyay
Please sign in to leave a comment.
Comments
2 comments