RisingWave setup
Certain core functionality may vary. If you would like to report a bug, request a feature, or contribute, you can check out the linked repository and open an issue.
- Maintained by: RisingWave
- Authors: Dylan Chen
- GitHub repo: risingwavelabs/dbt-risingwave
- PyPI package:
dbt-risingwave - Slack channel: N/A
- Supported dbt Core version: v1.6.1 and newer
- dbt support: Not Supported
- Minimum data platform version:
Installing dbt-risingwave
Use pip to install the adapter. Before 1.8, installing the adapter would automatically install dbt-core and any additional dependencies. Beginning in 1.8, installing an adapter does not automatically install dbt-core. This is because adapters and dbt Core versions have been decoupled from each other so we no longer want to overwrite existing dbt-core installations.
Use the following command for installation:
python -m pip install dbt-core dbt-risingwave
Configuring dbt-risingwave
For RisingWave-specific configuration, please refer to RisingWave configs.
Connecting to RisingWave with dbt-risingwave
Before connecting to RisingWave, ensure that RisingWave is installed and running. For more information about how to get RisingWave up and running, see the RisingWave quick start guide.
To connect to RisingWave with dbt, you need to add a RisingWave profile to your dbt profile file (~/.dbt/profiles.yml). Below is an example RisingWave profile. Revise the field values when necessary.
default:
outputs:
dev:
type: risingwave
host: [host name]
user: [user name]
pass: [password]
dbname: [database name]
port: [port]
schema: [dbt schema]
target: dev
| Loading table... |
To test the connection to RisingWave, run:
dbt debug
Materializations
The dbt models for managing data transformations in RisingWave are similar to typical dbt SQL models. In the dbt-risingwave adapter, we have customized some of the materializations to align with the streaming data processing model of RisingWave.
| Loading table... |
Resources
- RisingWave's guide about using dbt for data transformations
- A demo project using dbt to manage Nexmark benchmark queries in RisingWave
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.