data-dwh-dbt-project/models/staging
Oriol Roqué Paniagua 6d59e21310 Merged PR 2725: Force id user field to lower in staging
# Description

Forces lower case to all id_users in staging. Removes hardcoded lower case in intermediate. Adapts readme to contemplate the lowering of id users.

I propose to merge, run in prod and run tests in prod as a proper evaluation method.

BTW, I only find one id_user_host that was in capital letters, so that's why probably we didn't care that much about this. Still, I prefer have things clean from the start!

```
select *
from staging.stg_core__booking scb
left join intermediate.int_core__unified_user icuu
on lower(scb.id_user_host) = lower(icuu.id_user)
where scb.id_user_host <> icuu.id_user
```

# Checklist

- [ ] The edited models and dependants run properly with production data. **All models run in stg, did not check all the dependants**
- [ ] The edited models are sufficiently documented. **Have not checked**
- [ ] 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.
- [ ] 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: #20776
2024-09-03 14:36:21 +00:00
..
core Merged PR 2725: Force id user field to lower in staging 2024-09-03 14:36:21 +00:00
edeposit Just committing to save change and create a new branch for basic to push basic changes 2024-08-30 10:33:43 +02:00
stripe add value to test 2024-06-19 18:25:49 +02:00
xedotcom make model incremental 2024-06-14 16:01:33 +02:00
xero missing field in stg 2024-07-08 16:29:35 +02:00