[destination-snowflake] Unexpected Column Deletion in Snowflake with CDC Mode #54719
Labels
area/connectors
Connector related issues
autoteam
community
needs-triage
team/extensibility
type/bug
Something isn't working
Connector Name
destination-snowflake
Connector Version
3.15.4
What step the error happened?
During the sync
Relevant information
I’m using Airbyte OSS to sync data from Postgres to Snowflake in incremental + append mode, with CDC (Change Data Capture) enabled.
Recently, I encountered an issue when a column in one of my source tables was renamed. Airbyte detected this as a deletion of the old column and an addition of a new one (with the updated name). This makes sense from a schema evolution perspective, but the problem occurred on the destination side in Snowflake:
This behavior contradicts what I understand from the official documentation, which states:
However, in my case, the old column was not retained at all—it was deleted entirely, leading to data loss for past records. I expected Airbyte to keep the old column in Snowflake, even if it stopped updating.
Additional Context:
I was able to reproduce this issue in a local environment using:
To investigate further, I also tested simply deleting a column (without renaming it) in my local environment. I observed the same behavior: the column was also deleted from Snowflake, leading to data loss. This means the issue is not just related to column renaming, but also to column deletion.
Relevant log output
Contribute
The text was updated successfully, but these errors were encountered: