Skip to main content

The Teradata adapter plugin for dbt (data build tool)

Project description

dbt-teradata

This plugin ports dbt functionality to Teradata Vantage.

Sample profile

Here is a working example of a dbt-teradata profile:

my-teradata-db-profile:
  target: dev
  outputs:
    dev:
      type: teradata
      host: localhost
      user: dbc
      password: dbc
      schema: dbt_test
      tmode: ANSI

At a minimum, you need to specify host, user, password, schema (database), tmode.

Optional configurations

Logmech

The logon mechanism for Teradata jobs that dbt executes can be configured with the logmech configuration in your Teradata profile. The logmech field can be set to: TD2, LDAP, KRB5, TDNEGO. For more information on authentication options, go to Teradata Vantage authentication documentation.

my-teradata-db-profile:
  target: dev
  outputs:
    dev:
      type: teradata
      host: <host>
      user: <user>
      password: <password>
      schema: dbt_test
      tmode: ANSI
      logmech: LDAP

Port

If your Teradata database runs on port different than the default (1025), you can specify a custom port in your dbt profile using port configuration.

my-teradata-db-profile:
  target: dev
  outputs:
    dev:
      type: teradata
      host: <host>
      user: <user>
      password: <password>
      schema: dbt_test
      tmode: ANSI
      port: <port>

Other Teradata connection parameters

The plugin also supports the following Teradata connection parameters:

  • account
  • column_name
  • cop
  • coplast
  • encryptdata
  • fake_result_sets
  • field_quote
  • field_sep
  • lob_support
  • log
  • logdata
  • max_message_body
  • partition
  • sip_support
  • teradata_values

For full description of the connection parameters see https://github.com/Teradata/python-driver#connection-parameters.

Supported Features

Materializations

  • view
  • table
  • ephemeral
  • incremental

Commands

All dbt commands are supported.

Custom configurations

Seeds

  • use_fastload configuration will instruct the plugin to use fastload when handling dbt seed command. You can set this seed configuration option in your project.yml file, e.g.:
    seeds:
      <project-name>:
        +use_fastload: true
    

Limitations

Transaction mode

Only ANSI transaction mode is supported.

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-teradata-0.19.0.2.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

dbt_teradata-0.19.0.2-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

Details for the file dbt-teradata-0.19.0.2.tar.gz.

File metadata

  • Download URL: dbt-teradata-0.19.0.2.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dbt-teradata-0.19.0.2.tar.gz
Algorithm Hash digest
SHA256 58bb9962a2c72d7af1cb1c40fae41a4b86a7f0a9e7284a87881c942a314df48c
MD5 701d9b4f3dfea42f5f9880eb4e9e271b
BLAKE2b-256 8dc3537ac68fbbdb80bb8ead77dba476742bd3ec593f965dc9d9dae5f89e69ba

See more details on using hashes here.

File details

Details for the file dbt_teradata-0.19.0.2-py3-none-any.whl.

File metadata

  • Download URL: dbt_teradata-0.19.0.2-py3-none-any.whl
  • Upload date:
  • Size: 23.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for dbt_teradata-0.19.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e970989d27859fd01b7c8773362693ad961bba199e0d200346f052e047996ab7
MD5 3817bc317caa1e4982a9af77c3dc5f75
BLAKE2b-256 5348e31ab9c074c5beb54c995a4de5c1c172cb9570d2a773aecb27bead5d7ae4

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