Questions about Snowflake and dbt.
Write a PostgreSQL-compatible query against dbt-style model and run metadata. Return the latest run for every active model, or indicate that the model has never run. If the latest run has no failed-test count, report zero.
model_name, materialization, latest_status, latest_started_at, and failed_testsmodel_name ascending| Column | Type | Description |
|---|---|---|
| model_idPK | INT | Unique dbt model identifier |
| model_name | VARCHAR(150) | dbt model name |
| materialization | VARCHAR(30) | dbt materialization type |
| is_active | BOOLEAN | Whether the model is currently active |
| Column | Type | Description |
|---|---|---|
| run_idPK | INT | Unique model run identifier |
| model_id | INT | Referenced dbt model |
| status | VARCHAR(30) | Run status |
| started_at | TIMESTAMP | Run start timestamp |
| failed_tests | INT | Number of failed tests for the run |