Documentation

dbt

dbt (data build tool) helps data teams model and transform analytical data. Use the Altertable adapter to run dbt models directly in your Altertable lakehouse.

Installation

The Altertable adapter for dbt is available on PyPI and currently requires Python 3.10+ with dbt-core >=1.8,<2.0.

pip install dbt-altertable

If you manage Python dependencies with uv, you can install it with:

uv add dbt-altertable

Configuration

Add an Altertable profile to your profiles.yml file. By default, dbt looks for profiles in ~/.dbt/profiles.yml, but you can also place it in your project directory or specify a custom location using the --profiles-dir flag. Learn more about dbt profiles in the dbt documentation.

Profile Example

your_project_name:
target: dev
outputs:
dev:
type: altertable
username: your_altertable_username
password: your_altertable_password
database: your_catalog_name
schema: your_schema_name

Configuration Parameters

  • type: Must be set to altertable (required)
  • username: Your Altertable username (required) — find this in the Credentials section of the dashboard
  • password: Your Altertable password (required) — find this in the Credentials section of the dashboard
  • database: The name of your Altertable catalog where models will be materialized (required)
  • schema: The schema within your catalog where models will be created (required)

Usage

Once configured, you can run dbt commands against Altertable:

# Test your connection
dbt debug
# Run your models
dbt run
# Test your models
dbt test
# Generate and serve documentation
dbt docs generate
dbt docs serve

Learn more about dbt commands in the dbt documentation.

SQL Dialect

Altertable uses DuckDB as its query engine, so all SQL queries in your dbt models must use DuckDB-flavored SQL. This includes using DuckDB's functions, syntax, and data types.

Learn more about DuckDB SQL in the DuckDB documentation.

Source Code

The adapter source code is available at github.com/altertable-ai/dbt-altertable

Crafted with <3 by former Algolia × Front × Sorare builders© 2026 AltertableTermsPrivacySecurityCookies