You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The FQNs for schema + data tests today are sort of silly, especially schema tests.
$ dbt ls --resource-type test
my_other_project.data_test.my_test
my_project.schema_test.accepted_values_model_a_id__1__2__3
my_project.subfolder.data_test.my_test
my_project.schema_test.my_test_model_a_
This means that, from the project file, these tests have to be configured sort of awkardly:
Ideally, we'd remove the data test / schema test nomenclature (#3234) and rationalize the FQNs.
Bespoke Singular test FQNs are straightforward: just project + file path
Generic test blocks: just project + name? Or fuller file-path FQNs?
Specific instantiations of generic tests: ideally, this might include target FQNs (e.g. my_project.models.subfolder.model_a.id.unique), to enable things like:
But that may be overkill for the first cut of this! The main use case for configuring tests from dbt_project.yml is disabling/controlling behavior from a package. Maybe neater package-level FQNs is all we need.
Describe the feature
The FQNs for schema + data tests today are sort of silly, especially schema tests.
This means that, from the project file, these tests have to be configured sort of awkardly:
Ideally, we'd remove the data test / schema test nomenclature (#3234) and rationalize the FQNs.
BespokeSingular test FQNs are straightforward: just project + file pathmy_project.models.subfolder.model_a.id.unique
), to enable things like:But that may be overkill for the first cut of this! The main use case for configuring tests from
dbt_project.yml
is disabling/controlling behavior from a package. Maybe neater package-level FQNs is all we need.In any case, we could start making the adjustments here:
https://github.com/fishtown-analytics/dbt/blob/7ec5c122e17ab7e1a5dd1e1cab36527159564a0f/core/dbt/parser/schemas.py#L439-L444
The text was updated successfully, but these errors were encountered: