dbt
Feature | Supported ? |
---|---|
Table Materialization | Yes |
View Materialization | Yes |
Incremental Materialization | Yes |
Ephemeral Materialization | No |
Seeds | Yes |
Sources | Yes |
Custom Data Tests | Yes |
Docs Generate | Yes |
Snapshots | No |
Connection Retry | Yes |
Installing dbt-databend-cloud
Installing the dbt-databend-cloud plugin has been streamlined for your convenience, as it now includes dbt as a required dependency. To effortlessly set up both dbt and the dbt-databend-cloud plugin, run the following command:
pip3 install dbt-databend-cloud
However, if you prefer to install dbt separately, you can refer to the official dbt installation guide for detailed instructions.
Tutorial: Run dbt Project jaffle_shop
If you're new to dbt, Databend recommends completing the official dbt tutorial available at
This tutorial provides a sample dbt project called "jaffle_shop," offering hands-on experience with the dbt tool. By configuring the default global profile (~/.dbt/profiles.yml) with the necessary information to connect to your Databend instance, the project will generate tables and views defined in the dbt models directly in your Databend database. Here's an example of the file profiles.yml that connects to a local Databend instance:
jaffle_shop_databend:
target: dev
outputs:
dev:
type: databend
host: 127.0.0.1
port: 8000
schema: sjh_dbt
user: databend
pass: ********
If you're using Databend Cloud, you can refer to this