Closed as not planned
Closed as not planned
Description
Is this a regression in a recent version of dbt-core?
- I believe this is a regression in dbt-core functionality
- I have searched the existing issues, and I could not find an existing issue for this regression
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 was TEXT
, then source data of type VARCHAR(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
20:42:22 Source columns not in target: []
20:42:22 Target columns not in source: []
20:42:22 New column types: [{'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}, {'column_name': 'REDACTED', 'new_type': 'character varying(256)'}]
Environment
- OS: any (dbt-cloud)
- Python: any (dbt-cloud)
- dbt (working version): 1.5.7
- dbt (regression version): 1.5.8
Which database adapter are you using with dbt?
postgres
Additional Context
No response
Activity