Giter VIP home page Giter VIP logo

dbt-odps's Introduction

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 -m pip install dbt-odps

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.

dbt-odps's People

Contributors

eavae avatar

Stargazers

 avatar Ebok avatar

Watchers

 avatar

Forkers

a664078163

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.