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
We have a model materialized as a table with an enforced contract. If we change a column's data type from varchar(1) to varchar(2), this change is detected as a breaking change.
Create model with a varchar column and an enforced contract.
Change the varchar size on that contract and run deferring to the previous state.
Relevant log output
Command failed
Breaking change to contract Error in model md_company_code (models/marts/business_partner/bukrs/md_company_code.sql)
While comparing to previous project state, dbt detected a breaking change to an enforced contract.
- Columns with data_type changes:
- nk_company_code (varchar(120) -> varchar(121))
Consider making an additive (non-breaking) change instead, if possible.
Otherwise, create a new model version: https://docs.getdbt.com/docs/collaborate/govern/model-versions
Is this a new bug in dbt-core?
Current Behavior
We have a model materialized as a table with an enforced contract. If we change a column's data type from
varchar(1)
tovarchar(2)
, this change is detected as a breaking change.Expected Behavior
As described in https://docs.getdbt.com/reference/resource-configs/contract#size-precision-and-scale it should not result in a breaking change.
Steps To Reproduce
Relevant log output
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
It might be related to the following release:
The text was updated successfully, but these errors were encountered: