Dan Cook
07/14/2024, 4:10 PMdbt run --select and build only those models which have tests, e.g. primary key tests, without explicitly adding YAML tags to the relevant models and filtering by explicit tag selection? Asked on the dbt Slack community but got no suggested solutions.Jose Daniel Chacón Bogarín
07/15/2024, 10:17 AMrun instead of `test`https://docs.getdbt.com/reference/commands/testDan Cook
07/15/2024, 6:27 PMdbt test syntax does something useful but dbt run --select test_type:data does nothing.Jose Daniel Chacón Bogarín
07/16/2024, 6:08 AMdbt_artifacts_parser library and go through all tests, and check their depends_on field to pick up the model that they depend on and save those models on a list. Afterwards, make a string of all the models and then execute dbt based on that, but I’d say that’s not a pretty solution at allDan Cook
07/16/2024, 3:26 PMdbt ls --resource-type model and dbt ls --resource-type test and figure out (within the latter) where the name of a model ends and the name of the column starts.Jose Daniel Chacón Bogarín
07/17/2024, 8:42 AMusers and another users_groups and if users_groups has a test, but users doesn’tDan Cook
07/25/2024, 12:04 AMdbt run --select elementary in order to populate the artifact tables, optionally run dbt proper (if you need to build/refresh any models), then run dbt test and other parts of your Elementary workflow.
(this SQL is Snowflake syntax btw)Jose Daniel Chacón Bogarín
07/25/2024, 8:12 AM