Merge branch 'master' of ssh.dev.azure.com:v3/guardhog/Data/data-dwh-dbt-project
This commit is contained in:
commit
b3ba2b5fa0
3 changed files with 24 additions and 26 deletions
|
|
@ -1,12 +1,11 @@
|
||||||
with source as (
|
with
|
||||||
select * from {{ source('core', 'Role') }}
|
source as (select * from {{ source("core", "Role") }}),
|
||||||
),
|
stg_core__role as (
|
||||||
stg_core__role as (
|
select
|
||||||
select
|
lower({{ adapter.quote("Id") }}) as id_role,
|
||||||
{{ adapter.quote("Id") }} as id_role,
|
{{ adapter.quote("Name") }} as role_name,
|
||||||
{{ adapter.quote("Name") }} as role_name,
|
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
from source
|
||||||
from source
|
)
|
||||||
)
|
select *
|
||||||
select * from stg_core__role
|
from stg_core__role
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
with source as (
|
with
|
||||||
select * from {{ source('core', 'UserRole') }}
|
source as (select * from {{ source("core", "UserRole") }}),
|
||||||
),
|
stg_core__user_role as (
|
||||||
stg_core__user_role as (
|
select
|
||||||
select
|
lower({{ adapter.quote("UserId") }}) as id_user,
|
||||||
lower({{ adapter.quote("UserId") }}) as id_user,
|
lower({{ adapter.quote("RoleId") }}) as id_role,
|
||||||
{{ adapter.quote("RoleId") }} as id_role,
|
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
||||||
{{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc
|
from source
|
||||||
from source
|
)
|
||||||
)
|
select *
|
||||||
select * from stg_core__user_role
|
from stg_core__user_role
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
dbt-core~=1.7.6
|
dbt-core~=1.9.1
|
||||||
dbt-postgres~=1.7.6
|
dbt-postgres~=1.9.0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue