Skip to main content

The ODPS (MaxCompute) adapter plugin for dbt

Project description

dbt logo

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.

ODPS

ODPS, called MaxCompute before. This adapter is a wrapper bridged PyOdps and DBT together.

MaxCompute Features:

Feature Status
Partition Table
Cluster Table
External Table
Table Properties

DBT features:

Name Status
Materialization: Table
Materialization: View
Materialization: Incremental - Append
Materialization: Incremental - Insert+Overwrite
Materialization: Incremental - Merge
Materialization: Ephemeral
Seeds
Tests
Snapshots 1
Documentation

Getting Started

Install DBT-ODPS

python setup.py install --force 
or pip install dbt-odps-winwin

How to Configure?

For Fresh Codebase

Run following command after installing dbt-odps:

dbt init

For Existing Codebase

Read more in here: https://docs.getdbt.com/docs/core/connection-profiles

Configuration options:

Property Description Example
Endpoint The endpoint of odps, read more in https://help.aliyun.com/document_detail/34951.html http://service.cn-shanghai.maxcompute.aliyun.com/api
database The project name of odps, which you can find in https://maxcompute.console.aliyun.com/{your area}/project-list odps-test-project
schema Using default if you don't know what is schema. default
access_id access id LTAXXXXXXXXX
secret_access_key secret access key bZXXXXXXXXXX
type odps odps

NOTES

  1. When using merge statement, ODPS required that table is a transactional table. So, we have to create the snapshot table before select. Under the hook, we using the first referred table as source data structure to create table, so this data source must be a table, view is not supported.

DEVELOPER REF

DBT docs what-are-adapters

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

dbt-odps-winwin-1.0.12.tar.gz (26.3 kB view details)

Uploaded Source

Built Distribution

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

dbt_odps_winwin-1.0.12-py2.py3-none-any.whl (41.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dbt-odps-winwin-1.0.12.tar.gz.

File metadata

  • Download URL: dbt-odps-winwin-1.0.12.tar.gz
  • Upload date:
  • Size: 26.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for dbt-odps-winwin-1.0.12.tar.gz
Algorithm Hash digest
SHA256 281a13e7b9886ae9806a9457a99dd753ae3eabee9a776d45340a85994fb4dae1
MD5 00f1e32456fea52539e08b96b930c028
BLAKE2b-256 fc2d0dd79febe2bef6a63c00ec750024f98d56f23d05aa397e84a3b33b521858

See more details on using hashes here.

File details

Details for the file dbt_odps_winwin-1.0.12-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dbt_odps_winwin-1.0.12-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 087904d41f11fdc8c2f4a89e0ba89a357933ba5ec8dc94733b5bce5137b23607
MD5 e1d81f31a874e7c6f517f4315816d919
BLAKE2b-256 399390a0f607bca100af6a5e51269e2f4c3d76dbd8e4ff513daef47de015c8b6

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