Skip to content

About

Example dbt project using the Redis DBT adapter built on Redis ADBC driver

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Redis adapters for dbt

Documentation website

Installation guide: install the adapter, native driver, and build your first model

Install the dbt Core adapter

Install the published adapter in a Python 3.14 environment:

python3.14 -m venv .venv
source .venv/bin/activate
python -m pip install dbt-redis-adbc==0.0.32
dbt --version

Then follow the installation guide to install the separate native Redis ADBC driver, configure your Redis TLS connection and dbt profile, and run a first model. You need Redis 8.x with Query Engine (Search) enabled. The published Python package supports dbt Core 1.12 and later 1.x releases.

Repository guides

This repository keeps dbt v1 and v2 work together, with separate dependencies, projects, and test resources.

One project goal is to create and contribute a native Redis adapter for dbt v2, following the dbt v2 adapter creation guide. That work integrates Redis into the shared Rust engine through the Redis ADBC driver. The experimental engine fork is a milestone toward upstream inclusion; see the contribution status and remaining work for progress toward that goal.

Directory Purpose Status
v1/ Python dbt-redis-adbc adapter, NYC taxi example, driver tooling, and functional tests Supports dbt Core 1.12 and later 1.x releases; the example requires 1.12+
v2/ Native v2 fixtures, taxi validation, and tooling Experimental fork: smoke and v1 feature scenarios pass on macOS and Linux; requires a custom engine

See integration status and remaining work for version-specific evidence, the dbt v2 upstream contribution checklist, and the Flight SQL qualification tracked by issue #40. The adapter originated as a community project; its move to the Redis GitHub organization does not by itself establish Redis, Inc. maintenance or support.

Run the v1 example

All integration tests use a dedicated Redis Enterprise cluster with TLS and username/password authentication. To create a local Enterprise test cluster, run python3 scripts/redis_enterprise.py up and source .redis-enterprise/env.sh from the repository root; see the environment guide. For an existing Enterprise cluster, run the commands from v1/:

cd v1
export REDIS_URI=rediss://your-enterprise-endpoint:port/0
export REDIS_USERNAME=your-test-user
export REDIS_PASSWORD='<your-test-password>'
make setup
make all

See the v1 guide for connection configuration, requirements, supported features, and the NYC taxi demos. The installable adapter package is in v1/adapter/. If you had a virtual environment from the former root layout, recreate it from v1/ with uv sync --reinstall and refresh local package links with uv run dbt deps.

Use Redis with dbt v2

The Redis dbt v2 adapter is implemented in the alberttwong/dbt engine fork. The pinned source has recorded native validation, including the NYC taxi project, Python models, snapshots, microbatch, and trusted TLS. The upstream adapter contribution is submitted; it is not included in the standard dbt v2 executable.

The adapter is compiled into that engine; the standard dbt v2 executable does not include Redis, and installing the v1 Python package does not add it. Redis support remains experimental in the custom engine.

This repository's v2/ directory contains integration fixtures, configuration examples, and test runners. The Rust adapter implementation lives in the engine fork. Development history is tracked in issue #27.

Publishing releases

See the release guide for PyPI trusted publishing setup and the tag-based build, test, and publication workflow.

About

Example dbt project using the Redis DBT adapter built on Redis ADBC driver

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages