https://github.com/cube-js/jaffle_shop_cube
Example of dbt jaffle shop project and Cube semantic layer
https://github.com/cube-js/jaffle_shop_cube
Last synced: 4 months ago
JSON representation
Example of dbt jaffle shop project and Cube semantic layer
- Host: GitHub
- URL: https://github.com/cube-js/jaffle_shop_cube
- Owner: cube-js
- Created: 2023-09-26T22:02:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-18T19:12:50.000Z (over 1 year ago)
- Last Synced: 2025-01-13T08:23:55.384Z (5 months ago)
- Language: Jinja
- Size: 5.99 MB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using dbt with Cube
* For structuring dbt projects follow this guide - https://docs.getdbt.com/guides/best-practices/how-we-structure/2-staging
* Do not create denormalized marts, following this guide for marts design - https://docs.getdbt.com/guides/best-practices/how-we-structure/5-semantic-layer-marts
* Your `marts` folder should contain normalized datasets-entities with dimensions
* bring dbt `marts` from dbt to Cube as cubes. Use `cube_dbt` integration for this.
* define measures and joins on cube level
* define views as virutal denormalized marts and expose them to your BI tools