Modified source and included test for id_address_validation as unique as well
This commit is contained in:
parent
1d4a2d7b34
commit
be9757b886
2 changed files with 8 additions and 2 deletions
|
|
@ -181,6 +181,10 @@ models:
|
||||||
- name: stg_core__verification_to_address_validation
|
- name: stg_core__verification_to_address_validation
|
||||||
columns:
|
columns:
|
||||||
- name: id_verification
|
- name: id_verification
|
||||||
|
tests:
|
||||||
|
- unique
|
||||||
|
- not_null
|
||||||
|
- name: id_address_validation
|
||||||
tests:
|
tests:
|
||||||
- unique
|
- unique
|
||||||
- not_null
|
- not_null
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
with
|
with
|
||||||
source as (select * from {{ source("core", "VerificationToAddressValidation") }}),
|
raw_verification_to_address_validation as (
|
||||||
|
select * from {{ source("core", "VerificationToAddressValidation") }}
|
||||||
|
),
|
||||||
stg_core__verification_to_address_validation as (
|
stg_core__verification_to_address_validation as (
|
||||||
select
|
select
|
||||||
{{ adapter.quote("VerificationId") }} as id_verification,
|
{{ adapter.quote("VerificationId") }} as id_verification,
|
||||||
|
|
@ -8,7 +10,7 @@ with
|
||||||
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
{{ adapter.quote("UpdatedDate") }} as updated_at_utc,
|
||||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||||
|
|
||||||
from source
|
from raw_verification_to_address_validation
|
||||||
)
|
)
|
||||||
select *
|
select *
|
||||||
from stg_core__verification_to_address_validation
|
from stg_core__verification_to_address_validation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue