dbt-labs / dbt-core

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.
https://getdbt.com
Apache License 2.0
9.96k stars 1.63k forks source link

[Feature] Allow node level dependency deprecation warnings #10834

Open jeremyyeo opened 1 month ago

jeremyyeo commented 1 month ago

Is this your first time submitting a feature request?

Describe the feature

At the moment, the deprecation_date warnings only show up at the "project level" - so at the initial compilation phase... this means that users who ignore that-top-bit will be unaware that a model is ref-ing a model that has already been deprecated - especially true in dbt Cloud:

image

If the system logs are minimized (which it is by default) - then you wouldn't be able to tell at all:

image

There is a current bug where this "bar depends on deprecated foo" warning is gone from versionless (#10833), so I've reverted back to 1.7 to record the above screenshots.

Describe alternatives you've considered

Turn the warning into an error - not ideal as this would break users runs. The idea is just to provide a node level warning so that it is more obvious that it is now during development.

Who will this benefit?

Users who want a more obvious "soft error" (warning) that their models are using deprecated models.

Are you interested in contributing this feature?

No response

Anything else?

No response