Explain how transactions (and rollbacks) are handled for incremental strategies #4635
Closed
1 task done
Labels
content
Improvements or additions to content
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/docs/build/incremental-models
What part(s) of the page would you like to see updated?
Question
The goal of this issue is to document the answer to this question from dbt-labs/dbt-core#7011 (comment):
Answer
On data platforms that use transactions, dbt will roll back open transactions if any statement in the materialization fails. This is useful to restore the database to a good state even if the materialization breaks in the middle (due to bad data or a logic bug like a divide by zero issue).
Additional information
This was originally included as part of #2895 on 2023-02-20.
The text was updated successfully, but these errors were encountered: