stg model for booking state
This commit is contained in:
parent
964ccbaa24
commit
18c4121d62
1 changed files with 12 additions and 0 deletions
12
models/staging/core/stg_core__booking_state.sql
Normal file
12
models/staging/core/stg_core__booking_state.sql
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
with
|
||||
raw_booking_state as (select * from {{ source("core", "BookingState") }}),
|
||||
stg_core__booking_state as (
|
||||
select
|
||||
{{ adapter.quote("Id") }} as id_booking_state,
|
||||
{{ adapter.quote("Name") }} as booking_state,
|
||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||
|
||||
from raw_booking_state
|
||||
)
|
||||
select *
|
||||
from stg_core__booking_state
|
||||
Loading…
Add table
Add a link
Reference in a new issue