How do I silence specific warnings for behaviour change flags?

The problem I’m having

Hi there!

I would like to silence the warnings I get for setting the use_materialization_v2 and use_managed_iceberg behaviour change flags to false for the time being. I have tried using the silencer as per the documentation here but I keep getting a server error. I believe this is due to two potential issues:

  • I am using the wrong names for the behaviour change flags in the silencer block. ChatGPT suggested I use the Python class names (i.e. MaterializationV2BehaviorChangeWarning and ManagedIcebergBehaviorChangeWarning) but couldn’t give me any documentation evidence of this.
  • This is not available for our particular version. We use v1.9 for dbt Core, our dbt Cloud environment is set to compatible’ I’ve tried to understand whether the changes to legacy behaviours that have come with v1.10 are included in the latest compatible track but it’s not clear to me. However, when I silence NoNodesForSelectionCriteria as a test like in the example in the dbt documentation, I don’t get any server errors which suggests that the feature itself should work with our current version.

I am attaching screenshots of my attempt to silence the warnings in our project file as well as the server error.

The context of why I’m trying to do this

We are trying to reduce the noise we get in run logs from deprecation warnings.

What I’ve already tried

I’ve tried different iterations of the flags block, e.g. different names for the deprecation warnings, removing other flags etc.

Some example code or error messages

flags:
  require_explicit_package_overrides_for_builtin_materializations: false # allows elementary to override the test materialization
  mute_ensure_materialization_override: true
  source_freshness_run_project_hooks: true # opt in to new behavior so `dbt source freshness` runs project hooks and avoids deprecation warning. NOTE: ensure all model hooks have tag to avoid running in source freshness to override this.
  use_materialization_v2: false # can set this to true if you want to opt into new & optimised materialisations, see documentaiton here https://docs.getdbt.com/reference/global-configs/databricks-changes#use-restructured-materializations
  use_managed_iceberg: # false can set this to true if you want to opt into new & optimised materialisations, see documentatiton here https://docs.getdbt.com/reference/global-configs/databricks-changes#use-managed-iceberg 
  warn_error_options:
    silence: # To silence or ignore warnings
      - MaterializationV2BehaviorChangeWarning
      - ManagedIcebergBehaviorChangeWarning