-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Bug] hard_deletes='new_record' not working when strategy='check' #11269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi - thanks for opening. The test coverage we have is for using |
Hey Grace, Thanks for replying. I did specifically faced this issue with the 'check' strategy. Wondering if this is resolved in v1.10 ? |
Not yet, but I will have one of our engineers take a look and hopefully we can get this resolved before the final 1.10 release! |
Sorry to butt in but there's also a bug with the |
Same issue here with dbt core 1.9.4. I'm building the id with a surrogate key based on all fields. After restoring the value the value on the column dbt_is_deleted is still true but it should be false as the record is valid again.
|
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: