Skip to content

[Bug] Flags set in dbt_project.yml are not respected #173

@noel-nf

Description

@noel-nf

Describe the bug
Flags set in dbt_project.yml are not respected. This is reproducible by setting require_generic_test_arguments_property: True in dbt_project.yml, and using a test with arguments, such as below:

        tests:
          - not_null
          - accepted_values:
              arguments:
                values: [...]

Then, when running in Airflow, we get the errors like below, even though the flag is set in dbt_project.yml

[WARNING][ArgumentsPropertyInGenericTestDeprecation]: Deprecated
INFO - functionality
INFO - Found `arguments` property in test definition of `accepted_values` ({'values':
INFO - ['1d', '3d', '7d', '15d', '30d', '60d', '90d']}) without usage of
INFO - `require_generic_test_arguments_property` behavior change flag. The `arguments`
INFO - property is deprecated for custom usage and will be used to nest keyword
INFO - arguments in future versions of dbt.
ERROR - An error has occurred while executing dbt source
CaughtMacroErrorWithNodeError: Compilation Error in test accepted_values_train_features_user_id_bin__1d_3d_7d_15d_30d_60d_90d___feature_window (models/marts/data_science/features/_schema.yml)
  macro 'dbt_macro__test_accepted_values' takes no keyword argument 'arguments'

I see in the configs.py file that the flag is hardcoded as False.

Airflow

  • Version: 3.1.6
  • Provider: Self-Hosted on GKE

Dbt

  • Version: 1.11.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions