Coder Social home page Coder Social logo

dbt-demo-data's Introduction

dbt demo data

This repository contains demo data and a starter project intended for use with dbt.

โš ๏ธ This repo is a work-in-progress: Best to come back sometime soon :)

Installing source data

In order to use this demo dbt project, you must manually import data into your data platform using the steps shown below.

Snowflake

  • Assume a ROLE in your Snowflake account that permits you to create new databases, schemas, stages, and external tables
  • Navigate to the installation script and copy the contents of this document
  • Run the script and confirm that the transaction is committed successfully

After running the script, you may need to run GRANT statements manually depending on your existing configuration in Snowflake. At a minimum, you will need to make sure that role used by your dbt job is able to read from external tables in this schema:

-- Change this DBT_ROLE value as needed
set DBT_ROLE='TRANSFORMER';

grant usage on database DBT_DEMO_DATA
    to role identifier($DBT_ROLE);

grant usage on schema DBT_DEMO_DATA.ECOMMERCE
    to role identifier($DBT_ROLE);

grant select on all external tables in schema DBT_DEMO_DATA.ECOMMERCE
    to role identifier($DBT_ROLE);

BigQuery

Not implemented

Redshift

Not implemented

Databricks

Not implemented

Running this project

In dbt Cloud

To run this project in dbt Cloud:

  • Make a fork of this repo in your own GitHub organization
  • Import your forked repository into dbt Cloud
  • Run dbt deps to install package dependencies
  • Run a job in your dbt Cloud Deployment Environment with the command dbt build

dbt-demo-data's People

Contributors

lostmygithubaccount avatar gwenwindflower avatar drewbanin avatar jtcohen6 avatar epapineau avatar bossnunta avatar briang1133 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.