The trino adapter plugin for dbt (data build tool)
Project description
dbt-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 455
, Starburst Enterprise
version 443-e.10
and Starburst Galaxy
.
Setup & Configuration
For information on installing and configuring your profile to authenticate to Trino or Starburst, please refer to Starburst and Trino Setup in the dbt docs.
Trino- and Starburst-specific configuration
For Trino- and Starburst-specific configuration, you can refer to Starburst (Trino) configurations on the dbt docs site.
Contributing
- Want to report a bug or request a feature? Let us know on Slack in the #db-starburst-and-trino channel, or on Trino slack in the #python channel, or open an issue
- Want to help us build dbt-trino? Check out the Contributing Guide
Release process
First 5 steps are ONLY relevant for bumping minor version:
- Create
1.x.latest
branch from the latest tag corresponding to current minor version, e.g.git checkout -b 1.6.latest v1.6.2
(when bumping to 1.7). Push branch to remote. This branch will be used for potential backports. - Create new branch (Do not push below commits to
1.x.latest
). Add a new entry in.changes/0.0.0.md
that points to the newly created latest branch. - Run
changie merge
to updateREADME.md
. After that, remove changie files and folders related to current minor version. Commit. - Bump version of
dbt-tests-adapter
. Commit. - Merge these 2 commits into the master branch. Add a
Skip Changlelog
label to the PR.
Continue with the next steps for a minor version bump. Start from this point for a patch version bump:
- Run
Version Bump
workflow. The major and minor part of the dbt version are used to associate dbt-trino's version with the dbt version. - Merge the bump PR. Make sure that test suite pass.
- Run
dbt-trino release
workflow to releasedbt-trino
to PyPi and GitHub.
Backport process
Sometimes it is necessary to backport some changes to some older versions. In that case, create branch from x.x.latest
branch. There is a x.x.latest
for each minor version, e.g. 1.3.latest
. Make a fix and open PR back to x.x.latest
. Create changelog by changie new
as ususal, as separate changlog for each minor version is kept on every x.x.latest
branch.
After merging, to make a release of that version, just follow instructions from Release process section, but run every workflow on x.x.latest
branch.
Code of Conduct
Everyone interacting in the dbt project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the PyPA Code of Conduct.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dbt-trino-1.8.3.tar.gz
.
File metadata
- Download URL: dbt-trino-1.8.3.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3266f48809740f4f52fca2a9987acf73ecc41936dfd50eb1e4df05e75c7f04e |
|
MD5 | 3114ae2c4ff9bada546340850e035dcd |
|
BLAKE2b-256 | d64efbcff421cac6c99f026189ad7adf6824ab3328b6d81d054878ab6482332d |
File details
Details for the file dbt_trino-1.8.3-py3-none-any.whl
.
File metadata
- Download URL: dbt_trino-1.8.3-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7bce3906093119c30a4e2038c24660aa624eaf90846d416f0e4bc56e5895a1 |
|
MD5 | 177666be50b31f43ab62da93c00cc8c6 |
|
BLAKE2b-256 | 27aa270d416f3b4831675e37043f6b57e15ddd31ade6cdd99295f9e3dcca6801 |