Skip to main content

The Presto adapter plugin for dbt (data build tool)

Project description

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 instances.

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:
    software:
      type: watsonx_presto
      method: BasicAuth
      user: username
      password: password
      host:  localhost
      port: 443
      database: analytics
      schema: dbt_drew
      threads: 8
      ssl_verify: path/to/certificate
      
    saas:
      type: watsonx_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: software

For more detailed instructions on configuring your profiles, refer configuring dbt-watsonx-presto.

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).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbt_watsonx_presto-0.1.2.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbt_watsonx_presto-0.1.2-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file dbt_watsonx_presto-0.1.2.tar.gz.

File metadata

  • Download URL: dbt_watsonx_presto-0.1.2.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for dbt_watsonx_presto-0.1.2.tar.gz
Algorithm Hash digest
SHA256 aeb3a389abd9681d3251c86d51def88f5e512559f47dd081479ba684df525f4e
MD5 a63f8e93674f81f26a638b9a7678c50e
BLAKE2b-256 e52834e77335c25a813ad5d3c8e4596de43b4437d283aee342cc33aba044ce33

See more details on using hashes here.

File details

Details for the file dbt_watsonx_presto-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_watsonx_presto-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 461bdc3f9bf4a002e369ebea9f5e2d45dd5d704c0b30826ccd5494ed387461cb
MD5 ea7ba3b114d13c376c28249dab926b1d
BLAKE2b-256 e983c0acc9a2e600150ffbe4a68e9d4c87f7d30bb5b49cb4dacb46e7fd901e5f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page