-
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-1924] Support 'contract' config outside model yaml file #6756
Comments
Let's take #6511 off the critical path, and take the "lazy" approach for now, by raising the error at runtime instead of parse time. #6986 is going to give us a neat place to raise this error at runtime: dbt-core/core/dbt/include/global_project/macros/adapters/columns.sql Lines 41 to 47 in 5858095
If cast(col_name as ), Then, we should remove these validation checks: dbt-core/core/dbt/parser/base.py Lines 313 to 324 in 5858095
dbt-core/core/dbt/parser/schemas.py Lines 1015 to 1025 in 5858095
|
In the first cut of dbt constraints,
constraints_enabled
(= “this model is contracted and should be treated as such”, to be renamed tocontract
) can only be set in model yaml files, alongside the columns attribute to enable parse-time validation.We should either:
Relevant discussions:
The text was updated successfully, but these errors were encountered: