<@U04S8PLJWMT>, I have postgres to s3 data lake re...
# ask-ai
s
@kapa.ai, I have postgres to s3 data lake replication it is cdc data replication, i added a new column in the source and added data in that column but i did replication it added the new column it didn’t add the data what could be the issue ?
k
Thinking completed CDC Schema Change Issue: New Column Added But Data Not Syncing This is a known behavior with CDC replication in Airbyte. When you add a new column to a CDC source, the column must first be snapshotted before CDC can begin tracking changes to it. Simply adding the column doesn't automatically enable CDC tracking on it. Here's what likely happened: • Airbyte detected (or needs to detect) the new column, but since CDC only tracks changes for schemas/columns that have been properly snapshotted, the data inserted into the new column after it was added was not captured by the CDC log tracking. How to Fix It Follow these steps to properly sync the new column and its data: 1. Refresh the source schema in Airbyte: ◦ Go to the Replication tab of your connection. ◦ Click Refresh source schema to retrieve the latest structure from your source. ◦ You should see a Schema changes detected notice. 1. Review and approve the new column: ◦ Enable the newly added column in the schema. 1. Trigger a Refresh Stream for the affected table: ◦ Navigate to the Status page. ◦ Locate the stream (table) containing the new column. ◦ Click the three dots (⋮) next to it and choose Refresh Stream. This will perform a new snapshot of that table, capturing the current data including the new column and its values. [CDC Limitations] Recommendation Going Forward To avoid unintentional sync issues with schema changes, it's recommended to enable
Approve all schema changes myself
under Detect and propagate schema changes in the Settings section. This prevents newly detected changes from being included in the sync without a proper snapshot, reducing the risk of sync failures. [CDC Limitations] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
s
@kapa.ai, every time when a new column is added in order to get it’s data, do i need to refresh the stream ?
k
Thinking completed Do You Need to Refresh the Stream Every Time a New Column is Added? Yes, for CDC replication, every time a new column is added to the source, you will need to trigger a Refresh Stream to get its data. This is because: > "If you create a new schema/column that is not yet being synced, it must first be snapshotted before CDC can begin tracking changes." CDC only tracks changes (INSERT/UPDATE/DELETE) for columns that have already been snapshotted. A new column hasn't been snapshotted yet, so CDC has no baseline for it and cannot track its data until a refresh is performed. [CDC Limitations] The Required Steps Each Time Every time you add a new column, you'll need to: 1. Refresh the source schema to detect the new column. 2. Review and approve the new column change. 3. Trigger a Refresh Stream on the affected table to snapshot the new column and its existing data. After the refresh/snapshot is complete, CDC will begin tracking future changes to that column automatically. [CDC Limitations] 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.