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


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.19a1.tar.gz (31.0 kB view details)

Uploaded Source

Built Distribution

dbt_odps_winwin-1.0.19a1-py2.py3-none-any.whl (46.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dbt_odps_winwin-1.0.19a1.tar.gz.

File metadata

  • Download URL: dbt_odps_winwin-1.0.19a1.tar.gz
  • Upload date:
  • Size: 31.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for dbt_odps_winwin-1.0.19a1.tar.gz
Algorithm Hash digest
SHA256 0cbde66a109e64335f880b0a9917ded10a19a6152c7297f120a8d51304435fda
MD5 f43d10033921085e7912b195160e4f6a
BLAKE2b-256 671874d8550f94b58f43fc4b51a165ad33d895d95a22099672758b6096533fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dbt_odps_winwin-1.0.19a1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b65b17fe90fccf1817c963b5f4f9cd594cae12e8b8050c7079e90e619d9eb214
MD5 60acf2a112a2a73a672d3d34c094f781
BLAKE2b-256 440ccd6816f595db1b30091163417f77e81f245de94c690fc3c9f14f3efaa567

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