Merged PR 2563: new address_validation model in staging
# Description New address_validation model in staging to include in our check in hero reports # 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. new address_validation model in staging Related work items: #17069
This commit is contained in:
commit
34ba2a2e4a
3 changed files with 27 additions and 0 deletions
|
|
@ -225,3 +225,5 @@ sources:
|
|||
identifier: UserProductBundle
|
||||
- name: BookingToProductBundle
|
||||
identifier: BookingToProductBundle
|
||||
- name: AddressValidation
|
||||
identifier: AddressValidation
|
||||
|
|
|
|||
|
|
@ -169,6 +169,12 @@ models:
|
|||
- name: stg_core__booking_to_product_bundle
|
||||
columns:
|
||||
- name: id_booking_to_product_bundle
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
- name: stg_core__address_validation
|
||||
columns:
|
||||
- name: id_address_validation
|
||||
tests:
|
||||
- unique
|
||||
- not_null
|
||||
19
models/staging/core/stg_core__address_validation.sql
Normal file
19
models/staging/core/stg_core__address_validation.sql
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
with
|
||||
raw_address_validation as (select * from {{ source("core", "AddressValidation") }}),
|
||||
stg_core__address_validation as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_address_validation,
|
||||
{{ adapter.quote("AccommodationId") }} as id_accommodation,
|
||||
{{ adapter.quote("Passed") }} as validation_passed,
|
||||
{{ adapter.quote("FeatureSizeMeters") }} as feature_size_meters,
|
||||
{{ adapter.quote("FeatureSizeMetersUpperLimit") }}
|
||||
as feature_size_meters_upper_limit,
|
||||
{{ adapter.quote("Notes") }} as notes,
|
||||
{{ 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_address_validation
|
||||
)
|
||||
select *
|
||||
from stg_core__address_validation
|
||||
Loading…
Add table
Add a link
Reference in a new issue