data-dwh-dbt-project/models/intermediate
Oriol Roqué Paniagua bc3a364891 Merged PR 5677: Athena/Guesty high risk clients
# Description

* Adds the new snapshot for Guesty Claims, up to 1st July 2025.
* Creates a model named int_athena__high_risk_client_detector that handles the following logic:

1. The User has been using the agreed services for at least (3) months
2. The aggregated number of claims filed by the User exceeds a total of £2300
3. The User has filed at least (5) claims
4. The User has a claim ration of (7%) or higher throughout their entire use of agreed services, including any claim that has received a guarantee payment

It's heavily opinionated due to lack of clear requirements and lack of data quality, both in athena verifications and guesty claims. Please, check the inline comments for more info.

With these model and conditions, only 2 users would be tagged as high risk.

# 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.
- [X] I have checked for DRY opportunities with other models and docs.
- [X] 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: #31687
2025-07-11 10:28:24 +00:00
..
athena Merged PR 5677: Athena/Guesty high risk clients 2025-07-11 10:28:24 +00:00
check_in_hero change materialization of heavy tables 2025-07-09 11:33:54 +02:00
core stay confident inclusion 2025-07-02 14:37:44 +02:00
cross change materialization of heavy tables 2025-07-09 11:33:54 +02:00
edeposit change materialization of heavy tables 2025-07-09 11:33:54 +02:00
hubspot Merged PR 5256: Reporting version of New Dash Onboarding 2025-05-19 15:41:48 +00:00
kpis Add Flex API into KPI models 2025-06-11 14:44:07 +02:00
resolutions Merged PR 5589: Limits data test coverage on resolutions data 2025-07-01 09:44:54 +00:00
screen_and_protect change materialization of heavy tables 2025-07-09 11:33:54 +02:00
xero silly me 2025-06-12 12:07:16 +02:00