The trino adapter plugin for dbt (data build tool)
Actively maintained. Last release 2 weeks ago, commits in 10 of the last 26 weeks. A safe choice.
pip install dbt-trinodbt-trino
Introduction
dbt is a data transformation workflow tool that lets teams quickly and collaboratively deploy analytics code, following software engineering best practices like modularity, CI/CD, testing, and documentation. It enables anyone who knows SQL to build production-grade data pipelines.
One frequently asked question in the context of using dbt tool is:
Can I connect my dbt project to two databases?
(see the answered question on the dbt website).
TL;DR dbt stands for transformation as in T within ELT pipelines, it doesn't move data from source to a warehouse.
dbt-trino adapter uses Trino as a underlying query engine to perform query federation across disperse data sources. Trino connects to multiple and diverse data sources (available connectors) via one dbt connection and process SQL queries at scale. Transformations defined in dbt are passed to Trino which handles these SQL transformation queries and translates them to queries specific to the systems it connects to create tables or views and manipulate data.
This repository represents a fork of the dbt-presto with adaptations to make it work with Trino.
Compatibility
This dbt plugin has been tested against Trino version 478, Starburst Enterprise version 482-e.1 and Starburst Galaxy.
Setup & Configuration
For information on installing and configuring your profile to authenticate to Trino or Starburst, please refer to in the dbt docs.