Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
286 changes: 0 additions & 286 deletions issues.txt

This file was deleted.

60 changes: 60 additions & 0 deletions mart_stracture.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
marts/
├── core/ # Conformed dimensions and core facts
│ ├── dimensions/ # Shared dimensions (used across multiple facts)
│ │ ├── dim_customers.sql
│ │ ├── dim_products.sql
│ │ ├── dim_stores.sql
│ │ ├── dim_date.sql
│ │ ├── dim_employees.sql
│ │ └── _core__dimensions.yml # Documentation for all core dimensions
│ │
│ ├── facts/ # Core fact tables
│ │ ├── fct_transactions.sql
│ │ ├── fct_returns.sql
│ │ ├── fct_reviews.sql
│ │ ├── fct_inventory.sql
│ │ └── _core__facts.yml
│ │
│ └── scd/ # Slowly Changing Dimensions
│ ├── scd_dim_customers.sql
│ ├── scd_dim_products.sql
│ └── _core__scd.yml
├── finance/ # Finance-specific marts
│ ├── dimensions/
│ │ ├── dim_revenue_categories.sql
│ │ └── _finance__dimensions.yml
│ ├── facts/
│ │ ├── fct_revenue.sql
│ │ ├── fct_costs.sql
│ │ └── _finance__facts.yml
│ └── aggregated/ # Pre-aggregated metrics for dashboards
│ ├── fct_daily_revenue.sql
│ ├── fct_monthly_profitability.sql
│ └── _finance__aggregated.yml
├── marketing/ # Marketing-specific marts
│ ├── dimensions/
│ │ ├── dim_campaigns.sql
│ │ ├── dim_customer_segments.sql
│ │ └── _marketing__dimensions.yml
│ ├── facts/
│ │ ├── fct_customer_acquisition.sql
│ │ ├── fct_campaign_performance.sql
│ │ └── _marketing__facts.yml
│ └── aggregated/
│ ├── fct_customer_lifetime_value.sql
│ └── _marketing__aggregated.yml
├── operations/ # Operations-specific marts
│ ├── dimensions/
│ │ ├── dim_store_performance.sql
│ │ └── _operations__dimensions.yml
│ ├── facts/
│ │ ├── fct_inventory_turnover.sql
│ │ └── _operations__facts.yml
│ └── aggregated/
│ ├── fct_store_performance.sql
│ └── _operations__aggregated.yml
└── _marts__sources.yml # Sources for marts (if needed)
16 changes: 0 additions & 16 deletions models/marts/core/dimensions/_dim_models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,3 @@ models:
- accepted_values:
arguments:
values: ['True', 'False', 'Unknown']

- name: dim_date
description: Calendar dimension built from dates observed across sales, returns, reviews, and inventory snapshots.
columns:
- name: date_day
description: Calendar date.
tests:
- unique
- not_null

- name: day_type
description: Weekday or weekend indicator.
tests:
- accepted_values:
arguments:
values: ['Weekday', 'Weekend']
2 changes: 1 addition & 1 deletion models/marts/core/dimensions/dim_customers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ LEFT JOIN {{ ref('int_customer_location') }} as l
ON p.customer_id = l.customer_id

LEFT JOIN {{ ref('int_customer_segmentation') }} as s
ON s.customer_id = p.customer_id ;
ON s.customer_id = p.customer_id ;
Loading
Loading