Code Monkey home page Code Monkey logo

mybi-dbt-core's Introduction

dbt module to build DWH on top of myBI Connect data

Continuous Integration Tests

mybi-dbt-core is dbt module to quick start transformations on top of data synced by myBI Connect along with multiple useful macros.

๐Ÿš€ Get experience with myBI Market + dbt demo project

Installation instructions

New to dbt packages? Read more about them here.

  • Include this package in your packages.yml file
  • Run dbt deps to install the package

Main features

Supported Adapters

Sources

Reference any data source from sources.yml as select * from source('general', 'dates'):

Models + Tests

Access data tables as simple as select * from ref('stg_yd_ads_facts'):

  • filters on account_id applied
  • joined with date dimension
  • comprehensive data testing (unique, not_null, relationships)

Supported data sources:

Macros

Demo project (tutorial)

Get experience with worked example of this module usage:

Contributing

Development is done via Docker containers and .csv mock files. Refer to integration_tests folder.

Any PR will be tested with Continuous Integration workflow

Development workflow looks like this:

# launch containers: dbt, clickhouse, postgres
docker-compose build --no-cache
docker-compose up -d

# enter container with dbt installed
docker-compose exec dbt bash
cd integration_tests/

# test connections
dbt --version
dbt debug --target clickhouse
dbt debug --target postgres

# Setup target variables
export DBT_SOURCE_DATABASE=default DBT_SOURCE_SCHEMA=default # for Clickhouse
export DBT_SOURCE_DATABASE=postgres DBT_SOURCE_SCHEMA=public # for Postgres

# introduce any code changes

# install dependencies (modules)
dbt clean
dbt deps

# build and test on dummy data
dbt seed --full-refresh
dbt build --full-refresh

# exit container and clean up
docker-compose down

mybi-dbt-core's People

Contributors

kzzzr avatar

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.