silentsokolov / dbt-databend

The Databend plugin for dbt (data build tool)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbt logo

build

dbt-databend

The dbt-databend package contains all of the code enabling dbt to work with Databend.

Getting started

Installation

Use your favorite Python package manager to install the app from PyPI, e.g.

python -m pip install dbt-databend

Supported features

Databend does not support a ALTER query for change a tables schema. So some features are not available.

  • Table materialization
  • View materialization
  • Incremental materialization
  • Seeds
  • Sources
  • Docs generate
  • Tests
  • Snapshots
  • Ephemeral materialization

Database & schema

The dbt model database.schema.table is not compatible with Databend because Databend does not support a schema. So we use a simple model schema.table, where schema is the Databend's database.

Configuration

Option Description Required?
cluster_by For detailed information about the CLUSTER BY clause, see SET CLUSTER KEY. Optional (default: empty)

Profile Configuration

Databend targets should be set up using the following configuration in your profiles.yml file. The dbt-databend package usage mysql-procotol for connect to database.

your_profile_name:
  target: dev
  outputs:
    dev:
      type: databend
      host: [hostname]
      port: [port]  # default 3307
      user: [username]
      password: [password]
      schema: [database name]

About

The Databend plugin for dbt (data build tool)

License:MIT License


Languages

Language:Python 95.9%Language:Makefile 4.1%