dbt-databricks icon indicating copy to clipboard operation
dbt-databricks copied to clipboard

How to silence deprecation warning about materialization v2?

Open Korijn opened this issue 6 months ago • 7 comments

It is pretty annoying to constantly see 10x warnings about materialization V2, it makes it harder to read our dbt logs.

Even though we explicitly disabled the flag, it's still spamming our logs.

How do we silence the warning? I couldn't figure out how to do it from the docs.

Korijn avatar Jul 08 '25 11:07 Korijn

https://docs.getdbt.com/reference/global-configs/behavior-changes#behavior-change-flags there is a bit about silencing the warnings.

benc-db avatar Jul 08 '25 15:07 benc-db

Yeah so ..

flags:
  warn_error_options:
    silence:
      - WhatDoIPutHere?

Korijn avatar Jul 08 '25 15:07 Korijn

The docs are a little hard to parse, but maybe "Deprecations"?

https://docs.getdbt.com/reference/global-configs/warnings#configuration

benc-db avatar Jul 08 '25 16:07 benc-db

I will try it. Although I don't want to block all deprecation warnings, just this one...

Korijn avatar Jul 08 '25 16:07 Korijn

Having the same issue.

We tried using Deprecations and the warning still shows. We also tried use_materialization_v2 and dbt Cloud fails without any log messages:

Image

DVAlexHiggs avatar Sep 19 '25 15:09 DVAlexHiggs

@DVAlexHiggs recommend flagging to dbt Labs about this behavior

benc-db avatar Sep 19 '25 15:09 benc-db

Created an issue in dbt-core for this.

ilyaberd avatar Dec 10 '25 15:12 ilyaberd