What are dbt packages and packages.yml?
packages.yml
file under the main project directory (where your dbt_project.yml
is), and adding the relevant package. After you add a new package, run dbt deps
to actually pull its code to your project. This is also how you update packages.
Some packages we recommend you check out: dbt_utils, dbt_date, codegen.Add elementary to `packages.yml`
packages.yml
file (if missing, create it where dbt_project.yml
is):Add to your `dbt_project.yml`
elementary
or <target_schema>_elementary
.
Make sure your user has permissions to create schemas.Important: Materialization config
dbt run -s elementary --full-refresh
.Important: Allowing Elementary to override dbt's default materializations (relevant from dbt 1.8)
dbt_project.yml
file:Import the package and build Elementary models
Run tests
elementary_test_results
table.