You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the existing issues, and I could not find an existing issue for this bug
Current Behavior
In dbt-core 1.9, with dbt snapshot new feature to capture the new records for the deleted items, I have noticed that if the deleted records are restored, those are not reinserted in snapshot table.
snapshot config:
strategy='check',
hard_deletes= 'new_record'
As you see in the attached screenshot, the deleted record entry is the last entry in this table.
Expected Behavior
Once the records are restored, the deleted entry (is_deleted='True') in snapshot table should be invalidated and the new record will be created.
Steps To Reproduce
Run dbt snapshot on any table, to replicate all the records from monitored table.
Now delete one record from monitored table & run the dbt snapshot on that table. There will be new entry created for the deleted record with the previous one getting invalidated and the new one with dbt_is_deleted='True'.
Now again try to restore that delete record in the monitored table, and run the dbt snapshot on it. The new entry for the restored item is not getting create in snapshot table.
paritoshg2010
changed the title
[Bug] <title> Restored deleted items are not appearing in dbt Snapshots 1.9
[Bug] Restored deleted items are not appearing in dbt Snapshots 1.9
Feb 4, 2025
Is this a new bug in dbt-core?
Current Behavior
In dbt-core 1.9, with dbt snapshot new feature to capture the new records for the deleted items, I have noticed that if the deleted records are restored, those are not reinserted in snapshot table.
snapshot config:
As you see in the attached screenshot, the deleted record entry is the last entry in this table.
Expected Behavior
Once the records are restored, the deleted entry (is_deleted='True') in snapshot table should be invalidated and the new record will be created.
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
No response
The text was updated successfully, but these errors were encountered: