data-dwh-dbt-project/models
Oriol Roqué Paniagua 45514dcd6a Merged PR 5012: Small refactor on Growth Score
# Description

Small refactor on Growth Score model. It just handles the dimension deals attributes at the end instead of having these in each CTE.

I also forced a partition ordered by deal AFTER the current ordering. This is a side effect because SQL randomly choses a value if the value being used to order was exactly the same (ex: revenue = 0). This was causing issues when auditing the refactor.

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [ ] I have checked for DRY opportunities with other models and docs.
- [ ] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Related work items: #29374
2025-04-17 10:01:15 +00:00
..
intermediate Merged PR 5012: Small refactor on Growth Score 2025-04-17 10:01:15 +00:00
reporting Merged PR 5007: Deprecation of monthly_aggregated_metrics_history_by_deal models 2025-04-16 15:19:09 +00:00
staging Merged PR 4918: Adds Integration Type from Hubspot Deals 2025-04-04 08:40:38 +00:00
doc_blocks.md improve stg_stripe__charges 2024-02-23 16:45:19 +01:00