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:
commit
63d7ebb6d1
3 changed files with 28 additions and 0 deletions
|
|
@ -227,3 +227,5 @@ sources:
|
||||||
identifier: BookingToProductBundle
|
identifier: BookingToProductBundle
|
||||||
- name: AddressValidation
|
- name: AddressValidation
|
||||||
identifier: AddressValidation
|
identifier: AddressValidation
|
||||||
|
- name: VerificationToAddressValidation
|
||||||
|
identifier: VerificationToAddressValidation
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,16 @@ models:
|
||||||
- not_null
|
- not_null
|
||||||
- name: stg_core__address_validation
|
- name: stg_core__address_validation
|
||||||
columns:
|
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
|
- name: id_address_validation
|
||||||
tests:
|
tests:
|
||||||
- unique
|
- unique
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue