Connect CrateDB to dbt Core
- Maintained by: Crate.io, Inc.
- Authors: CrateDB maintainers
- GitHub repo: crate/dbt-cratedb2
- PyPI package:
dbt-cratedb2 - Slack channel: Community Forum
- Supported dbt Core version: v1.0.0 and newer
- dbt support: Not Supported
- Minimum data platform version: n/a
Installing dbt-cratedb2
Use pip to install the adapter. Use the following command for installation:
python -m pip install dbt-cratedb2
Configuring dbt-cratedb2
For CrateDB-specific configuration, please refer to CrateDB configs.
CrateDB is compatible with PostgreSQL, so its dbt adapter strongly depends on dbt-postgres, documented at PostgreSQL profile setup.
CrateDB targets are configured exactly the same way, see also PostgreSQL configuration, with just a few things to consider which are special to CrateDB. Relevant details are outlined at using dbt with CrateDB, which also includes up-to-date information.
Profile configuration
CrateDB targets should be set up using a configuration like this minimal sample
of settings in your profiles.yml file.
~/.dbt/profiles.yml
cratedb_analytics:
target: dev
outputs:
dev:
type: cratedb
host: [clustername].aks1.westeurope.azure.cratedb.net
port: 5432
user: [username]
pass: [password]
dbname: crate # Do not change this value. CrateDB's only catalog is `crate`.
schema: doc # Define the schema name. CrateDB's default schema is `doc`.
Was this page helpful?
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
0