Giter Club home page Giter Club logo

adobe-clickstream-dbt's Introduction

Adobe Analytics Clickstream & dbt on BigQuery

Basic introduction on building models based on Adobe clickstream data.

Requirements

pip install dbt
  • Clone the repository, modify the profile-demo.yml so that it reflects your GCP project and BigQuery dataset details. Then copy the file to ~/.dbt/. This will ensure your configuration settings required by dbt are in the correct place.
cp profile-demo.yml ~/.dbt/profiles.yml

Compiling and running models

dbt has a wide range of features. First, in order to confirm that dbt is installed and your SQL models are compiled you can run the below within the project directory.

dbt compile

This will just generate valid SQL under the target/compiled/core/ path.

In order to execute the models on BigQuery (or any other associated database):

dbt run

Running incremental models

Running incremental models is not just about adding new data, but also managing how you can re-run your models for historical data. Defining your date range is important during run-tine. Variables configured at dbt_project.yml can be overwritting during "dbt run" executions as per below:

 dbt run –models clickstream+ –var ‘{“start_date”:”<period start>”,”end_date”:”<period end>”}’

The variables above affect the values at the incremental_filter macro under the macros directory.

Reading

For a general introduction on dbt and backfilling clickstream data, check

adobe-clickstream-dbt's People

Contributors

konosp avatar

Watchers

 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.