Skip to main content

IBM watsonx.data spark plugin for dbt

Project description

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.

dbt-watsonx-spark

The dbt-watsonx-spark package contains all of the code enabling dbt to work with IBM Spark on watsonx.data. Read the official documentation for using watsonx.data with dbt-watsonx-spark -

  • Documentation for IBM Cloud and SaaS offerrings
  • Documentation for IBM watsonx.data software

Getting started

Installation

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

$ pip install dbt-watsonx-spark

Configuration

Ensure you have started Spark SQL server from watsonx.data. Create an entry in your ~/.dbt/profiles.yml file using the following options:

  • You can view connection details by clicking on the three-dot menu for SQL server.
  • You can construct and configure the profile using the below template -
dbt_wxd:

  target: dev
  outputs:
    dev:
      type: watsonx_spark
      method: "http"
      
      # number of threads for DBT operations, refer: https://docs.getdbt.com/docs/running-a-dbt-project/using-threads
      threads: 1

      # value of 'schema' must be one of the schema defined in Data Manager in watsonx.data
      schema: '<wxd_schema>'
      
      # Hostname of your watsonx.data console (ex: us-south.lakehouse.cloud.ibm.com)
      host: https://<your-host>.com

      # Uri of your Spark SQL server running on watsonx.data
      uri: "/lakehouse/api/v2/spark_engines/<spark_engine_id>/sql_servers/<server_id>/connect/cliservice"
      
      # Optional: Disable SSL verification
      use_ssl: false

      auth:
        # In case of SaaS, set it as CRN of watsonx.data service
        # In case of Software, set it as instance id of watsonx.data
        instance: "<CRN/InstanceId>"
        
        # In case of SaaS, set it as your email id
        # In case of Software, set it as your username
        user: "<user@example.com/username>"

        # This must be your API Key
        apikey: "<apikey>"
        

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_spark-0.0.5.tar.gz (61.4 kB view details)

Uploaded Source

Built Distribution

dbt_watsonx_spark-0.0.5-py3-none-any.whl (73.0 kB view details)

Uploaded Python 3

File details

Details for the file dbt_watsonx_spark-0.0.5.tar.gz.

File metadata

  • Download URL: dbt_watsonx_spark-0.0.5.tar.gz
  • Upload date:
  • Size: 61.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for dbt_watsonx_spark-0.0.5.tar.gz
Algorithm Hash digest
SHA256 89ec3f7baade92f7fd5598abe30de2c4c9230547483b94c5eb6495ae55cd37df
MD5 d2acb495bfa3f33a6c7f864bd84df19a
BLAKE2b-256 58a237829a55170bc33c294e4f057c5ee5f776c7c74682d62de07c86b5ed8013

See more details on using hashes here.

File details

Details for the file dbt_watsonx_spark-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_watsonx_spark-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 baf2df246ea93b13e3404048d3e88994e9b030fd72640ac4316f22bdcb6f675e
MD5 77670690fd1adca051e24806dcc68856
BLAKE2b-256 b39234cd6599c012ff9d3c2b1c4a934d39828b073fb1f6b092d5301a6d173771

See more details on using hashes here.

Supported by

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