-
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
Enable deprecation: models-key-mismatch #3899
Comments
@gshank can you help point me to where this logic moved to in v0.20+? |
@jtcohen6 This task was originally to raise an exception when a non-model is specified under the |
@emmyoop Some details and a quick reproduction case, based on what we discussed earlier: Create a seed,
Then define properties for it under a # models/whatever.yml
version: 2
models:
- name: my_seed
description: "This is my very cool seed" In previous versions of dbt (e.g. v0.19), we raised a deprecation warning for this:
For backwards compatibility, though, we'd still apply the description to As of v0.20, we removed the deprecation warning, but continued with the previous backwards-compatible functionality, by applying the description to the seed. In effect, we un-deprecated the feature.
In v1.0, I'd like to:
|
models-key-mismatch
Introduced in: v0.16
In the last week, raised by: 34 projects (<1%)
This is a tricky one: We actually removed this deprecation warning in v0.20, when we removed the
patch_nodes
method. But the to-be-deprecated functionality is still supported.https://github.com/dbt-labs/dbt/blob/745ae3e64ac03fedb19228b31252fea05eb0ed37/core/dbt/contracts/graph/manifest.py#L685-L691
I'd like to re-add the conditional check for whether a non-model (a seed, snapshot, etc) is specified under the
models:
key, and start raising a clear exception for this in v1.0. This may require some work with @gshank to find where this logic has moved in v0.20+.Once done, we can also remove this from the list of active deprecations, since it's no longer referenced anywhere in the code!
Originally posted by @jtcohen6 in #2798 (comment)
The text was updated successfully, but these errors were encountered: