66db8c2a19 | ||
---|---|---|
macros | ||
models/generated | ||
Makefile | ||
README.md | ||
dbt_project.yml | ||
destination_catalog.json | ||
destination_config.json | ||
packages.yml | ||
profiles.yml |
README.md
Installing dbt
- Activate your venv and run
pip3 install dbt
- Copy
airbyte-normalization/sample_files/profiles.yml
over to~/.dbt/profiles.yml
- Edit to configure your profiles accordingly
Running dbt
cd airbyte-normalization
- You can now run dbt commands, to check the setup is fine:
dbt debug
- To build the dbt tables in your warehouse:
dbt run
Running dbt from Airbyte generated config
- You can also change directory (
cd /tmp/dev_root/workspace/1/0/normalize
for example) to one of the workspace generated by Airbyte within one of thenormalize
folder. - You should find
profiles.yml
and a bunch of other dbt files/folders created there. - To check everything is setup properly:
dbt debug --profiles-dir=$(pwd) --project-dir=$(pwd)
- You can modify the
.sql
files and rundbt run --profiles-dir=$(pwd) --project-dir=$(pwd)
too - You can inspect compiled dbt
.sql
files before they are run in the destination engine innormalize/build/compiled
ornormalize/build/run
folders