Skip to main content

dbt-starrocks

This project is under development.

The dbt-starrocks package contains all of the code enabling dbt to work with a StarRocks database. For more information on using dbt with StarRocks.

Getting started

Configuration your envs:

  • Python: 3.7.4
  • StarRocks: 2.4.0+
  • DBT: 1.1.0

Install the dbt-starrocks into the plugin directory, and

  pip install .

Create your project:

  dbt init

Basic Example

dbt seed properties(yml):

Minimum configuration:

config:
  distributed_by: ['id']

Complete configuration:

config:
  engine: 'OLAP'
  keys: ['id', 'name', 'some_date']
  table_type: 'PRIMARY'     //PRIMARY or DUPLICATE or UNIQUE
  distributed_by: ['id']
  buckets: 3                //default 10
  partition_by: ['some_date']
  partition_by_init: ["PARTITION p1 VALUES [('1971-01-01 00:00:00'), ('1991-01-01 00:00:00')),PARTITION p1972 VALUES [('1991-01-01 00:00:00'), ('1999-01-01 00:00:00'))"]
  properties: {"replication_num":"1", "in_memory": "true"}

dbt run config(table/incremental):

Minimum configuration:

{{ config(materialized=var("materialized_var", "table"), distributed_by=['id'])}}
{{ config(materialized='incremental', distributed_by=['id']) }}

Complete configuration:

{{ config(materialized='table', engine='OLAP', buckets=32, distributed_by=['id'], properties={"in_memory": "true"}) }}
{{ config(materialized='incremental', engine='OLAP', buckets=32, distributed_by=['id'], properties={"in_memory": "true"}) }}

Test Adapter

consult the project

Notice

  1. Create table as can only set engine='OLAP' and table_type='DUPLICATE'
  2. distributed_by is must

Metadata

Release files for dbt-dataops-starrocks 1.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dbt-dataops-starrocks 1.4.3
File Size Uploaded
dbt-dataops-starrocks-1.4.3.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dbt-dataops-starrocks 1.4.3
File Interpreter ABI Platform
dbt_dataops_starrocks-1.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 40.1 kB

Release files / dbt-dataops-starrocks-1.4.3.tar.gz

Download URL dbt-dataops-starrocks-1.4.3.tar.gz
Size 16.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5f75ac279079e867c1781d25b153e81c29ea68929cd13d46860a6b2d6d4ffe4a
BLAKE2b-256 checksum
How to use checksums
3ab26c6f725abec8ccc5746756bfc615730ebe401500a94fd0b6736fe49ee85e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release files / dbt_dataops_starrocks-1.4.3-py3-none-any.whl

Download URL dbt_dataops_starrocks-1.4.3-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f79635e17d8e6311fabb640b466418a09e6392747ee38290b8be222b716847b
BLAKE2b-256 checksum
How to use checksums
be5d23307810f16e4a1a7992a640718b946a35b813982a71b072eeb291f7d4a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.2

Release history Release notifications | RSS feed

This release

1.4.3 This release

2 release files

1.4.2

2 release files

1.4.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page