data-dwh-dbt-project/models/intermediate
Oriol Roqué Paniagua 06bdb81cfe Merged PR 4106: Avoids duplicates in athena verification with fees after price changes
# Description

There was some duplicated records that effectively raised alarms in data tests.

The fix is simple:
* Ensure that is using the timestamp field, rather than the date of checkout.
* This was not enough because in some cases the timestamp is exactly at midnight. So I changed the between to an explicit logic - start condition is inclusive, while end condition is exclusive.

# Checklist

- [ ] The edited models and dependants run properly with production data.
- [ ] The edited models are sufficiently documented.
- [ ] 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: #26622
2025-01-19 10:07:39 +00:00
..
athena Merged PR 4106: Avoids duplicates in athena verification with fees after price changes 2025-01-19 10:07:39 +00:00
check_in_hero change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
core change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
cross Small name change 2025-01-17 11:45:48 +01:00
edeposit change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
hubspot change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
kpis addressed comments 2025-01-14 17:25:59 +01:00
screen_and_protect change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00
xero change "tests:" to "data_tests:" 2025-01-13 16:00:35 +01:00