Merged PR 2459: duplicated_bookings modification
# Description I modified the model of duplicated_bookings, I saw it had some errors and data that was not being used # 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: #18875
This commit is contained in:
commit
b1bdbc0f39
3 changed files with 43 additions and 13 deletions
|
|
@ -19,6 +19,9 @@ models:
|
|||
- name: id_booking
|
||||
data_type: bigint
|
||||
description: The unique, Superhog generated id for this booking.
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
||||
- name: is_duplicate_booking
|
||||
data_type: boolean
|
||||
|
|
@ -39,6 +42,8 @@ models:
|
|||
original and the others are the duplicates:
|
||||
- B and C will appear in this table, A will not.
|
||||
- The value of this field for both B and C will be A's id.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: int_core__booking_charge_events
|
||||
description: |
|
||||
|
|
@ -1377,7 +1382,7 @@ models:
|
|||
accomodation and check-in date, the oldest one will have False as a value in this field,
|
||||
and the other ones will have True as a value in this Failed."
|
||||
|
||||
Put simply, if you don't want to receive duplicates, filter this field to True.
|
||||
Put simply, if you don't want to receive duplicates, filter this field to False.
|
||||
|
||||
- name: is_duplicating_booking_with_id
|
||||
data_type: bigint
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue