dbt-Dremio Adapter

1.10.0 · active · verified Fri Apr 17

dbt-dremio is the Dremio adapter plugin for dbt (data build tool), enabling data teams to transform data directly within Dremio using dbt's SQL-based workflows. It allows users to define models, tests, and documentation, then execute them against Dremio for efficient data transformations. The current version is 1.10.0, with new releases typically aligning with dbt-core's major version updates, often every 1-3 months.

Common errors

Warnings

Install

Imports

Quickstart

To get started with dbt-dremio, you need to configure your dbt `profiles.yml` to specify the connection details for your Dremio instance. Then, you can define your SQL models and run them using the dbt CLI. Ensure your dbt project is configured to use the Dremio profile. Remember to replace placeholders like `<your_dremio_host>`, `<your_dremio_username>`, `<your_dremio_password>`, and `<your_schema>` with your actual Dremio credentials and configuration.

# 1. Create a dbt project (if you don't have one)
# dbt init my_dremio_project

# 2. Configure your profiles.yml (typically at ~/.dbt/profiles.yml)
# --- profiles.yml ---
# my_dremio_profile:
#   target: dev
#   outputs:
#     dev:
#       type: dremio
#       host: <your_dremio_host> # e.g., localhost or cloud.dremio.com
#       port: 31010 # or 443 for Dremio Cloud
#       username: <your_dremio_username>
#       password: <your_dremio_password>
#       schema: <your_schema>
#       threads: 1
#       db_name: Dremio # Can be 'Dremio' for Dremio Cloud, or your specific project ID
#       catalog: <your_catalog_name> # Optional, for Dremio Enterprise Catalogs (v1.9.0+)
#       disable_ssl_verification: true # Use with caution, for self-signed certificates
# --- end profiles.yml ---

# 3. Create a sample dbt model (e.g., models/my_first_model.sql)
-- models/my_first_model.sql
SELECT
    1 as id,
    'hello' as message

# 4. Run dbt commands from your project directory
# dbt debug
# dbt run
# dbt test

view raw JSON →