Merged PR 4489: Update athena models to remove id_accommodation
# Description Removed `id_accommodation` from athena models I remembered why I had add it before, it was to unite it with the edeposit model with the same number of fields but I fixed it already # 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. Update athena models to remove id_accommodation Related work items: #27938
This commit is contained in:
commit
78d42462a8
5 changed files with 1 additions and 11 deletions
|
|
@ -7,7 +7,6 @@ select
|
|||
id_verification,
|
||||
id_booking,
|
||||
id_user_partner,
|
||||
id_accommodation,
|
||||
version,
|
||||
case when version = 'V1' then 'Guesty' else null end as verification_source,
|
||||
verification_status,
|
||||
|
|
|
|||
|
|
@ -30,10 +30,6 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_accommodation
|
||||
data_type: text
|
||||
description: "unique Superhog generated id for a listing"
|
||||
|
||||
- name: version
|
||||
data_type: text
|
||||
description: "value to identify if it is Guesty (V1) or E-deposit (V2)"
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ select
|
|||
av.id_verification,
|
||||
av.id_booking,
|
||||
av.id_user_partner,
|
||||
av.id_accommodation,
|
||||
null as id_accommodation,
|
||||
av.version,
|
||||
av.verification_source,
|
||||
av.verification_status,
|
||||
|
|
|
|||
|
|
@ -29,10 +29,6 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_accommodation
|
||||
data_type: text
|
||||
description: An ID for the listing related to the booking.
|
||||
|
||||
- name: version
|
||||
data_type: text
|
||||
description: |
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ with
|
|||
{{ adapter.quote("documents") }} ->> 'id' as id_verification,
|
||||
{{ adapter.quote("documents") }} ->> 'BookingId' as id_booking,
|
||||
{{ adapter.quote("documents") }} ->> 'userId' as id_user_partner,
|
||||
{{ adapter.quote("documents") }} ->> 'ListingId' as id_accommodation,
|
||||
|
||||
{{ adapter.quote("documents") }} ->> 'Version' as "version",
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue