Skip to content

Creates a simple DataMart using DBT. The final view built on top of the DM is used to create a chatbot ( for more see Intelligent-Retail-Chatbot repository)

Notifications You must be signed in to change notification settings

Lori-ml/BigSupplyCo

Repository files navigation

Project description

This directory uses unprocessed information related to BigSupplyCo and constructs a DataMart through the use of DBT. A view has been created atop this DataMart, which aggregates data from fact and dimension tables, thereby simplifying data retrieval for external applications.

File description

BigSupplyCo/macros -> Macros used for data cleaning in the staging section

  • add_leading_zeros.sql
  • replace_underscore.sql
  • uppercase_transformation.sql

BigSupplyCo/models/staging/bigsupplyco -> Purpose of files in this section is to extract data from Snowflake, clean them and load into staging tables.

  • src_bigsupplyco.yml - Source configuration file
  • stg_bigsupplyco__categories.sql
  • stg_bigsupplyco__customers.sql
  • stg_bigsupplyco__departments.sql
  • stg_bigsupplyco__orders.sql
  • stg_bigsupplyco__products.sql

BigSupplyCo/models/marts/core -> Purpose of files in this section is to extract data from staging and load into dimensions and fact tables.

  • dim_customers.sql
  • dim_products.sql
  • fct_orders.sql

BigSupplyCo/models/views -> The file in this folder creates a view with the needed data for the Chatbot.

  • bigsupplyco.sql

BigSupplyCo/dbt_project.yml -> Project configuration

Data

Use CSV files uploaded in this project. For Orders.csv only a small portion of data has been uploaded due to size constrains.

DBT documentation

About

Creates a simple DataMart using DBT. The final view built on top of the DM is used to create a chatbot ( for more see Intelligent-Retail-Chatbot repository)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published