-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[CT-3224] [Regression] DBT 1.5.8 introduces breaking changes to incrementally materialized models #8857
Comments
@epgui Thanks for opening! I am guessing that the root cause here must have been the fix to resolve this bug:
You could try "reverting" that fix, by adding an override of the |
After looking a bit more closely at that change, I believe it has a larger scope than the effect desired. When we had previously talked about the scope of the fix for that bug (comment here), I'd said something like:
Whereas, I believe the change implemented in #8768 also disables the "pre-flight" contract check on an incremental builds of incremental models, including the "pre-flight" check in This change affects users of |
@epgui I'm having trouble reproducing the exact behavior you're experiencing. Would you be able to provide a simple reproduction case similar to what Jeremy provided in this issue? That will help me track down exactly what's going on in your project. Thank you! |
Twofold apology:
I regret that I can't provide much more information at this time, and I hope my raising the issue was at least somewhat helpful. |
No worries @epgui. Can you describe the ad-hoc mitigation/workaround? That might help us figure out the characteristics causing the issue you experienced. |
Since we are unable to reproduce this, I'm going to close this as "can't repro". If anyone else experiences this and can give us steps to reproduce (similar to here), please share them here or in a new issue 🙏 |
It is just as described in the original report: we must explicitly cast every |
Is this a regression in a recent version of dbt-core?
Current Behavior
Prior to 1.5.8 (<= 1.5.7), incremental models would accept implicit type casts such as
VARCHAR(n) -> TEXT
(or the other way around). In other words, prior to 1.5.8, if the model's DDL / contract specification wasTEXT
, then source data of typeVARCHAR(n)
would get incrementally added to the table without issue and without any need for explicitly casting (ie.:my_column::TEXT
).With dbt-cloud not allowing users to pin down a minor version of DBT, this caused models to suddenly stop working for us.
Expected/Previous Behavior
Prior to 1.5.8 (<= 1.5.7), incremental models would accept implicit type casts such as
VARCHAR(n) -> TEXT
.Steps To Reproduce
See problem description in "Current behaviour". This should be trivially reproducible.
Relevant log output
Environment
Which database adapter are you using with dbt?
postgres
Additional Context
No response
The text was updated successfully, but these errors were encountered: