Hello can I use the variable I have created in the...
# community-support
m
Hello can I use the variable I have created in the dbt_project.yml file under a test as a meta information? This is my implementation: dbt_project.yml file:
Copy code
vars:
  common_meta_fin_data:
    alerting_channel_id: "C06827CS1PG" # fin-alerts
    on_call_group: "fin-data"
sources.yml file:
Copy code
sources:
  - name: teva_data_normalized
    database: &database
      '{{ env_var("DBT_POSTGRES_DATABASE") }}'
    schema: data_normalized
    tables:
      - name: finance_pnl
        columns:
          - name: geo_id
            data_tests:
              - relationships:
                  to: ref('fin_hierarchy_geo_location')
                  field: code
                  tags: ["test_fin",]
                  severity: error
                  meta: {{ var (common_meta_fin_data) }}