diff --git a/models/staging/core/stg_core__role.sql b/models/staging/core/stg_core__role.sql index 3e12046..4879a3c 100644 --- a/models/staging/core/stg_core__role.sql +++ b/models/staging/core/stg_core__role.sql @@ -1,12 +1,11 @@ -with source as ( - select * from {{ source('core', 'Role') }} -), -stg_core__role as ( - select - {{ adapter.quote("Id") }} as id_role, - {{ adapter.quote("Name") }} as role_name, - {{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc - from source -) -select * from stg_core__role - \ No newline at end of file +with + source as (select * from {{ source("core", "Role") }}), + stg_core__role as ( + select + lower({{ adapter.quote("Id") }}) as id_role, + {{ adapter.quote("Name") }} as role_name, + {{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc + from source + ) +select * +from stg_core__role diff --git a/models/staging/core/stg_core__user_role.sql b/models/staging/core/stg_core__user_role.sql index 0f8fbfd..4c0c143 100644 --- a/models/staging/core/stg_core__user_role.sql +++ b/models/staging/core/stg_core__user_role.sql @@ -1,12 +1,11 @@ -with source as ( - select * from {{ source('core', 'UserRole') }} -), -stg_core__user_role as ( - select - lower({{ adapter.quote("UserId") }}) as id_user, - {{ adapter.quote("RoleId") }} as id_role, - {{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc - from source -) -select * from stg_core__user_role - \ No newline at end of file +with + source as (select * from {{ source("core", "UserRole") }}), + stg_core__user_role as ( + select + lower({{ adapter.quote("UserId") }}) as id_user, + lower({{ adapter.quote("RoleId") }}) as id_role, + {{ adapter.quote("_airbyte_extracted_at") }} as dwh_extracted_at_utc + from source + ) +select * +from stg_core__user_role diff --git a/requirements.txt b/requirements.txt index 337ef20..c603588 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -dbt-core~=1.7.6 -dbt-postgres~=1.7.6 \ No newline at end of file +dbt-core~=1.9.1 +dbt-postgres~=1.9.0 \ No newline at end of file