Merged PR 2564: New model for verification_to_address_validation

# Description

New model for verification_to_address_validation for check in hero reporting

# 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: #17069
This commit is contained in:
Joaquin Ossa 2024-08-16 09:21:31 +00:00
commit 63d7ebb6d1
3 changed files with 28 additions and 0 deletions

View file

@ -227,3 +227,5 @@ sources:
identifier: BookingToProductBundle
- name: AddressValidation
identifier: AddressValidation
- name: VerificationToAddressValidation
identifier: VerificationToAddressValidation

View file

@ -174,6 +174,16 @@ models:
- not_null
- name: stg_core__address_validation
columns:
- name: id_address_validation
tests:
- unique
- not_null
- name: stg_core__verification_to_address_validation
columns:
- name: id_verification
tests:
- unique
- not_null
- name: id_address_validation
tests:
- unique

View file

@ -0,0 +1,16 @@
with
raw_verification_to_address_validation as (
select * from {{ source("core", "VerificationToAddressValidation") }}
),
stg_core__verification_to_address_validation as (
select
{{ adapter.quote("VerificationId") }} as id_verification,
{{ adapter.quote("AddressValidationId") }} as id_address_validation,
{{ adapter.quote("CreatedDate") }} as created_at_utc,
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
from raw_verification_to_address_validation
)
select *
from stg_core__verification_to_address_validation