Skip to content

IBM/dbt-watsonx-presto

dbt-watsonx-presto

dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.

dbt is the T in ELT. Organize, cleanse, denormalize, filter, rename, and pre-aggregate the raw data in your warehouse so that it's ready for analysis.

Overview

The dbt-watsonx-presto adapter uses Presto as the underlying SQL query engine to enable powerful data transformations and query federation across diverse data sources. With Presto, you can connect to multiple data systems (via available connectors) through a single dbt connection and process SQL queries efficiently at scale.

Transformations defined in dbt are passed to Presto, which executes these SQL queries by translating them into queries specific to the connected systems. Presto then creates tables, builds views, or manipulates data as defined by your dbt project.

This repository is an evolution of the dbt-presto adapter, specifically designed for seamless compatibility with both open-source Presto and IBM watsonx.data Presto clusters.

Read the official documentation for using watsonx.data with dbt-watsonx-presto -

Getting started

Installation

To install the dbt-watsonx-presto plugin, use pip:

$ pip install dbt-watsonx-presto

Configuration

Setting Up Your Profile

To connect dbt Core to your Presto clusters, configure the profiles.yml file located in the .dbt/ directory of your home directory. :

Example profiles.yml entry:

my_project:
  outputs:
    dev:
      type: presto
      method: BasicAuth
      user: username
      password: password
      host:  localhost
      port: 443
      database: analytics
      schema: dbt_drew
      threads: 8
      ssl_verify: path/to/certificate
      
    prod:
      type: presto
      method: BasicAuth
      user: username
      password: api_key
      host: 127.0.0.1
      port: 8080
      database: analytics
      schema: dbt_drew
      threads: 8
      ssl_verify: true
      
  target: dev

For more detailed instructions on configuring your profiles, refer watsonx.data and presto setup .

Presto-Specific Configuration

For Presto-specific configurations, such as advanced session properties or Presto connectors, consult the Presto Configuration Guide.

Contributing

We welcome contributions to the dbt-watsonx-presto project. Here’s how you can help:

  • Report Issues: If you encounter bugs or have feature requests, please submit them via GitHub Issues.
  • Submit Code: Follow the Contributing Guide to submit pull requests with improvements or new features.

License

By contributing to dbt-watsonx-presto, you agree that your contributions will be licensed under the Apache License Version 2.0 (APLv2).

About

A DBT adapter for integrating DBT with watsonx.data Presto

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published