Warning
You have to put
credentials.json
intocredentials
folder in project directory.Create Project and Service Account following the instructions.
Warning
Before start working with
dbt
you have to run Airflow DAGs that download source data and create BigQuery tablesStart DAGs with Airflow following the instructions.
Install dbt: pip install dbt-bigquery
-
Change project name value in
profiles.yml
: -
Run
cd dbt
: -
Run
dbt build
: -
Run
dbt run
: -
To generate docs and see it in browser run
dbt docs generate
and thendbt docs serve --port <port>
and open linklocalhost:<port>
:
- Create account in getdbt.com or login if you have one.
- After login create a new account:
- Choose a BigQuery connection:
- Configure environment by uploading Service Account JSON file:
- Choose dataset for models build and test connection:
- Choose your repository on
Setup a Repository
step in dbt cloud:
- Project is ready:
- Due to existence of dbt project inside a subdirectory you need to set
Project subdirectory
setting:
-
Go to the
Account Settings
: -
Tap on your project name:
-
Click
Edit
button and setProject subdirectory
todbt
: -
Click on
Save
button:
- Learn more about dbt in the docs
- Check out Discourse for commonly asked questions and answers
- Join the dbt community to learn from other analytics engineers
- Find dbt events near you
- Check out the blog for the latest news on dbt's development and best practices