Gustavo Santos
10/14/2025, 6:10 PMkapa.ai
10/14/2025, 6:10 PMkapa.ai
10/14/2025, 6:10 PMGustavo Santos
10/14/2025, 6:13 PMversion: 2
sources:
- name: xxxx
database: yyyy
schema: zzzz
tables:
- name: table_spain
I would like to add tests for other tables like "table_uk", "table_germany" and etc. and then define the tests, still not possible?kapa.ai
10/14/2025, 6:14 PMkapa.ai
10/14/2025, 6:14 PMyaml version: 2 sources: - name: xxxx database: yyyy schema: zzzz tables: - name: table_spain tests: - elementary.schema_changes - name: table_uk tests: - elementary.schema_changes - name: table_germany tests: - elementary.schema_changes There is no built-in way to define the test once and have it automatically apply to all tables under a source. Users often automate this process by generating the YAML files with scripts, but this is outside the native capabilities of dbt and Elementary [see: "not possible" and scripting workaround](https://slack.com/archives/C02CTC89LAX/p1684199838837299), [bulk test definition limitations](https://slack.com/archives/C02CTC89LAX/p1689113314530069). If you have many tables with the same structure and want to avoid manual duplication, scripting the YAML generation is the recommended approach.