dbt
dbt-starrocks enables the use of dbt to transform data in StarRocks using dbt's modeling patterns and best practices.
dbt-starrocks GitHub repo.
Private Preview
Supported features
| StarRocks >= 3.1 | StarRocks >= 3.4 | Feature |
|---|---|---|
| ✅ | ✅ | Table materialization |
| ✅ | ✅ | View materialization |
| ✅ | ✅ | Materialized View materialization |
| ✅ | ✅ | Incremental materialization |
| ✅ | ✅ | Primary Key Model |
| ✅ | ✅ | Sources |
| ✅ | ✅ | Custom data tests |
| ✅ | ✅ | Docs generate |
| ✅ | ✅ | Expression Partition |
| ❌ | ❌ | Kafka |
| ❌ | ✅ | Dynamic Overwrite |
* | ✅ | Submit task |
| ✅ | ✅ | Microbatch (Insert Overwrite) |
| ❌ | ✅ | Microbatch (Dynamic Overwrite) |
* Verify the specific submit task support for your version, see SUBMIT TASK
Installation
Install the StarRocks DBT adapter using pip:
pip install dbt-starrocks
Verify Installation
Verify the installation by checking the version:
dbt --version
This should list starrocks under plugins.
Configuration
Profiles
Create or update profiles.yml with StarRocks-specific settings.
starrocks_project:
target: dev
outputs:
dev:
type: starrocks
host: your-starrocks-host.com
port: 9030
schema: your_database
username: your_username
password: your_password
catalog: test_catalog
Parameters
type
Description: The specific adapter to use, this must be set to starrocks
Required?: Required
Example: starrocks
host
Description: The hostname to connect to
Required?: Required
Example: 192.168.100.28