Skip to content

dbt_utils internally references deprecated macros #656

Closed
@clausherther

Description

@clausherther

Describe the bug

In version 0.9.0, the package is still referencing deprecated macros, such as safe_cast and various type_ macros.
This causes deprecation warnings in downstream packages and projects even if those projects no longer reference the deprecated macros (but reference a macro that internally uses a deprecated macro).

Steps to reproduce

  • Include dbt_utils 0.9.0 in a project.
  • Use dbt_utils.surrogate_key() or dbt_utils.date_spine() in a model

Expected results

No deprecation warnings should be triggered.

Actual results

Deprecation warnings are triggered.

Screenshots and log output

13:25:43  Warning: the `type_timestamp` macro is now provided in dbt Core. It is no longer available in dbt_utils and backwards compatibility will be removed in a future version of the package. Use `type_timestamp` (no prefix) instead. The dbt_date_integration_tests.dim_hour model triggered this warning.

System information

The contents of your packages.yml file:

packages:
  - package: dbt-labs/dbt_utils
    version: [">=0.9.0", "<1.0.0"]

Which database are you using dbt with?

  • postgres
  • redshift
  • bigquery
  • snowflake
  • other (specify: ____________)

The output of dbt --version:

Core:
  - installed: 1.2.1
  - latest:    1.2.1 - Up to date!

Plugins:
  - bigquery:  1.2.0 - Up to date!
  - snowflake: 1.2.0 - Up to date!
  - postgres:  1.2.1 - Up to date!

Additional context

Are you interested in contributing the fix?

Yes, here's a PR #650

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions